alternatives to making blocks like { } or other ??
Russell Blau
russblau at hotmail.com
Tue May 18 17:18:29 EDT 2004
"Timo Virkkala" <a at a.invalid> wrote in message
news:Z1vqc.592$Xe5.151 at read3.inet.fi...
> 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.
Or you could try this, which works almost exactly as well:
def sth(x):
#
return x
#
<g,d&r>
--
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.
More information about the Python-list
mailing list