Philipp H. Mohr wrote: > Hello, > > I would like to use abstract methods in python to force some of the > classes to implement common methods. > > I found this web page and wonder if it is a good way of implementing them: > > http://www.lychnis.net/blosxom/programming/python-abstract-methods-3.lychnis
It's okay. I prefer interfaces, though. http://peak.telecommunity.com/PyProtocols.html http://www.zope.org/Wikis/Interfaces/FrontPage > Also could some one please tell me what the type class is which > > class Metaclass (type): > > is inheriting from. It's the builtin type object. Metaclasses inherit from it. http://www.python.org/2.2/descrintro.html -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list