[Tutor] associating two objects without ORM and processing a text file

eryksun eryksun at gmail.com
Tue Feb 12 10:02:52 CET 2013


On Mon, Feb 11, 2013 at 8:56 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> (One of the unfortunate features of Python's implementation of
> class methods is that you can call them from an instance which
> doesn't really make sense! IMHO)

Smalltalk derives a metaclass for the class methods, in parallel with
the class. That's an option in Python, if you prefer it. It can hinder
multiple inheritance, however. Using a classmethod object is more
flexible.


More information about the Tutor mailing list