[Python-Dev] file() or open()?
Brett C.
bac at OCF.Berkeley.EDU
Wed Jul 7 23:11:51 CEST 2004
Guido van Rossum wrote:
[SNIP]
> In the future, I could see
> open() become a factory function again that could return an instance
> of a different class depending on the mode argument, the default
> encoding for files, or who knows what; but file will always remain a
> class.
How is this case different from the whole unicode.encode thread and the
worry of having different types of objects returned based on the
argument? I would assume that any objects returned would follow the
file interface roughly.
-Brett
More information about the Python-Dev
mailing list