Title: obsolete paragraph in re doc for re.sub
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: MLModel, georg.brandl
Priority: normal Keywords:

Created on 2009-08-10 20:10 by MLModel, last changed 2009-08-13 07:49 by georg.brandl. This issue is now closed.

Messages (2)
msg91461 - (view) Author: Mitchell Model (MLModel) Date: 2009-08-10 20:10
The documentation of re.sub states:

"The pattern may be a string or an RE object; if you need to specify
regular expression flags, you must use a RE object, or use embedded
modifiers in a pattern; for example, sub("(?i)b+", "x", "bbbb BBBB")
returns 'x x'."

but there is now a flags argument so that paragraph should be deleted.
msg91514 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-08-13 07:48
Thanks, fixed in r74365.
Date User Action Args
2009-08-13 07:49:00georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg91514
2009-08-10 20:10:36MLModelcreate