is python Object oriented??

Chris Rebert clp2 at rebertia.com
Fri Jan 30 01:34:52 EST 2009


On Thu, Jan 29, 2009 at 10:25 PM, alex23 <wuwei23 at gmail.com> wrote:
> On Jan 30, 4:15 pm, Chris Rebert <c... at 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



More information about the Python-list mailing list