summaryrefslogtreecommitdiff
path: root/Objects/complexobject.c
AgeCommit message (Expand)AuthorLines
2010-01-04factor out __complex__ lookup code to fix another caseBenjamin Peterson-50/+44
2010-01-04do correct lookup of the __complex__ methodBenjamin Peterson-8/+14
2009-11-28Include ieeefp.h (when available) in pyport.h instead of individually inMark Dickinson-4/+0
2009-10-26Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod inMark Dickinson-16/+29
2009-05-20Issue #5829: don't raise OverflowError for complex('1e500'). Backport of r72...Mark Dickinson-9/+0
2009-05-17Issue #6044: remove confusing wording from complex -> integer andMark Dickinson-3/+3
2009-05-05Issue #5920: Changed format.__float__ and complex.__float__ to use a precisio...Eric Smith-7/+10
2009-05-03Eliminate some locale-dependent calls to isspace and tolower.Mark Dickinson-4/+4
2009-04-30Issue #1588: Add complex.__format__.Eric Smith-0/+37
2009-04-26Reset errno before both calls to PyOS_ascii_strtod, not just one.Mark Dickinson-2/+2
2009-04-25Fix typo in complex parsing code; expand tests.Mark Dickinson-1/+1
2009-04-24Fix missing 'return NULL'Mark Dickinson-1/+1
2009-04-24Issue #5816:Mark Dickinson-163/+157
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-9/+9
2008-06-04Fixed complex.__getnewargs__() to not emit another complex object.Alexandre Vassalotti-1/+2
2008-05-26Renamed PyString to PyBytesChristian Heimes-9/+9
2008-04-18I finally got the time to update and merge Mark's and my trunk-math branch. T...Christian Heimes-3/+62
2008-03-28Fix compiler warning about finite() missing on Solaris.Neal Norwitz-0/+4
2008-02-15Fixed repr() and str() of complex numbers. Complex suffered from the same pro...Christian Heimes-7/+40
2008-01-28static PyObject* variables should use PyString_InternFromString() instead of ...Christian Heimes-6/+7
2008-01-19Indentation normalization.Georg Brandl-8/+8
2008-01-03Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin-6/+54
2007-12-03Shut up a compiler warning.Guido van Rossum-0/+1
2007-11-27Patch # 1507 by Mark Dickinson. Make complex(x, -0) retain the sign ofGuido van Rossum-9/+15
2007-09-17Add a bunch of GIL release/acquire points in tp_print implementations and forBrett Cannon-0/+2
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-2/+1
2007-03-17Patch #1675423: PyComplex_AsCComplex() now tries to convert an objectGeorg Brandl-1/+48
2007-03-13Patch #1642844: comments to clarify the complexobject constructor.Georg Brandl-4/+25
2007-03-09Patch #1491866: change the complex() constructor to allow parthensized forms....Collin Winter-5/+25
2007-03-09Fix SF #1676971, Complex OverflowError has a typoNeal Norwitz-1/+1
2006-07-16Use sizeof(buffer) instead of duplicating the constants to ensure they won'tNeal Norwitz-7/+7
2006-06-01Correctly allocate complex types with tp_alloc. (bug #1498638)Georg Brandl-2/+2
2006-04-18C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a...Skip Montanaro-1/+1
2006-03-30Remove unnecessary casts in type object initializers.Georg Brandl-5/+5
2006-02-27Revert backwards-incompatible const changes.Martin v. Löwis-1/+1
2006-02-15Merge ssize_t branch.Martin v. Löwis-2/+2
2005-12-10Add const to several API functions that take char *.Jeremy Hylton-1/+1
2005-09-16patch [ 1118729 ] Error in representation of complex numbers(again)Georg Brandl-6/+3
2004-12-19Bug #1079011: Incorrect error message (somewhat)Raymond Hettinger-1/+1
2004-08-22Fix repr for negative imaginary part. Fixes #1013908.Martin v. Löwis-2/+6
2004-06-08Patch #774665: Make Python LC_NUMERIC agnostic.Martin v. Löwis-9/+14
2003-10-12Simplify and speedup uses of Py_BuildValue():Raymond Hettinger-2/+2
2003-08-30Remove 'e.g.' from error messageRaymond Hettinger-3/+3
2003-08-15complex_new(): This could leak when the argument was neither string norTim Peters-0/+3
2003-06-17Fix typo in comment.Walter Dörwald-1/+1
2003-03-02Fix from Greg Chapman from SF bug #695651: a complex subclassGuido van Rossum-2/+3
2003-01-29Implement appropriate __getnewargs__ for all immutable subclassable builtinGuido van Rossum-0/+7
2002-08-29complex() was the only numeric constructor that created a new instanceRaymond Hettinger-0/+9
2002-08-19Call me anal, but there was a particular phrase that was speading toGuido van Rossum-1/+1
2002-06-13Patch #568124: Add doc string macros.Martin v. Löwis-2/+2