summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
Commit message (Collapse)AuthorAgeFilesLines
* don't complain about too many args if arg is a dictGuido van Rossum1995-02-271-1/+1
|
* use Py_CHARMASK; and don't check for neg. float to the float power hereGuido van Rossum1995-02-101-5/+5
|
* 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/+1
| | | | can now be NULL.
* * Include/classobject.h, Objects/classobject.c, Python/ceval.c:Guido van Rossum1994-09-281-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 Rossum1994-08-301-18/+98
|
* Fix the fix :-(Guido van Rossum1993-11-111-1/+3
|
* Three micro fixes to formatstringGuido van Rossum1993-11-111-5/+4
|
* Fixed bugs in resizetuple and extended the interface.Sjoerd Mullender1993-11-011-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 inGuido van Rossum1993-10-261-14/+27
| | | | some cases.
* Several optimizations and speed improvements.Sjoerd Mullender1993-10-221-20/+116
| | | | cstubs: Use Matrix type instead of float[4][4].
* * Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender1993-10-111-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 Rossum1993-06-171-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 ofGuido van Rossum1993-05-121-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 Rossum1993-03-291-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 Rossum1993-03-161-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 Rossum1992-09-031-3/+0
|
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* lint fixGuido van Rossum1992-03-271-1/+8
|
* printobject now returns an error codeGuido van Rossum1991-06-071-3/+5
| | | | Remove superfluous err_nomem() call
* Fix comments in string_as_sequenceGuido van Rossum1991-06-041-7/+7
|
* Optimized single-character strings gotten from s[i].Guido van Rossum1991-04-041-13/+23
|
* Optimized stringitem.Guido van Rossum1991-03-061-1/+13
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* Fix stringcompare when strings contain null bytes.Guido van Rossum1991-02-131-2/+6
|
* "Compiling" versionGuido van Rossum1990-12-201-8/+1
|
* Fix wrong #ifdef.Guido van Rossum1990-11-181-1/+1
|
* Fixed resizestring() to work if reference tracing is turned on.Guido van Rossum1990-11-181-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 Rossum1990-10-211-50/+41
|
* Initial revisionGuido van Rossum1990-10-141-0/+328