Mark Dickinson <[EMAIL PROTECTED]> added the comment: I'm confused. I'm probably missing something, but why do you think such a check is necessary? The code I'm seeing at around line 2766 is:
static Py_ssize_t match_getindex(MatchObject* self, PyObject* index) { Py_ssize_t i; if (PyInt_Check(index)) return PyInt_AsSsize_t(index); ... Is there any reason to expect that the index argument to match_getindex might be NULL? Even if it were, surely it would be the PyInt_Check call that would be affected, not PyInt_AsSsize_t? The usual pattern in Python C code is to check return values, but not incoming arguments. ---------- nosy: +marketdickinson _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4460> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com