Georg Brandl <ge...@python.org> added the comment:

This is not a bug in the implementation: the file object is only closed when 
you passed a file name to open().

Like other APIs that allow file names or objects to be passed in, it is the 
caller's responsibility to close the file object if an object was passed.

However, this was not documented.  I've fixed that with r87859.

----------
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

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

Reply via email to