147 Commits (575596e19a8f0be382f08a2dc9190100ff811b97)

Author SHA1 Message Date
Christian Heimes d3afe781b1 Silence expression result unused warnings with clang. 12 years ago
Ezio Melotti a5b9599538 #17080: improve error message of float/complex when the wrong type is passed. 12 years ago
Ezio Melotti 488d244e1a #19068: use imperative mood in complex object docstrings. Patch by Marco Buttu. 12 years ago
Antoine Pitrou 9ed5f27266 Issue #18722: Remove uses of the "register" keyword in C code. 13 years ago
Victor Stinner 8f674ccd64 Close #17694: Add minimum length to _PyUnicodeWriter 13 years ago
Mark Dickinson d20fb82195 Issue #16290: __complex__ must now always return an instance of complex. 13 years ago
Victor Stinner d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 14 years ago
Benjamin Peterson ce79852077 use the static identifier api for looking up special methods 14 years ago
Martin v. Löwis d63a3b8beb Implement PEP 393. 14 years ago
Brian Curtin dfc80e3d97 Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED. 15 years ago
Jesus Cea 2fc8b87499 Port 5b607cd8c71b (closes #11892) 15 years ago
Victor Stinner 6ced7c4333 Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead of 15 years ago
Eric Smith 70099a1555 Removed static function complex_format, moved it into complex_repr. Modified tests to check both str and repr, which are the same for complex. 15 years ago
Alexander Belopolsky 942af5a9a4 Issue #10557: Fixed error messages from float() and other numeric 15 years ago
Victor Stinner f961377e99 #6780: fix complex() constructor TypeError message 15 years ago
Benjamin Peterson 8035bc5c04 follow up to #9778: define and use an unsigned hash type 15 years ago
Benjamin Peterson 8f67d0893f make hashes always the size of pointers; introduce Py_hash_t #9778 15 years ago
Mark Dickinson 388122d43b Issue #9337: Make float.__str__ identical to float.__repr__. 16 years ago
Mark Dickinson 4ca7c3c089 Issue #8748: Fix incorrect results from comparisons between an integer 16 years ago
Mark Dickinson 4b3035d0b8 Remove declaration for unused variable. 16 years ago
Mark Dickinson 813363743d Issue #5211: Complete removal of implicit coercions for the complex 16 years ago
Mark Dickinson dc787d2055 Issue #8188: Introduce a new scheme for computing hashes of numbers 16 years ago
Mark Dickinson cc6a982de8 Issue #8748: Fix two issues with comparisons between complex and integer 16 years ago
Antoine Pitrou 7f14f0d8a0 Recorded merge of revisions 81032 via svnmerge from 16 years ago
Antoine Pitrou f95a1b3c53 Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 16 years ago
Mark Dickinson f673f0c40c Issue #7845: Make 1j.__le__(2j) return NotImplemented rather than raising TypeError. 16 years ago
Ezio Melotti 50363262b2 Merged revisions 78319 via svnmerge from 16 years ago
Ezio Melotti bce3e17bd2 #7482: clarify error message in case of division by zero of float and complex numbers. 16 years ago
Mark Dickinson 82b34c5dbe Issue #5211: Fix complex type to avoid implicit calls to 16 years ago
Benjamin Peterson aea4428fdc Merged revisions 77292-77293 via svnmerge from 16 years ago
Benjamin Peterson 3694366af5 factor out __complex__ lookup code to fix another case 16 years ago
Benjamin Peterson ecdae19fbe do correct lookup of the __complex__ method 16 years ago
Mark Dickinson a4962cb694 Merged revisions 76561 via svnmerge from 16 years ago
Mark Dickinson 31f0cfef0e Include ieeefp.h (when available) in pyport.h instead of individually in 16 years ago
Mark Dickinson c04c7c5b72 Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in 16 years ago
Mark Dickinson 1daebdf82c Make sure memory is freed on error in complex_subtype_from_string. 16 years ago
Mark Dickinson f972488213 Remove length limitation on string arguments to complex() 16 years ago
Skip Montanaro ba1e0f46ab Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway) 16 years ago
Mark Dickinson a4e0efa4b1 Issue #5829: don't raise OverflowError for complex('1e500'). Backport of r72803. 17 years ago
Mark Dickinson 6b1e43b7bc Issue #5829: complex('1e500') shouldn't raise OverflowError 17 years ago
Mark Dickinson df99f04895 Merged revisions 72718 via svnmerge from 17 years ago
Mark Dickinson 578cc749ab Merged revisions 72718 via svnmerge from 17 years ago
Mark Dickinson 50626db437 Issue #6044: remove confusing wording from complex -> integer and 17 years ago
Eric Smith a985a3aee4 Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 17 years ago
Eric Smith 63376228a3 Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson. 17 years ago
Mark Dickinson aa77d26009 Merged revisions 72253 via svnmerge from 17 years ago
Mark Dickinson 777e4ff503 Eliminate some locale-dependent calls to isspace and tolower. 17 years ago
Mark Dickinson 725bfd8489 Issue #5914: Add new C-API function PyOS_string_to_double, to complement 17 years ago