Issue 6679: obsolete paragraph in re doc for re.sub (original) (raw)
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.