Issue 1167709: ast for decorators (original) (raw)

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:10 admin set github: 41736
2005-03-21 16:40:48 jpe create