[issue16122] Allow *open* to accept file-like objects

Benjamin Peterson report at bugs.python.org
Wed Oct 3 23:34:26 CEST 2012


Benjamin Peterson added the comment:

So, this is supposed to be a kludge for 3rd-party libraries that don't support using file objects? Immediately calling open() isn't necessarily what such a library will do. It could process the path somehow. Anyway, it's not clear what the semantics of the wrapper open() would return would be.

I'm going to close this. If you want to push it, you can bring it up on the python-ideas mailing list.

----------
nosy: +benjamin.peterson
resolution:  -> rejected
status: open -> closed
versions: +Python 3.4 -Python 2.7, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16122>
_______________________________________


More information about the Python-bugs-list mailing list