Julien Anguenot wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

etc..

Tarek

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

        J.


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

Reply via email to