new-style classes and len method

bruno at modulix onurb at xiludom.gro
Thu Apr 13 12:05:45 EDT 2006


Thomas Girod wrote:
> It's alright I found where my mistake came from. I was misunderstanding
> the meaning of "classmethod", thinking of it as an instance method.

Given that 'instance methods' being most of the time attributes of the
class object, such a confusion is not so surprising !-)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list