summaryrefslogtreecommitdiff
path: root/Lib/test/test_binop.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-08 22:26:22 +0000
committerGuido van Rossum <guido@python.org>2001-08-08 22:26:22 +0000
commitdc91b99f23610573c275cb70f987bcf56eee0d23 (patch)
treeef48c73f5d694dd01166c48129be20976156032a /Lib/test/test_binop.py
parentab04653715008365b65b0a6926fce3b42379a21a (diff)
downloadcpython-git-dc91b99f23610573c275cb70f987bcf56eee0d23.tar.gz
Proper support for binary operators, including true division and floor
division. The basic binary operators now all correctly call the __rxxx__ variant when they should. In type_new(), I now make the new type a new-style number unless it inherits from an old-style number that has numeric methods. By way of cosmetics, I've changed the signatures of the SLOT<i> macros to take actual function names and operator names as strings, rather than rely on C preprocessor symbol manipulations. This makes the calls slightly more verbose, but greatly helps simple searches through the file: you can now find out where "__radd__" is used or where the function slot_nb_power() is defined and where it is used.
Diffstat (limited to 'Lib/test/test_binop.py')
0 files changed, 0 insertions, 0 deletions