[New-bugs-announce] [issue46255] Remove unnecessary check in _IOBase._check*() methods

Ma Lin report at bugs.python.org
Tue Jan 4 06:44:35 EST 2022


New submission from Ma Lin <malincns at 163.com>:

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},

----------
components: IO
messages: 409672
nosy: malin
priority: normal
severity: normal
status: open
title: Remove unnecessary check in _IOBase._check*() methods
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46255>
_______________________________________


More information about the New-bugs-announce mailing list