summaryrefslogtreecommitdiff
path: root/Objects/intobject.c
AgeCommit message (Expand)AuthorLines
2018-05-19bpo-16055: Fixes incorrect error text for int('1', base=1000) (#6980)Victor Stinner-1/+1
2017-09-13consistently use Py_TYPE, Py_REFCNT, and correct initializer macros (#3563)Benjamin Peterson-4/+4
2016-12-27Issue #28998: More APIs now support longs as well as ints.Serhiy Storchaka-2/+5
2016-11-29Issue #24469: Fixed memory leak caused by int subclasses without overriddenSerhiy Storchaka-8/+0
2016-09-17Issue #28139: Fix messed up indentationMartin Panter-2/+2
2016-06-21Issue #22463: Backport compiler warning fixes and workaroundsMartin Panter-2/+2
2014-11-23remove strange castsBenjamin Peterson-4/+4
2013-01-19Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka-0/+14
2012-12-28Issue #16761: Raise TypeError when int() or long() called with base argument ...Serhiy Storchaka-1/+7
2012-10-07Issue #14783: Backport changes from 3.2.Chris Jerdonek-8/+13
2011-09-19Issue #12973: Fix int.__pow__ overflow checks that invoked undefined behaviou...Mark Dickinson-2/+8
2010-05-09Untabify C files. Will watch buildbots.Antoine Pitrou-1024/+1024
2010-05-02Improve error message from nb_int returning a non-integer, in various PyInt_A...Mark Dickinson-4/+4
2010-04-03Silence a compiler warning.Raymond Hettinger-1/+1
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