Commit Graph

10 Commits

Author SHA1 Message Date
Tim Peters 0c9886d589 Whitespace normalization. 2001-01-15 01:18:21 +00:00
Guido van Rossum 7292e921fc Adding a warning about the regsub module. This also disables further
warnings in this same module, to prevent getting a warning about
importing regex (we *know* that it's obsolete :-).
2000-12-19 18:25:58 +00:00
Fred Drake 8152d32375 Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
2000-12-12 23:20:45 +00:00
Guido van Rossum e7b146fb3b The third and final doc-string sweep by Ka-Ping Yee.
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.
2000-02-04 15:28:42 +00:00
Barry Warsaw b67a25c079 Store the current regex syntax along with the regular expression
string as the key to the cache.  This means that changing the syntax
will return the correct compiled pattern.

clear_cache(): New function.
1997-02-18 18:52:55 +00:00
Guido van Rossum 7a7d5d8fcf Use splitx() in capwords() (bugfix after interface change for split()).
Give capwords a default pattern argument which will recognize words as
sequeces of [a-zA-Z0-9_].
1996-08-09 21:32:29 +00:00
Guido van Rossum a59d3e6d50 Changed split() to be compatible with changes to string.split(): the
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.
1996-08-08 18:39:18 +00:00
Guido van Rossum 4cc4ab1735 Add third arg to split(). Add capwords() -- which uses that. 1996-06-11 18:45:15 +00:00
Guido van Rossum 9e6aa9d55b avoid eval() like the plague 1996-05-28 23:01:28 +00:00
Guido van Rossum 7a461e5aaf New module regsub contains sub(), gsub() and split() as in nawk.
string.splitfields(s, '') now returns [s] as split() in nawk.
Added _exit to exported functions of os.
1992-09-20 21:41:09 +00:00