Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b6b17f4e
Commit
b6b17f4e
authored
Oct 27, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1552024: add decorator support to unparse.py demo script.
parent
e34f4c14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Demo/parser/unparse.py
Demo/parser/unparse.py
+3
-0
Misc/NEWS
Misc/NEWS
+5
-2
No files found.
Demo/parser/unparse.py
View file @
b6b17f4e
...
...
@@ -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
(
")"
)
...
...
Misc/NEWS
View file @
b6b17f4e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment