a = b = 1 just syntactic sugar?

sismex01 at hebmex.com sismex01 at hebmex.com
Tue Jun 3 23:23:13 CEST 2003


> 
> Is there a way to write an expression which sets b and does return
> something?
>

I really don't know, but the real question is: why?
What are you trying to accomplish?

Know that "assignment-as-expression" is a recurrent theme which
regularly gets shot down, because the language does not support
it, nor will it in the forseeable future.

Programming "C/C++ in Python" is frustrating, what with lack of
pointers and other bug-engendering paraphernalia, maybe programming
Python in Python will be much more rewarding.

<wink>

-gus
Advertencia:La informacion contenida en este mensaje es confidencial y
restringida, por lo tanto esta destinada unicamente para el uso de la
persona arriba indicada, se le notifica que esta prohibida la difusion de
este mensaje. Si ha recibido este mensaje por error, o si hay problemas en
la transmision, favor de comunicarse con el remitente. Gracias.





More information about the Python-list mailing list