[Python-Dev] Re: Missing arguments in RE functions (original) (raw)
Noam Raphael noamr at myrealbox.com
Sat Sep 11 23:19:50 CEST 2004
- Previous message: [Python-Dev] Re: Re: Missing arguments in RE functions
- Next message: [Python-Dev] Noam's open regex requests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:
- 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.
- Document the optional parameters which let you specify the start and end pos in the findall and finditer methods of a compiled RE object.
- 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
- Previous message: [Python-Dev] Re: Re: Missing arguments in RE functions
- Next message: [Python-Dev] Noam's open regex requests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]