summaryrefslogtreecommitdiff
path: root/Objects/intobject.c
AgeCommit message (Expand)AuthorLines
2006-10-04A review of overflow-detecting code in the 2.4 branch.Armin Rigo-9/+15
2006-10-04Fix integer negation and absolute value to not relyMartin v. Löwis-4/+3
2006-09-05Merge rev 51711 from the 2.5 branch.Tim Peters-2/+8
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
2001-11-28PyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion ofBarry Warsaw-5/+7
2001-09-19Add additional coercion support for "self subtypes" to int, long,Guido van Rossum-1/+12
2001-09-15A fix for SF bug #461546 (bug in long_mul).Guido van Rossum-4/+6
2001-09-11More bug 460020. When I is a subclass of int, disable the +I(whatever),Tim Peters-10/+10
2001-09-11Replace a few places where X->ob_type was compared to &PyXXX_Type withGuido van Rossum-4/+4
2001-09-05Make the error msgs in our pow() implementations consistent.Tim Peters-3/+3
2001-09-04Change long/long true division to return as many good bits as it can;Tim Peters-1/+8
2001-09-04Move int_true_divide next to the other division routines.Tim Peters-6/+6
2001-09-03New restriction on pow(x, y, z): If z is not None, x and y must be ofTim Peters-0/+5
2001-08-31Add warning mode for classic division, almost exactly as specified inGuido van Rossum-2/+23
2001-08-30Fix typo: double semicolons.Guido van Rossum-1/+1