diff options
author | Guido van Rossum <guido@python.org> | 2001-10-18 19:20:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-18 19:20:25 (GMT) |
commit | 6c4bce3b5c843be20980aa082ac0ecc027b7ad58 (patch) | |
tree | 4ac3dfb1f322ed52069e534ee8e2303b17a6fce0 /Misc | |
parent | 03f7f088743bbab2dd5aa426670a41fd643112cd (diff) | |
download | cpython-6c4bce3b5c843be20980aa082ac0ecc027b7ad58.zip cpython-6c4bce3b5c843be20980aa082ac0ecc027b7ad58.tar.gz cpython-6c4bce3b5c843be20980aa082ac0ecc027b7ad58.tar.bz2 |
Note stricter tp_compare return value requirements.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -103,6 +103,12 @@ Build C API +- The documentation for the tp_compare slot is updated to require that + the return value must be -1, 0, 1; an arbitrary number <0 or >0 is + not correct. This is not yet enforced but will be enforced in + Python 2.3; even later, we may use -2 to indicate errors and +2 for + "NotImplemented". Right now, -1 should be used for an error return. + - PyLong_AsLongLong() now accepts int (as well as long) arguments. Consequently, PyArg_ParseTuple's 'L' code also accepts int (as well as long) arguments. |