diff options
author | Guido van Rossum <guido@python.org> | 2001-08-08 22:26:22 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-08 22:26:22 +0000 |
commit | dc91b99f23610573c275cb70f987bcf56eee0d23 (patch) | |
tree | ef48c73f5d694dd01166c48129be20976156032a /Lib/test/test_binop.py | |
parent | ab04653715008365b65b0a6926fce3b42379a21a (diff) | |
download | cpython-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