cpython/Objects
Guido van Rossum 4bb1e36eec It's a fact: for binary operators, *under certain circumstances*,
__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.
2001-09-28 23:49:48 +00:00
..
.cvsignore
abstract.c It's a fact: for binary operators, *under certain circumstances*, 2001-09-28 23:49:48 +00:00
bufferobject.c
cellobject.c
classobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
cobject.c
complexobject.c Merge branch changes (coercion, rich comparisons) into trunk. 2001-09-27 20:30:07 +00:00
descrobject.c Make properties discoverable from Python: 2001-09-24 21:17:50 +00:00
dictobject.c
fileobject.c Generalize file.writelines() to allow iterable objects. 2001-09-23 04:06:05 +00:00
floatobject.c
frameobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
funcobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
intobject.c
iterobject.c
listobject.c
longobject.c
methodobject.c Add optional docstrings to getset descriptors. Fortunately, there's 2001-09-20 21:45:26 +00:00
moduleobject.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
object.c Merge branch changes (coercion, rich comparisons) into trunk. 2001-09-27 20:30:07 +00:00
obmalloc.c
rangeobject.c
sliceobject.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
stringobject.c Merge branch changes (coercion, rich comparisons) into trunk. 2001-09-27 20:30:07 +00:00
tupleobject.c
typeobject.c Ouch. The wrapper for __rpow__ was the same as for __pow__, resulting 2001-09-28 22:58:52 +00:00
unicodectype.c
unicodeobject.c Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead 2001-09-21 15:38:17 +00:00
unicodetype_db.h
xxobject.c