• Guido van Rossum's avatar
    Miscellaneous code fiddling: · 55f2099b
    Guido van Rossum yazdı
    - 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.
    55f2099b
Adı
Son kayıt (commit)
Son güncelleme
..
.cvsignore Loading commit data...
abstract.c Loading commit data...
bufferobject.c Loading commit data...
cellobject.c Loading commit data...
classobject.c Loading commit data...
cobject.c Loading commit data...
complexobject.c Loading commit data...
descrobject.c Loading commit data...
dictobject.c Loading commit data...
fileobject.c Loading commit data...
floatobject.c Loading commit data...
frameobject.c Loading commit data...
funcobject.c Loading commit data...
intobject.c Loading commit data...
iterobject.c Loading commit data...
listobject.c Loading commit data...
longobject.c Loading commit data...
methodobject.c Loading commit data...
moduleobject.c Loading commit data...
object.c Loading commit data...
obmalloc.c Loading commit data...
rangeobject.c Loading commit data...
sliceobject.c Loading commit data...
stringobject.c Loading commit data...
tupleobject.c Loading commit data...
typeobject.c Loading commit data...
unicodectype.c Loading commit data...
unicodeobject.c Loading commit data...
unicodetype_db.h Loading commit data...
xxobject.c Loading commit data...