FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-29110: add test for Aifc_write. by methane · Pull Request #293 · python/cpython · GitHub

Repository navigation

bpo-29110: add test for Aifc_write. - #293

Merged
methane merged 3 commits into
python:masterfrom
methane:aifc-test-write
Feb 26, 2017
Merged

methane merged 3 commits into
python:masterfrom
methane:aifc-test-write

Conversation

methane commented Feb 25, 2017

Copy link
Copy Markdown
Member

Comment thread Lib/aifc.py Outdated

def close(self):
file = self._file
file = getattr(self, '_file')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Comment thread Lib/aifc.py Outdated
# _ssnd_chunk -- instantiation of a chunk class for the SSND chunk
# _framesize -- size of one frame in the file

_file = None

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Maybe add a comment like in subprocess.py, tempfile.py, zipfile.py?

methane merged commit 5dc33ee into python:master Feb 26, 2017
methane deleted the aifc-test-write branch February 26, 2017 12:12
methane added a commit to methane/cpython that referenced this pull request Feb 26, 2017
methane added a commit to methane/cpython that referenced this pull request Feb 26, 2017
methane added a commit that referenced this pull request Feb 26, 2017
(cherry picked from commit 03f68b6) (GH-162)
(cherry picked from commit 5dc33ee) (GH-293)
methane added a commit that referenced this pull request Feb 26, 2017
(cherry picked from commit 03f68b6) (GH-162)
(cherry picked from commit 5dc33ee) (GH-293)
jaraco pushed a commit that referenced this pull request Dec 2, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL