Repository navigation
Use errors='replace' in decoding bytes data in Py3 - #6145
Conversation
|
Canceling the travis build to rebase this on the very latest master. cc: @mhvk |
|
Sorry for the extra work. I'm OK with this approach -- in the end, the choice is to treat |
|
Does this affect dev or release? |
11d2c6f to
e8ba4a3
Compare
|
I guess this is getting to be merged asap, so I've cancelled the master build of #6142 to clear up a tiny bit of the backlog. |
|
@mhvk - true... Using an encoding which is subject to decode errors is basis of the problem. Hence all the discussion on numpy-dev related to |
|
I fear there is no really good solution to this -- maybe I need to get to work to implement setting the decoding after all... Anyway, for now, I think we'll have to live with this annoyance. |
|
One issue I think is that the data can be modified silently (which is different from #6117 where the data was modified but only for printing if I'm correct ?). What would you think about doing the replace in a try/except which would allow to issue a warning ? |
|
@saimn - maybe I'm not understanding, but I don't see how the decode operation can in any way leak back to modify table data. This is the internal version of |
|
@taldcroft - Ah sorry, I was thinking about the case of a new table created via slicing, but I missed the fact that the decode is done only for scalar values ( |
This fixes the current test failure in master caused by the interaction of #5700 and #6117, except now I need to back out #6142.
Closes #6121