re HOWTO

Jochen Küpper jochen at jochen-kuepper.de
Mon Apr 29 22:26:55 EDT 2002


On 29 Apr 2002 07:37:24 -0700 Terry Byrne wrote:

>> Btw: An index would serve the HOWTO well:)) It is pretty hard to find
>> information in there in a non-linear way (that is, without reading all
>> of it over and over).  It's a nice document, but it is a little
>> unorganized.

Terry> I'm nobody in the Python world, wish I could help you with the
Terry> documentation! I agree with you that it's a good reference, but I too
Terry> didn't find it helpful as a tutorial.

Well, I thought the re HOWTO is a nice tutorial, but needs an index to
be a truely useful reference, as the content is soemwhat scarmbled and
the toc doesn't get one (at least not me) to the information.

[...Python books...]

Well, I actually liked Lutz: /Programming Python/.  But then, I start
missing the stuff I am looking for too often now:)) It is a great
introduction, though!


I think I misunderstood your original posting:( I thought you were
using a "pass" option in the regexp compile or match/search calls, and
of course I never heard of it, as it apparently doesn't exit:O

Terry> pass lets me treat the long list of lines like a C switch or a
Terry> Pascal case:

Well, a switch-case construct is modeled by if...elif...else...endif
in python, AFAICT.

Terry> once a certain error code is found, pass skips to the next line
Terry> in the list without even testing for the other codes.

And here others have pointed out already that you wanna use continue.
See sections 4.4 and 4.5 of the Python turorial.

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: 44BCCD8E
        Sex, drugs and rock-n-roll



More information about the Python-list mailing list