Can't do a multiline assignment!

Michael Torrie torriem at gmail.com
Thu Apr 17 14:01:57 EDT 2008


s0suk3 at gmail.com wrote:
> You didn't really write that at the Python's interpreter, did you?
> It's wrong. The way that would really go at the interpreter is like

I did actually run it through the interpreter, but I didn't copy and
past it to the e-mail.  Thought that I saw this behavior, but clearly I
must not have.

> classvar1 and classvar2 might be class variables, but in they don't
> work as they would in C++ or Java (like the ones you declare with the
> 'static' modified).

Still, it's not pythonic to define instance variables in this way, as
far as I can tell.




More information about the Python-list mailing list