[issue42473] re.sub ignores flag re.M

Matthew Barnett report at bugs.python.org
Thu Nov 26 11:01:39 EST 2020


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

Not a bug.

Argument 4 of re.sub is the count:

    sub(pattern, repl, string, count=0, flags=0)

not the flags.

----------
nosy: +mrabarnett
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42473>
_______________________________________


More information about the Python-bugs-list mailing list