You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, openstream and other stream-related methods expect a stream name in unicode on Python 3, and a bytes string encoded in UTF-8 by default on Python 2. It would be much better to allow both unicode and bytes, on both platforms, to avoid some issues.
It would even be a good idea to look for bytes using the original encoding of the directory as fallback, if a stream cannot be found using the unicode or utf8 representation. (in case the caller only has the original encoded name and does not know the encoding, for example if it's an exotic code page with no python codec)
The text was updated successfully, but these errors were encountered:
For now, openstream and other stream-related methods expect a stream name in unicode on Python 3, and a bytes string encoded in UTF-8 by default on Python 2. It would be much better to allow both unicode and bytes, on both platforms, to avoid some issues.
It would even be a good idea to look for bytes using the original encoding of the directory as fallback, if a stream cannot be found using the unicode or utf8 representation. (in case the caller only has the original encoded name and does not know the encoding, for example if it's an exotic code page with no python codec)
The text was updated successfully, but these errors were encountered: