]> granicus.if.org Git - python/commit
Add a test for a feature added in rev. 2.82 of typeobject.c:
authorGuido van Rossum <guido@python.org>
Mon, 6 Jan 2003 23:00:59 +0000 (23:00 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 6 Jan 2003 23:00:59 +0000 (23:00 +0000)
commit613f24fd73b90c90b219aa764e8e37b35cff717a
treeabaff2f060aa81e22e0a8c636af17090ca632827
parentcd118803b5aa124bcfd8a12f28c22c4cf37c9de7
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().
Lib/test/test_descr.py