On 10/9/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> hanumizzle wrote:
> (snip)
> > Regexes are usually passed as literals directly to re.compile().
>
> For which definition of "usually" ?

>From definition of personal experience: all of the code I've written
or seen that used small regexes in such a context as this wrote them
out literally. Putting such a short string, used only once, in
variable form seems a little verbose unless you have reuse in mind.

IOW, when doing simple arithmetic on paper in an informal context, you
"usually" don't assign the operands to variables before performing the
operations in question.

-- Theerasak
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to