nephish:
> one more question.
> the functions defined above the classes that the could be called from
> within the classes, they do not need a 'self' declaration because they
> are not part of a class, right?

Class methods generally require the self as first parameter, functions
don't need the self. So your original code was wrong (sorry, I haven't
seen that before).

You can also inject functions as methods inside a class, and in such
case your function usually needs a self parameter too.

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to