[Python-Dev] Re: Missing arguments in RE functions

Guido van Rossum gvanrossum at gmail.com
Sat Sep 11 02:46:20 CEST 2004


> +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.


More information about the Python-Dev mailing list