Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert all remaining *simple* cases of regex usage to re usage. | Guido van Rossum | 1997-10-22 | 1 | -3/+6 |
| | |||||
* | Add optional 4th argument to count(), matching find() etc. | Guido van Rossum | 1997-10-20 | 1 | -7/+14 |
| | | | | | | Also change all occurrences of "x == None" to "x is None" (not that it matters much, these functions are all reimplemented in strop -- but count() is not). | ||||
* | Changed my mind on replace(). | Guido van Rossum | 1997-04-02 | 1 | -12/+2 |
| | | | | | | It's now replace(str, old, new, maxsplit=0). Note new ordering of parameters (string first); this is more consistent with translate(). | ||||
* | Added new functions replace() and replace1(). | Guido van Rossum | 1997-03-25 | 1 | -0/+15 |
| | |||||
* | Add optional 4th argument to [r]find and [r]index (end of slice). | Guido van Rossum | 1997-03-14 | 1 | -10/+26 |
| | |||||
* | Use correct separator for capwords(s, sep). | Guido van Rossum | 1996-08-26 | 1 | -1/+1 |
| | |||||
* | Add optional separator character to capwords(), for completeness. | Guido van Rossum | 1996-08-20 | 1 | -2/+2 |
| | |||||
* | Add optional third parameter to split() and splitfields(), giving the | Guido van Rossum | 1996-08-08 | 1 | -4/+22 |
| | | | | | maximum number of delimiters to parse; e.g. splitfields("a,b,c,d", ",", 2) -> ["a", "b", "c,d"]. | ||||
* | Added 3rd optional argument to translate(), a string of characters to delete. | Guido van Rossum | 1996-07-23 | 1 | -9/+23 |
| | | | | Added maketrans(), a utility to create a translation table. | ||||
* | Added capitalize() and capwords(). | Guido van Rossum | 1996-06-11 | 1 | -0/+10 |
| | |||||
* | add translate() -- which was in strop per release 1.3 | Guido van Rossum | 1996-05-28 | 1 | -0/+8 |
| | |||||
* | default tabsize to 8 | Guido van Rossum | 1995-08-10 | 1 | -1/+1 |
| | |||||
* | make split and splitfields, join and joinfields synonyms | Guido van Rossum | 1995-06-22 | 1 | -6/+8 |
| | |||||
* | add dummy base to atoi/atol; careful about negative start indices in find/count | Guido van Rossum | 1995-03-14 | 1 | -5/+11 |
| | |||||
* | * Lib/string.py: find/rfind is now the main implementation and | Guido van Rossum | 1994-08-17 | 1 | -63/+41 |
| | | | | | index/rindex is a wrapper that raises index_error (which is now always ValueError) | ||||
* | Merge alpha100 branch back to main trunk | Guido van Rossum | 1994-08-01 | 1 | -24/+51 |
| | |||||
* | * string.py: added rindex(), rfind(); changed index() to interpret | Guido van Rossum | 1993-11-08 | 1 | -0/+27 |
| | | | | | | | | | | | negative start indices starting from the right. * ftplib.py: debug() -> set_debuglevel(); change demo to use __init__(). * os.py: added execl, execlp, and execvp. * lambda.py: removed (now that we have built-in map, reduce, bagof, lambda) * test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce * commands.py: use os, not posix * test_grammar.py: make it easy to disable non-portable int overflow tests * dis.py: don't abuse range() | ||||
* | * profile.py, pdb.py: added help() function | Guido van Rossum | 1993-10-22 | 1 | -1/+33 |
| | | | | | | * builtin.py: b/w compat for builtin -> __builtin__ name change * string.py: added atof() and atol() and corresponding exceptions * test_types.py: added test for list sort with user comparison function | ||||
* | * pdb.py: set 'privileged' property when evaluating expressions | Guido van Rossum | 1993-07-29 | 1 | -1/+4 |
| | | | | | * string.py: change whitespace to include \r, \v and \f. When importing strop succeeds, re-evaluate meaning of letters. | ||||
* | * ftplib.py: added abort() command (sends oob data). | Guido van Rossum | 1993-05-24 | 1 | -2/+9 |
| | | | | | | * Several modules: change "class C(): ..." to "class C: ...". * flp.py: support for frozen forms. * Added string.find() which is like index but returns -1 if not found | ||||
* | * Fix bug in tzparse.py for DST timezone | Guido van Rossum | 1993-03-29 | 1 | -1/+3 |
| | | | | | | | * Added whatis command to pdb.py * new module GET.py (GL definitions from <gl/get.h>) * rect.py: is_empty takes a rect as argument, not two points. * Added tests for builtin round() [XXX not yet complete!] | ||||
* | * mainloop.py: added facility for calling select(). Also added | Guido van Rossum | 1992-11-26 | 1 | -4/+1 |
| | | | | | | | | embryonic facility for pseudo-modal dialogs. * stdwinevents.py: added modifier masks for key/mouse events * renamed exceptions in nntplib.py * Changed string.join() to call string.joinfields() to profit of strop.joinfields() | ||||
* | * change default line numbers for 'list' in pdb.py | Guido van Rossum | 1992-11-05 | 1 | -3/+11 |
| | | | | | | | | | * changed eval() into getattr() in cmd.py * added dirname(), basename() and (dummy) normath() to macpath.py * renamed nntp.py to nntplib.py * Made string.index() compatible with strop.index() * Make string.atoi('') raise string.atoi_error rather than ValueError * Added dirname() and normpath() to posixpath. | ||||
* | Misc changes and new modules. whrandom is "objectified". SOCKET.py | Guido van Rossum | 1992-10-18 | 1 | -0/+12 |
| | | | | is moved to the sgi subdirectory. | ||||
* | New module regsub contains sub(), gsub() and split() as in nawk. | Guido van Rossum | 1992-09-20 | 1 | -3/+2 |
| | | | | | string.splitfields(s, '') now returns [s] as split() in nawk. Added _exit to exported functions of os. | ||||
* | splitfields(s, '') is illegal | Guido van Rossum | 1992-08-19 | 1 | -1/+5 |
| | |||||
* | Removed *.libs (now in ./sgi); | Guido van Rossum | 1992-08-06 | 1 | -2/+6 |
| | | | | | added gettext() method to TextEdit.py; fixed string.atoi() to ignore leading zeros. | ||||
* | Add function to expand tabs. | Guido van Rossum | 1992-03-27 | 1 | -0/+13 |
| | |||||
* | New implementation method for case conversion. | Guido van Rossum | 1992-01-14 | 1 | -10/+8 |
| | |||||
* | New == syntax | Guido van Rossum | 1992-01-01 | 1 | -4/+4 |
| | |||||
* | A plus is also a sign! | Guido van Rossum | 1991-08-16 | 1 | -2/+2 |
| | |||||
* | Added join() and joinfields() functions. | Guido van Rossum | 1991-04-07 | 1 | -9/+27 |
| | | | | | Fixed center(). Rewrote ljust() and rjust(). | ||||
* | Fix bugf in index -- last char would not be checked. | Guido van Rossum | 1990-12-26 | 1 | -1/+1 |
| | |||||
* | Initial revision | Guido van Rossum | 1990-10-13 | 1 | -0/+129 |