difference between class methods and instance methods
Diez B. Roggisch
deetsNOSPAM at web.de
Thu Feb 17 11:37:50 EST 2005
> Ohhhhhhhh. Unlike C++, where methods are not first class objects
> and you only have *one* that gets shared by all instances.
Exactly - so unlike in c++, where you have to do ugly hacks if e.g. a C-lib
takes a callback and you want to pass an instance method, you can do that
in python. It's really great.
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list