[issue10855] wave.Wave_read.close() doesn't release file

2011-01-07 Thread Peter Creath
New submission from Peter Creath : Calling wave.close() fails to release all references to the file passed in via wave.open(filename_or_obj, "rb"). As a result, processing many wave files produces an IOError of too many files open. This bug is often masked because this dangling re

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-12 Thread Peter Creath
Peter Creath added the comment: Thank you for clarifying the documentation. However, I don't think that fully resolves the issue. I'm not complaining about a failure to close the file. As you observe, it doesn't need to (and shouldn't) close a file object, but i

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-12 Thread Peter Creath
Peter Creath added the comment: A point of clarification on the original report: Georg is completely right when he points out that this is only an issue when passing in a file object. If passed a filename, wave.py both opens and closes the file explicitly, and the dangling reference isn&#