allowing braces around suites

Michael Sparks zathras at thwackety.com
Tue Aug 31 12:52:55 CEST 2004


On Tue, 31 Aug 2004, Kjetil Torgrim Homme wrote:

> [Michael Sparks]:
> >
> >   The solution isn't to change the language in my eyes, the solution
> >   is to produce better tools. After all, the following is legal
> >   syntax in python if you really want close markers:
> >
> >   end = None
> >   for ch in "hello":
> >      if ch == "l":
> >         print "Rhubarb"
> >      end
> >      print ch,
> >   end
>
> that's a really cool trick!

I'm glad you like it :)

I prefer your version however since it actually *does* something rather
than lulling people into a false sense of security... :) (Still not sure I
*like* either, but I prefer yours :)

>I'm not saying this is useful, but it was fun to write :-)

:)

Best Regards,


Michael.




More information about the Python-list mailing list