Re: en la misma linea

2006-01-26 Thread Heiko Wundram
Sebastian Bassi wrote:
> Por ejemplo:
> if name != 'comic': return
> Hay un return despues de los dos puntos, no se que significa.

I can't write spanish, but nevertheless maybe an english answer is of help.
Yes, it's allowed to write that, and it is the same as:

if name != 'comic':
return

You are only allowed to write one statement behind a colon, though (except
with a little more hackery using semicolons, but forget that).

You should read up on the Python grammar...

--- Heiko.
-- 
http://mail.python.org/mailman/listinfo/python-list


en la misma linea

2006-01-26 Thread Sebastian Bassi
Hola,

Aca con una pregunta basica:
A veces veo que hay programas que tienen varias instrucciones en la
misma linea, cuando lo que aprendi de Python era que se usaba el
espaciado para mantener la estructura (indent).
Por ejemplo:
if name != 'comic': return
Hay un return despues de los dos puntos, no se que significa.


--
Bioinformatics news: http://www.bioinformatica.info
Lriser: http://www.linspire.com/lraiser_success.php?serial=318
-- 
http://mail.python.org/mailman/listinfo/python-list