Michael Torrie schrieb: > [EMAIL PROTECTED] 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.
I've seen & used that for quite a while. It is more clear to provide defaults that way. Diez -- http://mail.python.org/mailman/listinfo/python-list