summaryrefslogtreecommitdiff
path: root/Objects/intobject.c
AgeCommit message (Expand)AuthorLines
2009-12-27Issue #1811: Improve accuracy and consistency of true division for integers.Mark Dickinson-6/+25
2009-12-04Avoid undefined behaviour due to overflow in i_divmod (Objects/intobject.c).Mark Dickinson-1/+10
2009-12-02Issue #7406: Fix some occurrences of potential signed overflow in intMark Dickinson-3/+6
2009-11-16Silence another MSVC warning about unary minus.Mark Dickinson-1/+1
2009-09-27Issue #6713: Improve decimal int -> string conversions. Thanks GawainMark Dickinson-10/+28
2009-05-03Remove unnecessary uses of context in PyGetSetDef. See issue #5880.Mark Dickinson-10/+15
2009-04-20Issue #3166: Make long -> float (and int -> float) conversionsMark Dickinson-12/+68
2009-01-07Issue #4850: Change COUNT_ALLOCS variables to Py_ssize_t.Martin v. Löwis-1/+2
2008-12-17Issue #3439: add bit_length method to int and long.Mark Dickinson-0/+36
2008-07-06- Issue #2862: Make int and float freelist management consistent with otherGregory P. Smith-35/+25
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-7/+7
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-8/+8
2008-04-18I finally got the time to update and merge Mark's and my trunk-math branch. T...Christian Heimes-0/+12
2008-03-27Pluralss only need one s, not 2 (intss -> ints)Neal Norwitz-1/+1
2008-03-18Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.Jeffrey Yasskin-1/+1
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-19/+71
2008-02-04Patch #1953Christian Heimes-18/+34
2008-01-05Continue rolling back pep-3141 changes that changed behavior from 2.5. ThisJeffrey Yasskin-32/+0
2008-01-04Make math.{floor,ceil}({int,long}) return float again for backwardsJeffrey Yasskin-2/+2
2008-01-03Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin-16/+68
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFC...Christian Heimes-12/+12
2007-09-17Add a bunch of GIL release/acquire points in tp_print implementations and forBrett Cannon-1/+4
2007-07-21PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis-14/+13
2007-05-16Port rev 55353 from Guido:Neal Norwitz-1/+1
2007-05-07As per Armin Rigo's suggestion, remove special handing from intobject.c to de...Kristján Valur Jónsson-7/+2
2007-05-03Fix problems in x64 build that were discovered by the testsuite:Kristján Valur Jónsson-0/+4
2007-02-25Variation of patch # 1624059 to speed up checking if an object is a subclassNeal Norwitz-1/+1
2007-01-10Minor change in int() docstring for proper spacing.Gustavo Niemeyer-1/+1
2007-01-10Mention in the int() docstring that a base zero has meaning, asGustavo Niemeyer-2/+3
2006-10-12Bug #1545497: when given an explicit base, int() did ignore NULsGeorg Brandl-2/+19
2006-10-04Forward-port of r52136,52138: a review of overflow-detecting code.Armin Rigo-2/+14
2006-10-04Fix integer negation and absolute value to not relyMartin v. Löwis-4/+3
2006-09-05"Conceptual" merge of rev 51711 from the 2.5 branch.Tim Peters-1/+1
2006-08-12Patch #1538606, Patch to fix __index__() clipping.Neal Norwitz-6/+11
2006-04-18C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a...Skip Montanaro-17/+18
2006-04-11Fix int() and long() to repr() their argument when formatting the exception,Thomas Wouters-4/+14
2006-04-11More C++-compliance. Note especially listobject.c - to get C++ to accept theAnthony Baxter-6/+6
2006-03-30Remove unnecessary casts in type object initializers.Georg Brandl-1/+1
2006-03-07Checking in the code for PEP 357.Guido van Rossum-0/+1
2006-03-01Use %ld and casts to long for refcount printing, in absense of a universallyThomas Wouters-2/+7
2006-02-27Revert backwards-incompatible const changes.Martin v. Löwis-1/+1
2006-02-22RFE #1436243: make integers in [0..256] preallocated.Georg Brandl-1/+1
2006-02-15Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalizeThomas Wouters-1/+3
2006-02-15Merge ssize_t branch.Martin v. Löwis-1/+70
2005-12-10Add const to several API functions that take char *.Jeremy Hylton-1/+1
2005-04-26Make subclasses of int, long, complex, float, and unicode perform typeBrett Cannon-1/+4