cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Holz <>
Subject Re: Zope vs. Cocoon
Date Wed, 27 Feb 2002 22:59:14 GMT
Stefano Mazzocchi wrote:

> >
> >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 

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

Martin Holz  <>  phone: 0049-30-39977 218 

To unsubscribe, e-mail:
For additional commands, email:

View raw message