alternatives to making blocks like { } or other ??

Timo Virkkala a at a.invalid
Tue May 18 17:15:37 EDT 2004


CYBER wrote:
> Is there any other way under python to create blocks ??
> instead of
> def sth(x):
>     return x
> could i use something else like
> def sth(x):
> {
>     return x
> }

Not without changing the language a lot. But just try the normal way for a 
couple of days, you'll get used to it in no time.

--
Timo Virkkala



More information about the Python-list mailing list