• Guido van Rossum's avatar
    It's a fact: for binary operators, *under certain circumstances*, · 4bb1e36e
    Guido van Rossum yazdı
    __rop__ now takes precendence over __op__.  Those circumstances are:
    
      - Both arguments are new-style classes
      - Both arguments are new-style numbers
      - Their implementation slots for tp_op differ
      - Their types differ
      - The right argument's type is a subtype of the left argument's type
    
    Also did this for the ternary operator (pow) -- only the binary case
    is dealt with properly though, since __rpow__ is not supported anyway.
    4bb1e36e
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...