[Python-Dev] Re: Missing arguments in RE functions (original) (raw)
Guido van Rossum gvanrossum at gmail.com
Sat Sep 11 02:46:20 CEST 2004
- Previous message: [Python-Dev] Re: Missing arguments in RE functions
- Next message: [Python-Dev] Re: Missing arguments in RE functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
+1. Consistency makes the API conceptually simpler, even if the absolute number of parameters is larger.
And how is it more consistent that in one form you have to write
re.compile(r"[a-z]+", re.I).search(line)
while in the other form you have to write
re.search(r"[a-z]+", line, re.I)
???
This parameter ordering issue alone makes me cringe at adding the flags to the functions.
-- --Guido van Rossum (home page: http://www.python.org/~guido/) Ask me about gmail.
- Previous message: [Python-Dev] Re: Missing arguments in RE functions
- Next message: [Python-Dev] Re: Missing arguments in RE functions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]