Stefano Mazzocchi wrote:

> > http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPag
> >e )
>
> Uh, cool, sounds like the new Zope3 will be much more similar to Cocoon2
> architecturally, at least it will be component-based and
> interface-driven.
>
> But given that Python doesn't have interfaces, how do you plan to have
> polymorphism? thru reflection?
>

Any method call in python is done thru reflection.
Calling a method in python means looking in the attribute hashmap 
of the object for a function object of that name.  You can modify the values
of the hashmap and even add or delete methods at runtime.

Python interfaces, are defined thru documentation only,  not  a static type 
system. That's very handy for a language, which's greatest strength is rapid 
prototying.

Of course you loose compile time type checking, but that's true for
Avalon components too.


--
Martin Holz  <[EMAIL PROTECTED]>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to