diff options
author | Guido van Rossum <guido@python.org> | 2003-01-06 23:00:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-01-06 23:00:59 (GMT) |
commit | 613f24fd73b90c90b219aa764e8e37b35cff717a (patch) | |
tree | abaff2f060aa81e22e0a8c636af17090ca632827 /Doc | |
parent | cd118803b5aa124bcfd8a12f28c22c4cf37c9de7 (diff) | |
download | cpython-613f24fd73b90c90b219aa764e8e37b35cff717a.zip cpython-613f24fd73b90c90b219aa764e8e37b35cff717a.tar.gz cpython-613f24fd73b90c90b219aa764e8e37b35cff717a.tar.bz2 |
Add a test for a feature added in rev. 2.82 of typeobject.c:
- 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__.
Also test the refinement added in rev. 2.201 that fixes the problem
reported in SF bug #623669.
Also test a similar provision in abstract.c's binary_op1().
Diffstat (limited to 'Doc')
0 files changed, 0 insertions, 0 deletions