Simple questions on use of objects (probably faq)

Brian Elmegaard brian at rkspeed-rugby.dk
Thu Mar 9 07:26:38 EST 2006


Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes:

> What you probably think you want is something like this:

Thanks, that made it run.
Now I need to study what classmethods are.

> I say "think you want" because I don't know what problem you are trying to
> solve with this messy, self-referential, piece of code. If you could
> explain what your goal is, there is probably a better way of reaching it.

Probably, this was just an example posted to show me how to add all
the instances to the class.

-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk



More information about the Python-list mailing list