Christian Heimes added the comment:

I've another argument against your proposal:
open() always wraps a operating system resource and not some Python object. At 
the lowest level open() interacts with a file descriptor (aka file handler on 
Windows). I don't like to break the promise.

Lot's of 3rd party extensions don't support file-like objects because they wrap 
C libraries that either need a path, a file descriptor or a FILE* pointer.

----------
nosy: +christian.heimes
resolution: rejected -> 
status: closed -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16122>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to