[issue10855] wave.Wave_read.close() doesn't release file
Georg Brandl
report at bugs.python.org
Sat Jan 8 10:45:58 CET 2011
Georg Brandl <georg at 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 <report at bugs.python.org>
<http://bugs.python.org/issue10855>
_______________________________________
More information about the Python-bugs-list
mailing list