Does Python support interfaces?

rgparker at west.net.bbs rgparker at west.net.bbs
Mon Jul 17 21:10:01 EDT 2000


I'm quite new to Python. For those who are familiar with Java interfaces:
Does Python have a similar facility?

Can one declare interfaces, then declare that a class implements some
interface, instantiate an object of that class type, and then cast it to
an interface that it is declared to support and then pass it around as a
reference to that interface type and make calls to methods of that
interface type?



More information about the Python-list mailing list