[New-bugs-announce] [issue3482] re.split, re.sub and re.subn should support flags

Benoit Thiell report at bugs.python.org
Fri Aug 1 09:20:22 CEST 2008


New submission from Benoit Thiell <badzil at gmail.com>:

Given that the search operations support flags, it seems natural for a
developer that the other functions in the module support flags as well.
So when running "re.split(pattern, string, re.I)", the split() command
seems to not work and don't return a message error (I understand that
're.I' is understood as 'maxsplit=0'.)

This is confusing and I think that it should be changed so that all
functions in the module are consistent.

----------
messages: 70543
nosy: benoit
severity: normal
status: open
title: re.split, re.sub and re.subn should support flags

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3482>
_______________________________________


More information about the New-bugs-announce mailing list