A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-September/048802.html below:

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

[Python-Dev] Re: Missing arguments in RE functions [Python-Dev] Re: Missing arguments in RE functionsGuido 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4