summaryrefslogtreecommitdiff
path: root/Objects/intobject.c
AgeCommit message (Expand)AuthorLines
2006-09-05i_divmod(): As discussed on Python-Dev, changed the overflowTim Peters-2/+8
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
2004-08-25Stop producing or using OverflowWarning. PEP 237 thought this wouldTim Peters-36/+4
2004-07-19Check the type of values returned by __int__, __float__, __long__,Neil Schemenauer-6/+0
2004-06-26SF bug #980419: int left-shift causes memory leakRaymond Hettinger-4/+26
2004-06-05Reword messageAndrew M. Kuchling-1/+1
2004-06-05Fix exception wordingAndrew M. Kuchling-1/+1
2004-02-08SF patch #875689: >100k alloc wasted on startupRaymond Hettinger-1/+1
2003-11-29- Removed FutureWarnings related to hex/oct literals and conversionsGuido van Rossum-30/+12
2003-08-11Add a couple of decrefs to error paths.Michael W. Hudson-2/+4
2003-06-28SF patch 703666: Several objects don't decref tmp on failure in subtype_newRaymond Hettinger-1/+3
2003-04-17SF # 595026: support for masks in getargs.c.Thomas Heller-0/+91
2003-02-20Strange control flow in PyInt_AsLong. When nb_int is called insideThomas Heller-3/+3
2003-02-12Issue a warning when int('0...', 0) returns an int with the signGuido van Rossum-2/+12
2003-02-10Fix SF bug #683467, 'int' ability to generate longs not inheritedNeal Norwitz-2/+16
2003-01-29Implement appropriate __getnewargs__ for all immutable subclassable builtinGuido van Rossum-1/+12
2003-01-19SF # 669553, fix memory (ref) leaksNeal Norwitz-1/+8
2002-12-31Since the *_Init() are private, prefix with _, suggested by SkipNeal Norwitz-1/+1
2002-12-30SF #561244, Micro optimizationsNeal Norwitz-10/+23
2002-12-30Consolidate the int and long sequence repeat code. Before the change,Neil Schemenauer-46/+0
2002-11-19Change int() so that passing a string, unicode, float or long argumentWalter Dörwald-4/+16
2002-11-06Make int("...") return a long if an int would overflow.Walter Dörwald-11/+13
2002-09-11Insert an overflow check when the sequence repetition count is outsideGuido van Rossum-3/+30
2002-08-19Call me anal, but there was a particular phrase that was speading toGuido van Rossum-1/+1
2002-08-14More changes of DeprecationWarning to FutureWarning.Guido van Rossum-4/+4
2002-08-13Add an improvement wrinkle to Neil Schemenauer's change to int_mulGuido van Rossum-2/+4
2002-08-11int_lshift(): Simplified/sped overflow-checking.Tim Peters-4/+2
2002-08-11Use a better check for overflow from a<<b.Guido van Rossum-2/+4
2002-08-11Implement stage B0 of PEP 237: add warnings for operations thatGuido van Rossum-3/+25
2002-08-09Only call sq_repeat if the object does not have a nb_multiply slot. OneNeil Schemenauer-6/+8
2002-07-17staticforward bites the dust.Jeremy Hylton-1/+1
2002-06-13Patch #568124: Add doc string macros.Martin v. Löwis-2/+2
2002-04-28Just added comments, and cleared some XXX questions, related to intTim Peters-3/+12
2002-04-26Make sure that tp_free frees the int the same way as tp_dealloc would.Guido van Rossum-0/+8
2002-04-03Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum-12/+0
2002-02-01Bugfix candidate.Guido van Rossum-1/+1
2001-12-04SF bug #488480: integer multiply to return -max_int-1.Tim Peters-121/+57
2001-12-01SF bug #487743: test_builtin fails on 64 bit platform.Tim Peters-1/+1