On Thu, Jan 29, 2009 at 10:25 PM, alex23 <wuwe...@gmail.com> wrote: > On Jan 30, 4:15 pm, Chris Rebert <c...@rebertia.com> wrote: >> - Python does not support interfaces in the Java sense (although there >> are a few third-party libraries that add such support); neither does >> Smalltalk. Instead, both Smalltalk and Python use duck-typing to >> similar effect. Seehttp://en.wikipedia.org/wiki/Duck_typing > > I haven't yet had reason to use them, but do Abstract Base Classes > (introduced in 2.6/3.0) go some way to provide more defined interface > support for Python? My assumption was that was what they'd generally > be used for...
Ah, excellent point. I neglected to take ABCs into account. Smalltalk did have those as well. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com -- http://mail.python.org/mailman/listinfo/python-list