summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
AgeCommit message (Expand)AuthorLines
2009-03-20PyLong_BASE_TWODIGITS_TYPE should be BASE_TWODIGITS_TYPEMark Dickinson-2/+2
2009-01-26Merged revisions 68974-68975 via svnmerge fromMark Dickinson-8/+9
2009-01-25Merged revisions 68947 via svnmerge fromMark Dickinson-1/+1
2009-01-24Merged revisions 68890 via svnmerge fromMark Dickinson-23/+20
2008-08-04Issue #1481296: (again!) Make conversion of a float NaN to an int orMark Dickinson-2/+4
2008-07-31Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz-0/+2
2008-07-10Added additional __sizeof__ implementations and addressed comments made inRobert Schuppenies-2/+2
2008-06-24Revert 64424, 64438, and 64439.Raymond Hettinger-7/+0
2008-06-20Make bin() implementation parallel oct() and hex() so that int/long subclasse...Raymond Hettinger-0/+7
2008-06-09This reverts r63675 based on the discussion in this thread:Gregory P. Smith-16/+16
2008-06-01Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl-1/+1
2008-06-01Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies-0/+13
2008-05-30Refactor and clean up str.format() code (and helpers) in advance of optimizat...Eric Smith-16/+11
2008-05-26Renamed PyString to PyBytesChristian Heimes-17/+17
2008-04-18I finally got the time to update and merge Mark's and my trunk-math branch. T...Christian Heimes-0/+12
2008-04-15Fix for possible signed overflow: the behaviour of -LONG_MIN isMark Dickinson-6/+19
2008-03-28Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.Neal Norwitz-5/+5
2008-03-27Fix warnings about using char as an array subscript. This is not portableNeal Norwitz-5/+5
2008-03-18Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.Jeffrey Yasskin-1/+1
2008-03-17Finished backporting PEP 3127, Integer Literal Support and Syntax.Eric Smith-1/+14
2008-02-17Backport of PEP 3101, Advanced String Formatting, from py3k.Eric Smith-0/+36
2008-02-10Added PyNumber_ToBase and supporting routines _PyInt_Format andEric Smith-14/+23
2008-01-25Backport of several functions from Python 3.0 to 2.6 including PyUnicode_From...Christian Heimes-165/+165
2008-01-18Silence Coverity false alerts with CIDs #172, #183, #184Christian Heimes-0/+1
2008-01-05Continue rolling back pep-3141 changes that changed behavior from 2.5. ThisJeffrey Yasskin-34/+0
2008-01-04Make math.{floor,ceil}({int,long}) return float again for backwardsJeffrey Yasskin-2/+2
2008-01-04Bug #1481296: Fixed long(float('nan'))!=0L.Christian Heimes-0/+3
2008-01-03Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin-15/+67
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFC...Christian Heimes-89/+89
2007-09-19Issue #1772851. Alters long.__hash__ from being *almost* completelyFacundo Batista-0/+8
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-89/+89
2007-05-03Fix problems in x64 build that were discovered by the testsuite:Kristján Valur Jónsson-1/+1
2007-04-11Add some missing NULL checks which trigger crashes on low-memory conditions.Georg Brandl-0/+8
2007-03-06Patch #1638879: don't accept strings with embedded NUL bytes in long().Georg Brandl-1/+18
2007-02-25Variation of patch # 1624059 to speed up checking if an object is a subclassNeal Norwitz-1/+1
2006-10-04Forward-port of r52136,52138: a review of overflow-detecting code.Armin Rigo-24/+47
2006-08-12Patch #1538606, Patch to fix __index__() clipping.Neal Norwitz-42/+7
2006-07-23Move the initialization of size_a down below the check for a being NULL.Neal Norwitz-1/+2
2006-07-16a & b were dereffed above, so they are known to be valid pointers.Neal Norwitz-3/+2
2006-05-30PyLong_FromString(): Continued fraction analysis (explained inTim Peters-3/+74
2006-05-25Patch #1494387: SVN longobject.c compiler warningsTim Peters-1/+1
2006-05-25Faster path for PyLong_FromLongLong, using PyLong_FromLong algorithmBob Ippolito-10/+50
2006-05-25A new table to help string->integer conversion was added yesterday toTim Peters-14/+13
2006-05-24Heavily fiddled variant of patch #1442927: PyLong_FromString optimization.Tim Peters-43/+155
2006-05-10Fix problems found by Coverity.Neal Norwitz-4/+4
2006-04-18C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a...Skip Montanaro-2/+2
2006-04-11Fix int() and long() to repr() their argument when formatting the exception,Thomas Wouters-2/+14
2006-04-11More C++-compliance. Note especially listobject.c - to get C++ to accept theAnthony Baxter-8/+8
2006-04-10Patch #837242: id() for large ptr should return a long.Martin v. Löwis-3/+9
2006-04-05Add PY_SSIZE_T_MIN, as suggested by Ralf W. Grosse-Kunstleve.Martin v. Löwis-1/+1