Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change the Fini function to only remove otherwise unreferenced strings | Guido van Rossum | 1997-08-05 | 1 | -6/+16 |
| | | | | | | | | | | from the interned table. There are references in hard-to-find static variables all over the interpreter, and it's not worth trying to get rid of all those; but "uninterning" isn't fair either and may cause subtle failures later -- so we have to keep them in the interned table. Also get rid of no-longer-needed insert of None in interned dict. | ||||
* | Added internal routine PyString_Fini() which deletes all interned | Guido van Rossum | 1997-08-02 | 1 | -0/+18 |
| | | | | strings. For use in Py_Finalize() only. | ||||
* | Use #include "mymath.h" instead of declaring fabs() explicitly. | Guido van Rossum | 1997-06-03 | 1 | -2/+1 |
| | | | | This should solve a weird problem on the Mac for Jack. | ||||
* | Checkin of Jack's buffer mods. | Guido van Rossum | 1997-05-05 | 1 | -1/+41 |
| | | | | Not really checked, but didn't fail any tests either... | ||||
* | Quickly renamed the last directory. | Guido van Rossum | 1997-05-02 | 1 | -190/+203 |
| | |||||
* | Tweaks to keep the Microsoft compiler quiet. | Guido van Rossum | 1997-04-09 | 1 | -1/+1 |
| | |||||
* | Slight tweak: in string_hash(), if the hash hasn't been computed yet, | Guido van Rossum | 1997-02-14 | 1 | -0/+5 |
| | | | | | and if there's a pointer to an interned version of the string, use its hash and store its hash in this object, rather than recomputing it. | ||||
* | Fix bug reported by Per Lindqvist: "%#06x" % 1 stuck the 0 padding | Guido van Rossum | 1997-01-29 | 1 | -1/+13 |
| | | | | in front of the 0x, like such: "0000x1". | ||||
* | Don't use static buffers internally for formatstring(). | Guido van Rossum | 1997-01-21 | 1 | -25/+26 |
| | |||||
* | String interning. | Guido van Rossum | 1997-01-18 | 1 | -0/+75 |
| | |||||
* | Add const to error and newstring functions | Guido van Rossum | 1996-12-10 | 1 | -2/+2 |
| | |||||
* | Make gcc -Wall happy | Guido van Rossum | 1996-12-05 | 1 | -2/+2 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | Fixed compare function to do first char comparison in unsigned mode, | Guido van Rossum | 1996-10-23 | 1 | -1/+1 |
| | | | | for consistency with the way other characters are compared. | ||||
* | Multiply by 1000003 instead of 3 in string hach | Guido van Rossum | 1996-09-11 | 1 | -1/+1 |
| | |||||
* | new debugger symbol names | Guido van Rossum | 1996-05-23 | 1 | -1/+1 |
| | |||||
* | Plug memory leak in the previous fix :-( | Guido van Rossum | 1996-05-21 | 1 | -1/+0 |
| | |||||
* | Fix obscure bug in string%mapping where the mapping creates its items | Guido van Rossum | 1996-05-21 | 1 | -21/+12 |
| | | | | | on the fly -- there was an unsafe DECREF. Actually save some lines of code by using abstract.c:PyObject_GetItem(). | ||||
* | fix dusty debugging macros | Guido van Rossum | 1995-03-29 | 1 | -1/+1 |
| | |||||
* | a few peephole optimizations | Guido van Rossum | 1995-03-09 | 1 | -1/+1 |
| | |||||
* | don't complain about too many args if arg is a dict | Guido van Rossum | 1995-02-27 | 1 | -1/+1 |
| | |||||
* | use Py_CHARMASK; and don't check for neg. float to the float power here | Guido van Rossum | 1995-02-10 | 1 | -5/+5 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit. | ||||
* | Lots of minor changes. Note for mappingobject.c: the hash table pointer | Guido van Rossum | 1995-01-02 | 1 | -1/+1 |
| | | | | can now be NULL. | ||||
* | * Include/classobject.h, Objects/classobject.c, Python/ceval.c: | Guido van Rossum | 1994-09-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | entirely redone operator overloading. The rules for class instances are now much more relaxed than for other built-in types (whose coerce must still return two objects of the same type) * Objects/floatobject.c: add overflow check when converting float to int and implement truncation towards zero using ceil/float * Objects/longobject.c: change ValueError to OverflowError when converting to int * Objects/rangeobject.c: modernized * Objects/stringobject.c: use HAVE_LIMITS instead of __STDC__ * Objects/xxobject.c: changed to use new style (not finished?) | ||||
* | fix nasty bug in resizing (formatstring) | Guido van Rossum | 1994-08-30 | 1 | -18/+98 |
| | |||||
* | Fix the fix :-( | Guido van Rossum | 1993-11-11 | 1 | -1/+3 |
| | |||||
* | Three micro fixes to formatstring | Guido van Rossum | 1993-11-11 | 1 | -5/+4 |
| | |||||
* | Fixed bugs in resizetuple and extended the interface. | Sjoerd Mullender | 1993-11-01 | 1 | -0/+10 |
| | | | | | Added ifdefs in stringobject.c for shared strings of length 1. Renamed free_list in tupleobject.c to free_tuples. | ||||
* | Add some necessary casts; use double quotes to represent strings in | Guido van Rossum | 1993-10-26 | 1 | -14/+27 |
| | | | | some cases. | ||||
* | Several optimizations and speed improvements. | Sjoerd Mullender | 1993-10-22 | 1 | -20/+116 |
| | | | | cstubs: Use Matrix type instead of float[4][4]. | ||||
* | * Extended X interface: pixmap objects, colormap objects visual objects, | Sjoerd Mullender | 1993-10-11 | 1 | -4/+4 |
| | | | | | | | | 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. | ||||
* | * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c. | Guido van Rossum | 1993-06-17 | 1 | -1/+3 |
| | | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close(). | ||||
* | * pythonrun.c: Print exception type+arg *after* stack trace instead of | Guido van Rossum | 1993-05-12 | 1 | -11/+10 |
| | | | | | | | before it. * ceval.c, object.c: moved testbool() to object.c (now extern visible) * stringobject.c: fix bugs in and rationalize string resize in formatstring() * tokenizer.[ch]: fix non-working code for lines longer than BUFSIZ | ||||
* | * Changed all copyright messages to include 1993. | Guido van Rossum | 1993-03-29 | 1 | -0/+16 |
| | | | | | | | | | | | | | | | | | * 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 Rossum | 1993-03-16 | 1 | -21/+362 |
| | | | | | | | | | | * 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. | ||||
* | Remove bogus type-and-refcnt setting from newsizedstringobject(). | Guido van Rossum | 1992-09-03 | 1 | -3/+0 |
| | |||||
* | Copyright for 1992 added | Guido van Rossum | 1992-04-05 | 1 | -1/+1 |
| | |||||
* | lint fix | Guido van Rossum | 1992-03-27 | 1 | -1/+8 |
| | |||||
* | printobject now returns an error code | Guido van Rossum | 1991-06-07 | 1 | -3/+5 |
| | | | | Remove superfluous err_nomem() call | ||||
* | Fix comments in string_as_sequence | Guido van Rossum | 1991-06-04 | 1 | -7/+7 |
| | |||||
* | Optimized single-character strings gotten from s[i]. | Guido van Rossum | 1991-04-04 | 1 | -13/+23 |
| | |||||
* | Optimized stringitem. | Guido van Rossum | 1991-03-06 | 1 | -1/+13 |
| | |||||
* | Added copyright notice. | Guido van Rossum | 1991-02-19 | 1 | -0/+24 |
| | |||||
* | Fix stringcompare when strings contain null bytes. | Guido van Rossum | 1991-02-13 | 1 | -2/+6 |
| | |||||
* | "Compiling" version | Guido van Rossum | 1990-12-20 | 1 | -8/+1 |
| | |||||
* | Fix wrong #ifdef. | Guido van Rossum | 1990-11-18 | 1 | -1/+1 |
| | |||||
* | Fixed resizestring() to work if reference tracing is turned on. | Guido van Rossum | 1990-11-18 | 1 | -6/+13 |
| | | | | | The realloc() call would move the list head without fixing the pointers to in the the chain of allocated objects... | ||||
* | New errors. | Guido van Rossum | 1990-10-21 | 1 | -50/+41 |
| | |||||
* | Initial revision | Guido van Rossum | 1990-10-14 | 1 | -0/+328 |