Jeff wrote:
> The one function that seems to cause problems (_RawIOBase.read()) already
> returns object. I think this only crops up when a subclass of io.RawIOBase
> overrides read() but returns a string - the io module will try to cast the 
> result
> from object to Bytes, and fail with a TypeError.
> 
> This is #29378 if anyone else is interested.

Ahh, yeah, we should probably have a helper method in here which will convert
the string back to bytes rather than all of these casts to Bytes.  It could 
also be
incompatible w/ CPython in that they *might* allow bytearray objects to be 
returned
too which these casts would also prevent.




_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to