Fredrik Lundh wrote: > > someone wrote: > > > (alternate idea: instead of adding a non-standard mode > > flag, how about a "textfile" constructor?) > > with the following signature, perhaps: > > f = textfile(filename, mode="r", encoding=None) Enthusiastic +1. But I think that encoding should default to "ASCII". We also need to discuss under what circumstances textfile("foo").read() returns Unicode string versus 8-bit string. Paul Prescod
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4