vaibhav> Here's a piece of Python code and it's output. The output that vaibhav> Python shows is not as per my expectation. Hope someone can vaibhav> explain to me this behaviour: ...
Yes, your default arg is evaluated once, at method definition time and shared betwee all instances of MyClass. See the thread last week on the same thing for more detail. Skip -- http://mail.python.org/mailman/listinfo/python-list