summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Added _Fini() routines to free up some memoryGuido van Rossum1997-08-051-0/+17
|
* Quickly renamed the last directory.Guido van Rossum1997-05-021-156/+163
|
* Increased buffer sizes used by hex() and oct() -- on 64-bit or 128-bitGuido van Rossum1997-01-141-2/+2
| | | | machines, the string may get longer than 20 characters!
* Changed hex() and oct() again, to never emit a '-' sign.Guido van Rossum1997-01-121-7/+2
|
* Subtle change to hex/oct formatting so the largest negative numberGuido van Rossum1997-01-101-2/+2
| | | | does not receive a minus sign.
* Fix overflow test for multiply to catch some cases it missed.Guido van Rossum1997-01-061-2/+4
| | | | Added warning about dependency of float/complex hash on int hash.
* Fix core dump from pow(x,y,0).Guido van Rossum1996-12-061-7/+9
| | | | Make gcc -Wall happy.
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* fix memory leak and null pointer dereferenceGuido van Rossum1995-01-101-0/+2
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit.
* Lots of minor changes. Note for mappingobject.c: the hash table pointerGuido van Rossum1995-01-021-1/+0
| | | | can now be NULL.
* mods by Andrew Kuchling to implementGuido van Rossum1994-08-291-41/+240
| | | | | pow(x,y,z) == pow(x,y)%z, but without incurring overflow Correct problems found by THINK C 6.0
* Added getmaxint() so sys can initialize sys.maxint.Guido van Rossum1993-12-241-0/+6
| | | | Added Makefile.in.
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-231-0/+2
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.
* Changes to make range checks portable to 64-bit machines.Guido van Rossum1993-10-261-3/+21
|
* intobject.c: Save references to small integers, so that they can beSjoerd Mullender1993-10-151-0/+37
| | | | | | | | | | | | | | | | shared. The default is to save references to the integers in the range -1..99. The lower limit can be set by defining NSMALLNEGINTS (absolute value of smallest integer to be saved) and NSMALLPOSINTS (1 more than the largest integer to be saved). tupleobject.c: Save a reference to the empty tuple to be returned whenever a tuple of size 0 is requested. Tuples of size 1 upto, but not including, MAXSAVESIZE (default 20) are put in free lists when deallocated. When MAXSAVESIZE equals 1, only share references to the empty tuple, when MAXSAVESIZE equals 0, don't include the code at all and revert to the old behavior. object.c: Print some more statistics when COUNT_ALLOCS is defined.
* * Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender1993-10-111-1/+1
| | | | | | | | image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists.
* * Microscopic corrections to make things compile on the Cray APP.Guido van Rossum1993-04-071-2/+2
| | | | | * Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-12/+20
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-161-14/+4
| | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
* Made builtins int(), long(), float(), oct() and hex() more generic.Guido van Rossum1992-09-121-0/+59
|
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* lint fixGuido van Rossum1992-03-271-2/+3
|
* Make / and % do the same as divmod.Guido van Rossum1992-01-191-117/+67
|
* Different shift implementation.Guido van Rossum1992-01-141-2/+34
|
* Improved exceptions.Guido van Rossum1991-12-101-13/+15
|
* Added shift and mask ops.Guido van Rossum1991-10-241-1/+107
|
* printobject now returns an error codeGuido van Rossum1991-06-071-1/+2
|
* Added nonzero testGuido van Rossum1991-05-141-0/+8
|
* Added divmod and abs, fixed negative powersGuido van Rossum1991-05-051-18/+70
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* "Compiling" versionGuido van Rossum1990-12-201-41/+73
|
* Fix zero division checks: return if it occurs!Guido van Rossum1990-10-261-3/+3
|
* CHanged errors somewhat.Guido van Rossum1990-10-211-3/+3
|
* New error handling.Guido van Rossum1990-10-141-36/+37
|
* Initial revisionGuido van Rossum1990-10-141-0/+250