Re: [Python-Dev] Backport PEP 3129: Class Decorators

2008-01-08 Thread Robin Stocker
Christian Heimes schrieb: PEP 3107 (function annotation), PEP 3104 (nonlocal) and PEP 3132 (extended iterable unpacking: a, *b = 1,2,3) are IMHO other useful feature for 2.6. nonlocal would require a __future__ import. I'm planning to work on PEP 3107 (function annotations) after I have

Re: [Python-Dev] Backport PEP 3129: Class Decorators

2008-01-08 Thread Christian Heimes
Robin Stocker wrote: I'm planning to work on PEP 3107 (function annotations) after I have finished backporting PEP 3102 (keyword-only arguments) (issue1745). Thanks! I've backported class decorators: http://bugs.python.org/issue1759 Could somebody with more knowledge about grammer and ASDL

Re: [Python-Dev] Backport PEP 3129: Class Decorators

2008-01-08 Thread Eli Courtwright
Since we're talking about class decorators, I have a question about function and instancemethod objects. The following code works class Root(object): def index(self): return Hello World! index.exposed = True but this code class Root(object): def index(self): return Hello

Re: [Python-Dev] Backport PEP 3129: Class Decorators

2008-01-08 Thread Eli Courtwright
Christian, Thanks for the example; I'm sorry that I didn't read the docs carefully enough to realize that I could extract the original function and set the attribute on that. - Eli On Jan 8, 2008 11:49 AM, Christian Heimes [EMAIL PROTECTED] wrote: The example should shed some light on the

[Python-Dev] Backport PEP 3129: Class Decorators

2008-01-07 Thread Raymond Hettinger
This seems like something that could reasonably be added to Py2.6. Raymond ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Backport PEP 3129: Class Decorators

2008-01-07 Thread Christian Heimes
Raymond Hettinger wrote: This seems like something that could reasonably be added to Py2.6. +1 from me PEP 3107 (function annotation), PEP 3104 (nonlocal) and PEP 3132 (extended iterable unpacking: a, *b = 1,2,3) are IMHO other useful feature for 2.6. nonlocal would require a __future__ import.