This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ast for decorators
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, jpe, nascheme
Priority: normal Keywords: patch

Created on 2005-03-21 16:40 by jpe, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
decorators.diff jpe, 2005-03-22 17:24
Messages (4)
msg48035 - (view) Author: John Ehresman (jpe) * Date: 2005-03-21 16:40
This patch adds the generation of AST nodes for
decorators.  There is no compiler support for
decorators yet.  Note I also added support for ignoring
NULL's passed to the *_free functions generated by
asdl_c.py so that error handling is somewhat simplified.
msg48036 - (view) Author: John Ehresman (jpe) * Date: 2005-03-21 21:11
Logged In: YES 
user_id=22785

This doesn't quite work.  I just realized when working on
the compiler portion that @foo is different than @foo().
msg48037 - (view) Author: John Ehresman (jpe) * Date: 2005-03-22 17:24
Logged In: YES 
user_id=22785

New patch that handles @dottedname correctly and implements
bytecode generation.  The test_decorators test passes.
msg48038 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2005-04-02 18:51
Logged In: YES 
user_id=35752

Thanks for the patch.  The only change I made was to change
// comments
to /* ... */ comments.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41736
2005-03-21 16:40:48jpecreate