Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove prototypes for PyOS_strto[u]l -- Chris Herborth. | Guido van Rossum | 1998-12-10 | 1 | -3/+0 |
| | |||||
* | Add DL_EXPORT() to all modules that could possibly be used | Guido van Rossum | 1998-12-04 | 1 | -1/+1 |
| | | | | on BeOS or Windows. | ||||
* | Add a missing DECREF in an error exit. Submitted by Jonathan Giddy. | Guido van Rossum | 1998-10-19 | 1 | -0/+1 |
| | |||||
* | Use the t# format where appropriate. Greg Stein. | Guido van Rossum | 1998-10-08 | 1 | -13/+13 |
| | |||||
* | Make gcc -Wall happy. | Guido van Rossum | 1998-10-07 | 1 | -1/+1 |
| | |||||
* | Andrew Dalke's implementation of string.count(). | Guido van Rossum | 1998-10-06 | 1 | -0/+47 |
| | |||||
* | Better error messages when raising ValueError for int literals. (The | Guido van Rossum | 1998-08-04 | 1 | -8/+3 |
| | | | | | previous version of this code would not show the offending input, even though there was code that attempted this.) | ||||
* | Make sure that at least one digit has been consumed in atoi(). | Guido van Rossum | 1998-07-25 | 1 | -0/+4 |
| | |||||
* | Make sure that no use of a function pointer gotten from a | Guido van Rossum | 1998-05-22 | 1 | -3/+5 |
| | | | | | tp_as_sequence or tp_as_mapping structure is made without checking it for NULL first. | ||||
* | strop_replace(): balk if the pattern string is empty. | Guido van Rossum | 1998-05-14 | 1 | -0/+4 |
| | |||||
* | Check for boundary errors in [r]find -- find("x", "", 2) should return -1. | Guido van Rossum | 1998-03-24 | 1 | -2/+2 |
| | |||||
* | Forgot to return NULL in joinfields() when a type error was detected | Guido van Rossum | 1998-02-06 | 1 | -1/+3 |
| | | | | in one of the sequence items. | ||||
* | Oops, big glitch. Charles had put a 1 in the column for argument list | Guido van Rossum | 1997-12-30 | 1 | -8/+8 |
| | | | | | | | | type for all functions. However many function call PyArg_Parse() and need a 0. This is so that when they didn't change anything, the can do Py_INCREF(args); return args. Reverted this back. For atof(), there's no reason not to use PyArg_ParseTuple(), so I changed the code (atoi and atol already used that). | ||||
* | Oops, the last checkin left a blank line in a string literal. | Guido van Rossum | 1997-12-30 | 1 | -1/+1 |
| | |||||
* | Minor editing corrections. | Guido van Rossum | 1997-12-29 | 1 | -5/+6 |
| | |||||
* | Added doc string, provided by Charles Waldman (with some reformatting | Guido van Rossum | 1997-12-29 | 1 | -29/+162 |
| | | | | and a little editing my me). | ||||
* | split_whitespace(): Make sure delimiter is stripped from the beginning | Barry Warsaw | 1997-12-02 | 1 | -1/+4 |
| | | | | | of the remainder item (last item in list) when maxsplit is < the number of occurrences. | ||||
* | mymemreplace(), strop_replace(): Add support for optional 4th argument | Barry Warsaw | 1997-11-29 | 1 | -4/+12 |
| | | | | | | | | maxsplit which is implemented in string.py but wasn't here. The reference manual doesn't define what happens when maxsplit is negative or larger than the number of occurrences, but in either case, I implemented this as all get replaced. Default value is zero which replaces all occurrences. | ||||
* | Keep gcc -Wall happy. | Guido van Rossum | 1997-04-29 | 1 | -1/+1 |
| | |||||
* | Added replace() implementation by Perry Stoll (debugged and reformatted by me). | Guido van Rossum | 1997-04-02 | 1 | -1/+167 |
| | |||||
* | Add optional 4th argument to [r]find and [r]index (end of slice). | Guido van Rossum | 1997-03-14 | 1 | -9/+27 |
| | |||||
* | Changes for Lee Busby's SIGFPE patch set. | Guido van Rossum | 1997-02-14 | 1 | -0/+2 |
| | | | | | Two new modules fpectl and fpetest. Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros. | ||||
* | New strop_joinfields implementation, highly optimized for Lists. All | Barry Warsaw | 1997-01-06 | 1 | -60/+82 |
| | | | | | | other sequences use the Sequence protocol from the abstract API. The algorithm has changed so that only one pass through the sequences are made. | ||||
* | Rewrote translate() as follows: | Guido van Rossum | 1997-01-06 | 1 | -28/+52 |
| | | | | | | | | | | | | - 'delete' is a C++ keyword; use 'del_table' instead - apply Py_CHARMASK() to del_table[i] before using it as an index *** this fixes a bug that was just reported on the list *** - if the translation didn't make any changes, INCREF and return the original string - when del_table is empty or omitted, don't copy the translation table to a table of ints (should be a bit faster) Rewrote maketrans() to avoid copying the table (2-3% faster). | ||||
* | strop_upper(), strop_lower(): shared code version caused to much of a | Barry Warsaw | 1997-01-03 | 1 | -27/+65 |
| | | | | | | | performance hit. Urg. Reverted. strop_joinfields(): re-instate optimizations for lists and tuples, but support arbitrary other kinds of sequences as well. | ||||
* | Several changes: | Barry Warsaw | 1997-01-03 | 1 | -142/+106 |
| | | | | | | | | | | | | | | | | | | | | | | | - split_whitespace(): slightly better memory ref handling when errors occur. - strop_joinfields(): First argument can now be any sequence-protocol conformant object. - strop_find(), strop_rfind(): Use PyArg_ParseTuple for optional arguments - strop_lower(), strop_upper(): Factor logic into a common function do_casechange(). - strop_atoi(), strop_atol(): Use PyArg_ParseTuple. - strop_maketrans(): arguments used to be optional, although the documentation doesn't reflect this. Make the source conform to the docs. Arguments are required, but two empty strings will return the identity translation table. - General pass fixing up formatting, and checking for return values. | ||||
* | Greatly renamed. | Barry Warsaw | 1996-12-09 | 1 | -178/+181 |
| | |||||
* | Keep gcc -Wall happy. | Guido van Rossum | 1996-12-05 | 1 | -3/+3 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | Replace all uses of strncmp (in split, find, rfind) with memcmp, so | Guido van Rossum | 1996-10-04 | 1 | -3/+3 |
| | | | | | embedded \0 in the delimiter is handled properly. Thanks to Sjoerd for suggesting this. | ||||
* | Add text of argument to errors for atoi(), atol(), atof(). | Guido van Rossum | 1996-09-11 | 1 | -5/+25 |
| | |||||
* | Raise ValueError on empty string passed into atoi(), atol(), atof(). | Guido van Rossum | 1996-08-21 | 1 | -0/+12 |
| | |||||
* | Remove some unused variables. | Guido van Rossum | 1996-08-19 | 1 | -9/+0 |
| | |||||
* | Added lstrip() and rstrip(). | Guido van Rossum | 1996-08-08 | 1 | -17/+93 |
| | | | | | | Extended split() (and hence splitfields(), which is the same function) to support an optional third parameter giving the maximum number of delimiters to parse. | ||||
* | Added 3rd optional argument to translate(), a string of characters to delete. | Guido van Rossum | 1996-07-23 | 1 | -11/+60 |
| | | | | Added maketrans(), a utility to create a translation table. | ||||
* | Test for zero-length argument in capitalize(). | Guido van Rossum | 1996-06-17 | 1 | -1/+1 |
| | |||||
* | added capitalize() | Guido van Rossum | 1996-06-12 | 1 | -0/+45 |
| | |||||
* | added strop.translate(s, table) | Guido van Rossum | 1995-09-13 | 1 | -0/+30 |
| | |||||
* | unified join(fields), split(fields) | Guido van Rossum | 1995-05-03 | 1 | -12/+20 |
| | |||||
* | fix stupid bug in strip and split | Guido van Rossum | 1995-02-14 | 1 | -2/+2 |
| | |||||
* | use Py_CHARMASK | Guido van Rossum | 1995-02-10 | 1 | -14/+10 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -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 remporary | Guido van Rossum | 1994-09-14 | 1 | -8/+4 |
| | | | | renaming hacks | ||||
* | * Modules/stropmodule.c: implement find/rfind instead of | Guido van Rossum | 1994-08-17 | 1 | -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 to | Guido van Rossum | 1994-08-05 | 1 | -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 trunk | Guido van Rossum | 1994-08-01 | 1 | -7/+108 |
| | |||||
* | Fix memory leaks in join & joinfields | Guido van Rossum | 1993-11-05 | 1 | -11/+25 |
| | |||||
* | Added rindex(). index() and rindex() interpret negative start index | Guido van Rossum | 1993-10-26 | 1 | -5/+41 |
| | | | | as normal indexing does. | ||||
* | Several optimizations and speed improvements. | Sjoerd Mullender | 1993-10-22 | 1 | -18/+25 |
| | | | | cstubs: Use Matrix type instead of float[4][4]. | ||||
* | Bug fix: check whether call succeeded *after* the call. | Sjoerd Mullender | 1993-09-14 | 1 | -1/+1 |
| |