problem with split
Theerasak Photha
hanumizzle at gmail.com
Tue Oct 10 00:11:11 EDT 2006
On 10/9/06, Bruno Desthuilliers <onurb at xiludom.gro> 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
More information about the Python-list
mailing list