On 21 Nov 2005, at 16:06, Tarek Ziadé wrote:
At some point before too long we'll be requiring python 2.4.2 for CPS.

What's the motivations behind the Python language add-ons ?

I think the first motivation is to make the code more *concise*.

+ For decorators, the first use case was the ability to provide a concise way to tell that a function is a classmethod or a staticmethod.
(ie: == add meta info or code on a function)
Many use cases exists now as well (memoizing, type checking, etc..) and some of them can fit for Zope use cases as well.

+ For genexps, they are a concise way of writing iterators, as they use list comprehension syntax. (Besides that point, there's a module that's very handy to write iterators: itertools it's also very very fast)

+ reversed() also provide a simple way to do a backward loop

And it's also a bit faster. But yes, decorators are the most interesting feature, with generator expressions.


As well, does Zope-2.8.x runs against 2.4.2 and has it been announced
security compliant on Zope-2.8.x ?

Yes, Jim did the necessary changes and the result is in Zope 2.8.4.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to