This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: obsolete paragraph in re doc for re.sub
Type: Stage:
Components: Documentation Versions: Python 3.1, Python 3.2
process
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 2022-04-11 14:56 by admin. 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.
History
Date User Action Args
2022-04-11 14:56:51adminsetgithub: 50928
2009-08-13 07:49:00georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg91514
2009-08-10 20:10:36MLModelcreate