168 Commits (d0bb5d73cb2a44044cc314bc2cb68407b27eddb6)

Author SHA1 Message Date
Benjamin Peterson ecdae19fbe do correct lookup of the __complex__ method 17 years ago
Mark Dickinson a4962cb694 Merged revisions 76561 via svnmerge from 17 years ago
Mark Dickinson 31f0cfef0e Include ieeefp.h (when available) in pyport.h instead of individually in 17 years ago
Mark Dickinson c04c7c5b72 Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in 17 years ago
Mark Dickinson 1daebdf82c Make sure memory is freed on error in complex_subtype_from_string. 17 years ago
Mark Dickinson f972488213 Remove length limitation on string arguments to complex() 17 years ago
Skip Montanaro ba1e0f46ab Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway) 17 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
Eric Smith 58a42244cf Issue #1588: Add complex.__format__. 17 years ago
Eric Smith 9139cc6a3b Issue #1588: Add complex.__format__. 17 years ago
Mark Dickinson 35f1c9470a Merged revisions 71963 via svnmerge from 17 years ago
Mark Dickinson 944c6aedd0 Reset errno before both calls to PyOS_ascii_strtod, not just one. 17 years ago
Mark Dickinson 22999a69e1 Issue #5829: complex('1e-500') shouldn't raise an exception. 17 years ago
Mark Dickinson de8a710849 Merged revisions 71869 via svnmerge from 17 years ago
Mark Dickinson 0a6501bf56 Fix typo in complex parsing code; expand tests. 17 years ago
Mark Dickinson 6649fa42f8 Make sure that complex parsing code and corresponding tests 17 years ago
Mark Dickinson 90d47cb46c Fix missing 'return NULL' 17 years ago
Mark Dickinson 95bc980d9e Issue #5816: 17 years ago
Mark Dickinson ad476dab09 Issue #5816: Simplify code for parsing and printing of complex numbers. 17 years ago
Eric Smith 0923d1d8d7 The other half of Issue #1580: use short float repr where possible. 17 years ago
Mark Dickinson e94c679df0 Issue #1717: rename tp_compare to tp_reserved. I'll change the 18 years ago
Mark Dickinson 8055afd019 Issue #4910, patch 3/3: rename nb_long to nb_reserved 18 years ago
Mark Dickinson cce2f217d4 Issue 4910, patch 2 of (probably) 3: pave the way for renaming of 18 years ago
Benjamin Peterson 4f92ca4022 Remove nb_reserved (nb_coerce), nb_hex, and nb_oct from PyNumberMethods 18 years ago
Georg Brandl 0c77a82c3d Merged revisions 63829-63831,63858,63865,63879,63882,63948,63970-63972,63976,63989,64014-64015,64021-64022,64063-64065,64067 via svnmerge from 18 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Alexandre Vassalotti 80af6da748 Fixed complex.__getnewargs__() to not emit another complex object. 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Christian Heimes 53876d9cd8 Merged revisions 62380,62382-62383 via svnmerge from 18 years ago
Christian Heimes 6f34109384 I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. 18 years ago
Christian Heimes bbe741dd1b Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from 18 years ago
Neal Norwitz 9fdfaaf9af Fix compiler warning about finite() missing on Solaris. 18 years ago
Christian Heimes a156e09b19 Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60751,60753,60756-60757,60759-60761,60763-60764,60766,60769-60770,60774-60784,60787-60845 via svnmerge from 19 years ago
Christian Heimes 2f0da53d28 Fixed repr() and str() of complex numbers. Complex suffered from the same problem as floats but I forgot to test and fix them. 19 years ago
Christian Heimes fe82e774ea Merged revisions 60379-60382 via svnmerge from 19 years ago
Christian Heimes d7e1b2bd17 static PyObject* variables should use PyString_InternFromString() instead of PyObject_FromString() to store a python string in a function level static var. 19 years ago
Christian Heimes 587c2bfede Merged revisions 60053-60078 via svnmerge from 19 years ago
Georg Brandl 96f2184de6 Indentation normalization. 19 years ago
Jeffrey Yasskin 2f3c16be73 Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just 19 years ago
Guido van Rossum e7fc50f2d0 Add an errors parameter to open() and TextIOWrapper() to specify error handling. 19 years ago
Guido van Rossum e227263a6c Shut up a compiler warning. 19 years ago