summaryrefslogtreecommitdiffstats
path: root/Lib/regsub.py
Commit message (Collapse)AuthorAgeFilesLines
* The third and final doc-string sweep by Ka-Ping Yee.Guido van Rossum2000-02-041-6/+10
| | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* Store the current regex syntax along with the regular expressionBarry Warsaw1997-02-181-10/+15
| | | | | | | string as the key to the cache. This means that changing the syntax will return the correct compiled pattern. clear_cache(): New function.
* Use splitx() in capwords() (bugfix after interface change for split()).Guido van Rossum1996-08-091-2/+2
| | | | | Give capwords a default pattern argument which will recognize words as sequeces of [a-zA-Z0-9_].
* Changed split() to be compatible with changes to string.split(): theGuido van Rossum1996-08-081-4/+24
| | | | | | optional third argument gives a maximum number of delimiters to parse. The new function splitx() is like split() but returns a list containing the words as well as the delimiters.
* Add third arg to split(). Add capwords() -- which uses that.Guido van Rossum1996-06-111-1/+15
|
* avoid eval() like the plagueGuido van Rossum1996-05-281-1/+2
|
* New module regsub contains sub(), gsub() and split() as in nawk.Guido van Rossum1992-09-201-0/+147
string.splitfields(s, '') now returns [s] as split() in nawk. Added _exit to exported functions of os.