117 Commits (2e9fb8d7e232f855aa9f2e35e77c5bbb270aaa3a)

Author SHA1 Message Date
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
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
Ezio Melotti bce3e17bd2 #7482: clarify error message in case of division by zero of float and complex numbers. 17 years ago
Mark Dickinson 82b34c5dbe Issue #5211: Fix complex type to avoid implicit calls to 17 years ago
Benjamin Peterson 3694366af5 factor out __complex__ lookup code to fix another case 17 years ago
Benjamin Peterson ecdae19fbe do correct lookup of the __complex__ method 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 a4e0efa4b1 Issue #5829: don't raise OverflowError for complex('1e500'). Backport of r72803. 17 years ago
Mark Dickinson df99f04895 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
Mark Dickinson 777e4ff503 Eliminate some locale-dependent calls to isspace and tolower. 17 years ago
Eric Smith 9139cc6a3b Issue #1588: Add complex.__format__. 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 0a6501bf56 Fix typo in complex parsing code; expand tests. 17 years ago
Mark Dickinson 90d47cb46c Fix missing 'return NULL' 17 years ago
Mark Dickinson 95bc980d9e Issue #5816: 17 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 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. 19 years ago
Neal Norwitz 9fdfaaf9af Fix compiler warning about finite() missing on Solaris. 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 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
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 e227263a6c Shut up a compiler warning. 19 years ago
Guido van Rossum 715ec1818d Patch # 1507 by Mark Dickinson. Make complex(x, -0) retain the sign of 19 years ago
Brett Cannon 0153159e67 Add a bunch of GIL release/acquire points in tp_print implementations and for 19 years ago
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping 19 years ago
Georg Brandl 2b869943fa Patch #1675423: PyComplex_AsCComplex() now tries to convert an object 20 years ago
Georg Brandl 8f032cbb05 Patch #1642844: comments to clarify the complexobject constructor. 20 years ago
Collin Winter e38051db87 Patch #1491866: change the complex() constructor to allow parthensized forms. This means complex(repr(x)) now works instead of raising a ValueError. 20 years ago
Neal Norwitz e7881559f2 Fix SF #1676971, Complex OverflowError has a typo 20 years ago
Neal Norwitz 0593de32d9 Fix SF #1676971, Complex OverflowError has a typo 20 years ago
Neal Norwitz 4b0a315c31 Use sizeof(buffer) instead of duplicating the constants to ensure they won't 20 years ago
Georg Brandl 6b50c63a23 Correctly allocate complex types with tp_alloc. (bug #1498638) 20 years ago
Skip Montanaro 429433b30b C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a couple places 21 years ago
Georg Brandl 347b30042b Remove unnecessary casts in type object initializers. 21 years ago
Martin v. Löwis 15e62742fa Revert backwards-incompatible const changes. 21 years ago
Martin v. Löwis 18e165558b Merge ssize_t branch. 21 years ago
Jeremy Hylton af68c874a6 Add const to several API functions that take char *. 21 years ago
Georg Brandl c404ff2f2d patch [ 1118729 ] Error in representation of complex numbers(again) 21 years ago
Raymond Hettinger 5d01aa4f6a Bug #1079011: Incorrect error message (somewhat) 22 years ago
Martin v. Löwis 70aa1f2095 Fix repr for negative imaginary part. Fixes #1013908. 22 years ago