how to use class methods?

Christopher Paulicka cpaulicka at 8cs.com
Sat Sep 23 00:35:06 EDT 2000


"Mike 'Cat' Perkonigg" <blablu at gmx.net> wrote in message
news:8FB776878mikecat at 192.168.10.38...
> Hi!
>
> How can I create a class method?
>

Well, you can't in the way you are thinking.
Any method inside the class definition is assumed to be an instance method.

The way I've been doing this is by having one class per file, then having
"class" methods be methods within the file.

Christopher

P.S.  Others provided non-class method solutions to your problem.  Good
luck.




More information about the Python-list mailing list