summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-01 17:18:22 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-01 17:18:22 (GMT)
commit55f2099b2f31cfab6c881989f60552c3621ce752 (patch)
tree4179e294bc49f63bfba6fd7cac90f42fec57e232 /setup.py
parent89c4264792da06293b197e14f581763f46138935 (diff)
downloadcpython-55f2099b2f31cfab6c881989f60552c3621ce752.zip
cpython-55f2099b2f31cfab6c881989f60552c3621ce752.tar.gz
cpython-55f2099b2f31cfab6c881989f60552c3621ce752.tar.bz2
Miscellaneous code fiddling:
- SLOT1BINFULL() macro: changed this to check for __rop__ overriding __op__, like binary_op1() in abstract.c -- the latter only calls the slot function once if both types use the same slot function, so the slot function must make both calls -- which it already did for the __op__, __rop__ order, but not yet for the __rop__, __op__ order when B.__class__ is a subclass of A.__class__. - slot_sq_contains(), slot_nb_nonzero(): use lookup_maybe() rather than lookup_method() which sets an exception which we then clear. - slot_nb_coerce(): don't give up when left argument's __coerce__ returns NotImplemented, but give the right argument a chance.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions