bytes vs. characters
bytes vs. characters
Posted Apr 24, 2015 17:22 UTC (Fri) by marcH (subscriber, #57642)In reply to: bytes vs. characters by mbunkus
Parent article: Report from the Python Language Summit
> Only force encodings in places where you need that encoding; displaying the file name being the prime example.
Thanks a lot, this clarifies.
So the core issue seems to be: the filename being the only file handle. Lose the name and you lose the file. I agree it shouldn't be like this. For instance you can have an iterator that returns some opaque FileObject that does not really care about the name. Does Python have this?
