summaryrefslogtreecommitdiffstats
path: root/Modules/stropmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* fix stupid bug in strip and splitGuido van Rossum1995-02-141-2/+2
|
* use Py_CHARMASKGuido van Rossum1995-02-101-14/+10
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* * various modules: #include "Python.h" and remove most remporaryGuido van Rossum1994-09-141-8/+4
| | | | renaming hacks
* * Modules/stropmodule.c: implement find/rfind instead ofGuido van Rossum1994-08-171-8/+6
| | | | | index/rindex (raising and catching an exception is much more expensive than returning and testing -1)
* * Modules/{Setup.in,Makefile.pre.in}: renamed some modules toGuido van Rossum1994-08-051-1/+1
| | | | | | | | | | shorter names (dropped the "module" from the name): sunaudiodev, imgformat, audioop, imageop, imgfile * Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do the right thing (i.e. return 3 instead of 0) * Modules/socketmodule.c: disabled allowbroadcast() socket method
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-7/+108
|
* Fix memory leaks in join & joinfieldsGuido van Rossum1993-11-051-11/+25
|
* Added rindex(). index() and rindex() interpret negative start indexGuido van Rossum1993-10-261-5/+41
| | | | as normal indexing does.
* Several optimizations and speed improvements.Sjoerd Mullender1993-10-221-18/+25
| | | | cstubs: Use Matrix type instead of float[4][4].
* Bug fix: check whether call succeeded *after* the call.Sjoerd Mullender1993-09-141-1/+1
|
* * config.c: different default PYTHONPATH for MS-DOSGuido van Rossum1993-07-091-4/+34
| | | | | | | * timemodule.c: change #ifdef TURBO_C into #ifdef MSDOS * posixmodule.c: MSDOS changes by Marcel van der Peijl (Digicash) * stropmodule.c: use C isspace(c) to test for whitespace; add whitespace, lowercase and uppercase variables to the module.
* stropmodule.c: use C isspace(c) to test for whitespace; addGuido van Rossum1993-07-081-7/+19
| | | | whitespace variable to module dict.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-2/+2
| | | | | | | | | | | | | | | | | * 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
* * config.c: Added audioop to lists.Guido van Rossum1992-11-261-0/+65
| | | | | | | | | * Makefile: change default source directory * socketmodule.c: added getsockname and getpeername * bltinmodule.c: corrected typo in type() error message * Added new built-in functions str() and repr(): repr(x) == `x`; str(x) == x if x is a string, otherwise str(x) == repr(x). * Added joinfields to stropmodule.c (string.join calls joinfields now)
* Makefile uses $> more often; cgen supports filename argument; addedGuido van Rossum1992-09-111-0/+108
| | | | lower, upper and swapcase to strop; cosmetics.
* Re-implement some operations from string.py in C, for speed.Guido van Rossum1992-09-031-0/+201