Re: what is wrong with that r"\"

2007-07-04 Thread Matthieu TC
May I suggest giving the possibility to use any delimiter for a raw string? just like in Vi or ruby. Vi: %s_a_b_g is valid and so is %s/a/b/g Ruby: %q{dj'\ks'a\'"} or %q-dj'\ks'a\'"- So as long as your regex does not use all the valid characters, readability is maintained. -matt -

Re: for ... else ?

2007-06-12 Thread Matthieu TC
> > > On 6/12/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > >> for x in iterable: > > >>do something with x > > >> else: > > >>do something when there are no more x > > > > >> You can think the above as: > > > > >> while there are still values in iterable: > > >>do some