a = b = 1 just syntactic sugar?
sismex01 at hebmex.com
sismex01 at hebmex.com
Tue Jun 3 17:23:13 EDT 2003
More information about the Python-list mailing list
Tue Jun 3 17:23:13 EDT 2003
- Previous message (by thread): a = b = 1 just syntactic sugar?
- Next message (by thread): a = b = 1 just syntactic sugar?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > 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.
- Previous message (by thread): a = b = 1 just syntactic sugar?
- Next message (by thread): a = b = 1 just syntactic sugar?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list