classmethods, class variables and subclassing
Steve Holden
steve at holdenweb.com
Fri Oct 21 03:21:05 EDT 2005
Andrew Jaffe wrote:
>>Andrew Jaffe wrote:
[...]
>
> The problem is that I actually do want to call these methods on the
> class itself, before I've made any instances.
>
Except you could use staticmethods with an explicit class argument ...
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
More information about the Python-list
mailing list