mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Patch #1552024: add decorator support to unparse.py demo script.
This commit is contained in:
parent
112d1a64ac
commit
2756278304
2 changed files with 8 additions and 2 deletions
|
|
@ -223,6 +223,9 @@ class Unparser:
|
|||
|
||||
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(")")
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ Library
|
|||
- fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments
|
||||
were transposed.
|
||||
|
||||
|
||||
Extension Modules
|
||||
-----------------
|
||||
|
||||
|
|
@ -225,8 +226,10 @@ Documentation
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue