[Python-Dev] Re: Missing arguments in RE functions
Noam Raphael
noamr at myrealbox.com
Sat Sep 11 23:19:50 CEST 2004
Ok, so I understand that Guido doesn't want to extend the functions' API
to have the full functionality. Fine.
However, I've suggested three things that I think should be done in that
case, and nobody objected.
Here they are:
1. Add a prominent note in the module contents page or in the module's
main page, stating that some functionality can only be acheived by using
compiled REs.
2. Document the optional parameters which let you specify the start and
end pos in the findall and finditer methods of a compiled RE object.
3. Add the optional parameter "flags" to the findall and finditer
functions. Then, the four functions match, search, findall and finditer
would have the same interface: function(pattern, string[, flags]).
Does anyone have any objections?
Noam
More information about the Python-Dev
mailing list