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
7b6a1e23
Commit
7b6a1e23
authored
Jul 27, 2013
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parser/asdl_c.py: use Py_CLEAR()
parent
a8905630
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
270 deletions
+135
-270
Parser/asdl_c.py
Parser/asdl_c.py
+1
-2
Python/Python-ast.c
Python/Python-ast.c
+134
-268
No files found.
Parser/asdl_c.py
View file @
7b6a1e23
...
...
@@ -526,8 +526,7 @@ class Obj2ModVisitor(PickleVisitor):
(
field
.
type
,
field
.
name
),
depth
+
1
)
self
.
emit
(
"if (res != 0) goto failed;"
,
depth
+
1
)
self
.
emit
(
"Py_XDECREF(tmp);"
,
depth
+
1
)
self
.
emit
(
"tmp = NULL;"
,
depth
+
1
)
self
.
emit
(
"Py_CLEAR(tmp);"
,
depth
+
1
)
self
.
emit
(
"} else {"
,
depth
)
if
not
field
.
opt
:
message
=
"required field
\
\
\
"
%s
\
\
\
"
missing from %s"
%
(
field
.
name
,
name
)
...
...
Python/Python-ast.c
View file @
7b6a1e23
This diff is collapsed.
Click to expand it.
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