mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False (#112504)
This commit is contained in:
parent
b449415b2f
commit
9c3458e058
5 changed files with 15 additions and 1 deletions
|
|
@ -2026,7 +2026,7 @@ PyTypeObject _PyNone_Type = {
|
|||
0, /*tp_doc */
|
||||
0, /*tp_traverse */
|
||||
0, /*tp_clear */
|
||||
0, /*tp_richcompare */
|
||||
_Py_BaseObject_RichCompare, /*tp_richcompare */
|
||||
0, /*tp_weaklistoffset */
|
||||
0, /*tp_iter */
|
||||
0, /*tp_iternext */
|
||||
|
|
|
|||
|
|
@ -5625,6 +5625,12 @@ object_richcompare(PyObject *self, PyObject *other, int op)
|
|||
return res;
|
||||
}
|
||||
|
||||
PyObject*
|
||||
_Py_BaseObject_RichCompare(PyObject* self, PyObject* other, int op)
|
||||
{
|
||||
return object_richcompare(self, other, op);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
object_get_class(PyObject *self, void *closure)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue