mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-112125: Fix None.__ne__(None) returning NotImplemented instead of … (#112827)
gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False (#112504)
(cherry picked from commit 9c3458e058
)
Co-authored-by: andrewluotechnologies <44252973+andrewluotechnologies@users.noreply.github.com>
This commit is contained in:
parent
e21a7a976a
commit
f27271619e
5 changed files with 15 additions and 1 deletions
|
@ -5593,6 +5593,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