Does Python have Class methods
aahz at panix.com
Tue May 8 17:43:17 CEST 2001
In article <3af80f95.73151117 at News.CIS.DFN.DE>, <costas at meezon.com> wrote:
>Does Python support the concept of class methods (as opposed to
>instance methods)? If not is there a suggested way of doing this?
The standard answer is to put the class (e.g. "foo") into its own module
(e.g. "foo.py") and use module-level functions.
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het Pythonista http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"Don't be so humble -- you are not that great." --Golda Meir
More information about the Python-list