diff options
author | Guido van Rossum <guido@python.org> | 2001-01-18 01:12:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-18 01:12:39 (GMT) |
commit | be4cbb16681ba9274b3017d9ccf3bcb2a2dbc30c (patch) | |
tree | 387428f57c5410d5014c2f09d8487052d181fff2 /Lib/linecache.py | |
parent | 9d19cb8a70544ced7ec9a7995a31d1ed708d4841 (diff) | |
download | cpython-be4cbb16681ba9274b3017d9ccf3bcb2a2dbc30c.zip cpython-be4cbb16681ba9274b3017d9ccf3bcb2a2dbc30c.tar.gz cpython-be4cbb16681ba9274b3017d9ccf3bcb2a2dbc30c.tar.bz2 |
Use rich comparisons to fulfill an old wish: complex numbers now raise
exceptions when compared using <, <=, > or >=.
NOTE: This is a tentative change: this means that cmp() involving
complex numbers will raise an exception when the numbers differ, and
that in turn means that e.g. dictionaries and certain other compounds
(e.g. UserLists) containing complex numbers can't be compared either.
So we'll have to decide whether this is acceptable. The alpha test
cycle is a good time to keep an eye on this!
Diffstat (limited to 'Lib/linecache.py')
0 files changed, 0 insertions, 0 deletions