[Python-Dev] defaultdict and on_missing()

Guido van Rossum guido at python.org
Thu Mar 2 16:59:23 CET 2006


On 3/2/06, Barry Warsaw <barry at python.org> wrote:
> On Thu, 2006-03-02 at 07:26 -0800, Aahz wrote:
> > OTOH, my personal style is to always use re.compile() because I can
> > never remember the order of arguments for re.match()/re.search().
>
> Agreed.

I don't have that problem, because the order is the same either way:

 re.compile(pattern).match(line)
 re.match(pattern, line)

:-)

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list