[Python-checkins] r52488 - in python/trunk: Demo/parser/unparse.py Misc/NEWS
georg.brandl
python-checkins at python.org
Fri Oct 27 22:39:44 CEST 2006
Author: georg.brandl
Date: Fri Oct 27 22:39:43 2006
New Revision: 52488
Modified:
python/trunk/Demo/parser/unparse.py
python/trunk/Misc/NEWS
Log:
Patch #1552024: add decorator support to unparse.py demo script.
Modified: python/trunk/Demo/parser/unparse.py
==============================================================================
--- python/trunk/Demo/parser/unparse.py (original)
+++ python/trunk/Demo/parser/unparse.py Fri Oct 27 22:39:43 2006
@@ -223,6 +223,9 @@
def _FunctionDef(self, t):
self.write("\n")
+ for deco in t.decorators:
+ self.fill("@")
+ self.dispatch(deco)
self.fill("def "+t.name + "(")
self.dispatch(t.args)
self.write(")")
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri Oct 27 22:39:43 2006
@@ -156,6 +156,7 @@
- fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments
were transposed.
+
Extension Modules
-----------------
@@ -225,8 +226,10 @@
to a newly created list object and add notes that this isn't a good idea.
-Tools
------
+Tools/Demos
+-----------
+
+- Patch #1552024: add decorator support to unparse.py demo script.
- Make auto-generated python.vim file list built-ins and exceptions in
alphatbetical order. Makes output more deterministic and easier to tell if
More information about the Python-checkins
mailing list