Missing interfaces in Python...

redefined.horizons at gmail.com redefined.horizons at gmail.com
Mon Apr 17 17:28:47 EDT 2006


Thanks for the responses...Looks like I might have opened Pandora's box
here. Could I accomplish the above with an abstract class?

If the mechanic class had a "fixIt()" method defined, could I pass it
any object I wanted, and then just call the method that I expect to
find there, or do I need to strictly define the type, or class, of an
object that is passed to a method.

Scott Huey




More information about the Python-list mailing list