| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| def close(self): | ||
| file = self._file | ||
| file = getattr(self, '_file') |
There was a problem hiding this comment.
It is easier and more reliable to set a class attribute _file = None. This also helps when __del__ is called after clearing the builtins module. This is common idiom.
Sorry, something went wrong.
| # _ssnd_chunk -- instantiation of a chunk class for the SSND chunk | ||
| # _framesize -- size of one frame in the file | ||
|
|
||
| _file = None |
There was a problem hiding this comment.
Maybe add a comment like in subprocess.py, tempfile.py, zipfile.py?
Sorry, something went wrong.
follow up of pythonGH-162 (cherry picked from commit 5dc33ee)
follow up of pythonGH-162 (cherry picked from commit 5dc33ee)
| Back | FazBrowse Home | New Git URL |
ref: https://github.com/python/cpython/pull/162/files#r102688420