> -----Original Message-----
> From: Wilbert Berendsen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 19, 2008 4:37 AM
> To: lilypond-devel@gnu.org
> Cc: Carl D. Sorensen
> Subject: Re: csorensen fork of lilypond
>
> Op woensdag 18 juni 2008, schreef Carl D. Sorensen:
>
>
> >  for i in fret-props:
> >      if re.search (i, str):
> >          stderr_write ('\n')
>
> When you only look for plain strings (as is the case), you
> could write:
>
> for i in fret_props:
>   if i in str:
>     stderr.write ... etc
>


Oh, I understand now.  No need to use regular expressions when
I'm just looking for a string.  I was just copying other rules,
and not thinking about what the rule code meant.

Thanks for the feedback!

Carl


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to