4gb8
See also PyProtocols(http://peak.telecommunity.com/PyProtocols.html), a object adaptation framework that fufills a similar role to that of interfaces in statically typed languages.
See also PEP 245 (http://www.python.org/dev/peps/pep-0245/), which proposes an interface syntax and for Python, and PEP 246 (http://www.python.org/dev/peps/pep-0246/), which proposes semantics for an object adaptation system similar to PyProtocols. Note that neither of these PEPs have been accepted yet.
Additonally, Guido has written the following blog entires on this and related subjects: Python 3000 - Adaptation or Generic Functions? (http://www.artima.com/weblogs/viewpost.jsp?thread=155123) Interfaces or Abstract Base Classes? (http://www.artima.com/weblogs/viewpost.jsp?thread=92662) Adding Optional Static Typing to Python (http://www.artima.com/weblogs/viewpost.jsp?thread=85551) Adding Optional Static Typing to Python -- Part II (http://www.artima.com/weblogs/viewpost.jsp?thread=86641) Optional Static Typing -- Stop the Flames! (http://www.artima.com/weblogs/viewpost.jsp?thread=87182) Python Optional Typechecking Redux (http://www.artima.com/weblogs/viewpost.jsp?thread=89161)
last updated 2 years ago by cybercobra #
