mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use numbers that can be accurately represented on binary machines. I hope
this works on all platforms.
This commit is contained in:
parent
d18722b99d
commit
38796d07a5
2 changed files with 587 additions and 587 deletions
|
@ -65,8 +65,8 @@ class MethodNumber:
|
|||
return cmp(self.arg, other)
|
||||
|
||||
|
||||
candidates = [ 2, 2.2, 2L, 2+4j, [1], (2,), None,
|
||||
MethodNumber(1), CoerceNumber(8)]
|
||||
candidates = [ 2, 4.0, 2L, 2+0j, [1], (2,), None,
|
||||
MethodNumber(1), CoerceNumber(2)]
|
||||
|
||||
infix_binops = [ '+', '-', '*', '/', '**', '%' ]
|
||||
prefix_binops = [ 'divmod' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue