summaryrefslogtreecommitdiff
path: root/Include/complexobject.h
AgeCommit message (Collapse)AuthorLines
2014-07-07Issue #21803: remove macro indirections in complexobject.hAntoine Pitrou-15/+7
2012-05-29Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args ↵Victor Stinner-4/+6
and str.format(args) * Formatting string, int, float and complex use the _PyUnicodeWriter API. It avoids a temporary buffer in most cases. * Add _PyUnicodeWriter_WriteStr() to restore the PyAccu optimization: just keep a reference to the string if the output is only composed of one string * Disable overallocation when formatting the last argument of str%args and str.format(args) * Overallocation allocates at least 100 characters: add min_length attribute to the _PyUnicodeWriter structure * Add new private functions: _PyUnicode_FastCopyCharacters(), _PyUnicode_FastFill() and _PyUnicode_FromASCII() The speed up is around 20% in average.
2011-09-28Implement PEP 393.Martin v. Löwis-2/+3
2010-12-03Merge branches/pep-0384.Martin v. Löwis-3/+11
2009-04-30Issue #1588: Add complex.__format__.Eric Smith-0/+6
2008-04-19Merged revisions 62380,62382-62383 via svnmerge fromChristian Heimes-0/+2
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62380 | christian.heimes | 2008-04-19 01:13:07 +0200 (Sat, 19 Apr 2008) | 3 lines 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. The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :) ........ r62382 | christian.heimes | 2008-04-19 01:40:40 +0200 (Sat, 19 Apr 2008) | 2 lines Added new files to Windows project files More Windows related fixes are coming soon ........ r62383 | christian.heimes | 2008-04-19 01:49:11 +0200 (Sat, 19 Apr 2008) | 1 line Stupid me. Py_RETURN_NAN should actually return something ... ........
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.Christian Heimes-1/+1
2007-07-21Merged revisions 56467-56482 via svnmerge fromMartin v. Löwis-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/p3yk ................ r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines Merged revisions 56466-56476 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. ........ ................ r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines PEP 3123: Use proper C inheritance for PyObject. ................ r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines Add longintrepr.h to Python.h, so that the compiler can see that PyFalse is really some kind of PyObject*. ................ r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines Qualify SHIFT, MASK, BASE. ................ r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines Correctly refer to _ob_next. ................
2002-10-04SF # 607253, header file problems by Ralf W. Grosse-KunstleveNeal Norwitz-3/+3
Don't pollute the namespace when protecting against multiple header inclusion. Prefix with Py_ and use standard naming convention Py_FILENAME_H.
2002-08-12Excise DL_EXPORT from Include.Mark Hammond-12/+12
Thanks to Skip Montanaro and Kalle Svensson for the patches.
2001-09-12Again perhaps the end of [#460020] bug or feature: unicode() and subclasses.Tim Peters-0/+1
Inhibited complex unary plus optimization when applied to a complex subtype. Added PyComplex_CheckExact macro. Some comments and minor code fiddling.
2001-08-29Make the PyXXX_Check() macros for the numeric types inheritance-aware.Guido van Rossum-1/+1
2000-07-09ANSI-fication and Py_PROTO extermination.Fred Drake-17/+17
1998-12-04Add DL_IMPORT(returntype) for all officially exported functions.Guido van Rossum-11/+11
1996-08-19Add prototypes for c_sum() etc.Guido van Rossum-6/+6
1996-07-21renamed complex -> Py_complexGuido van Rossum-10/+10
1996-05-24rename exported symbols with _Py_ prefixGuido van Rossum-0/+7
1996-01-12added decl for PyComplex_AsCComplexGuido van Rossum-0/+1
1996-01-12complex numbers a la Konrad HinsenGuido van Rossum-0/+49