diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-12 20:01:30 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-12 20:01:30 (GMT) |
commit | c2ccce791ccbe35bee0edea2dedabb0fc7ea5906 (patch) | |
tree | c31fcb2d158d17ab07038f26ec016b37e5b8cea0 /Modules | |
parent | da0870c87aeb7843f0211d3fd9220f6f5b58f688 (diff) | |
parent | a60c2fe4807e89a5844979fe46b3ea39572fc3be (diff) | |
download | cpython-c2ccce791ccbe35bee0edea2dedabb0fc7ea5906.zip cpython-c2ccce791ccbe35bee0edea2dedabb0fc7ea5906.tar.gz cpython-c2ccce791ccbe35bee0edea2dedabb0fc7ea5906.tar.bz2 |
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
Added few tests for __truediv__, __floordiv__ and __matmul__.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_decimal/tests/deccheck.py | 2 | ||||
-rw-r--r-- | Modules/mathmodule.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py index 89433c0..ab7d5bd 100644 --- a/Modules/_decimal/tests/deccheck.py +++ b/Modules/_decimal/tests/deccheck.py @@ -127,7 +127,7 @@ ContextFunctions = { # Functions that require a restricted exponent range for reasonable runtimes. UnaryRestricted = [ - '__ceil__', '__floor__', '__int__', '__long__', '__trunc__', + '__ceil__', '__floor__', '__int__', '__trunc__', 'to_integral', 'to_integral_value' ] diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 9c97a2a..153d152 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -1021,7 +1021,7 @@ FUNC1(tanh, tanh, 0, Note 4: A similar implementation is in Modules/cmathmodule.c. Be sure to update both when making changes. - Note 5: The signature of math.fsum() differs from __builtin__.sum() + Note 5: The signature of math.fsum() differs from builtins.sum() because the start argument doesn't make sense in the context of accurate summation. Since the partials table is collapsed before returning a result, sum(seq2, start=sum(seq1)) may not equal the |