lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: csorensen fork of lilypond


From: Carl D. Sorensen
Subject: RE: csorensen fork of lilypond
Date: Thu, 19 Jun 2008 09:06:19 -0600


> -----Original Message-----
> From: Wilbert Berendsen [mailto:address@hidden
> Sent: Thursday, June 19, 2008 4:37 AM
> To: address@hidden
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]