allowing braces around suites

Leif K-Brooks eurleif at ecritters.biz
Fri Aug 27 17:08:30 EDT 2004


Andrew Koenig wrote:
> The following code is legal today:
> 
>     def foo(x):
>         print x
>     x = 3
>     if x == 3:
>         {
>         foo(x) : 42
>         }

Gyaah, you almost gave me a heart attack there. Nicely done.



More information about the Python-list mailing list