This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove unnecessary check in _IOBase._check*() methods
Type: Stage: resolved
Components: IO Versions: Python 3.11
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: malin
Priority: normal Keywords: patch

Created on 2022-01-04 11:44 by malin, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30397 closed malin, 2022-01-04 11:45
Messages (1)
msg409672 - (view) Author: Ma Lin (malin) * Date: 2022-01-04 11:44
These methods are METH_NOARGS, in all cases the second parameter will be NULL.

    {"_checkClosed",   _PyIOBase_check_closed, METH_NOARGS},
    {"_checkSeekable", _PyIOBase_check_seekable, METH_NOARGS},
    {"_checkReadable", _PyIOBase_check_readable, METH_NOARGS},
    {"_checkWritable", _PyIOBase_check_writable, METH_NOARGS},
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90413
2022-01-20 03:58:58malinsetstatus: open -> closed
resolution: not a bug
stage: patch review -> resolved
2022-01-04 11:45:44malinsetkeywords: + patch
stage: patch review
pull_requests: + pull_request28606
2022-01-04 11:44:35malincreate