Is this object counter code pythonic

Diez B. Roggisch deets at nospam.web.de
Mon Apr 10 08:22:36 EDT 2006


jnair at ensim.com wrote:

> Fredrik is then this a valid "property"  use  case and pythonic  to
> get/set a common varibale  across objects

No. you do that only if you have some kind of behavior attached - e.g. if
there are database queries to be made for returning a property or something
like that.

Diez



More information about the Python-list mailing list