Re: ANN: pyparsing 1.4.11 released

2008-02-11 Thread Paul McGuire
On Feb 11, 3:44 am, [EMAIL PROTECTED] wrote: > > Maybe you can use the "in" instead of "==", meaning that a certain > string conforms to a certain pattern, that defines an implicit class > of possibilities, so with the "in" you look if the string is present > in that class of acceptable patterns, i

Re: ANN: pyparsing 1.4.11 released

2008-02-11 Thread bearophileHUGS
Paul McGuire: > - Added '==' short-cut to see if a given string matches a > pyparsing expression. For instance, you can now write: > > integer = Word(nums) > if "123" == integer: ># do something > > print [ x for x in "123 234 asld".split() if x==integer ] > # prints ['12