New submission from Ma Lin <[email protected]>:
static int
long_compare(PyLongObject *a, PyLongObject *b)
{
....
}
This function in /Objects/longobject.c is used to compare two PyLongObject's
value.
We only need the sign, converting to -1 or +1 is not necessary.
----------
messages: 333293
nosy: Ma Lin
priority: normal
severity: normal
status: open
title: remove unnecessary operation in long_compare()
versions: Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35696>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com