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
95f53c13
Commit
95f53c13
authored
Jul 18, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16191: Fix up references to renamed variables
parent
371731eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Python/ceval.c
Python/ceval.c
+6
-6
No files found.
Python/ceval.c
View file @
95f53c13
...
...
@@ -1563,7 +1563,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
if
(
PyUnicode_CheckExact
(
left
)
&&
PyUnicode_CheckExact
(
right
))
{
sum
=
unicode_concatenate
(
left
,
right
,
f
,
next_instr
);
/* unicode_concatenate consumed the ref to
v
*/
/* unicode_concatenate consumed the ref to
left
*/
}
else
{
sum
=
PyNumber_Add
(
left
,
right
);
...
...
@@ -1762,7 +1762,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
PyObject
*
sum
;
if
(
PyUnicode_CheckExact
(
left
)
&&
PyUnicode_CheckExact
(
right
))
{
sum
=
unicode_concatenate
(
left
,
right
,
f
,
next_instr
);
/* unicode_concatenate consumed the ref to
v
*/
/* unicode_concatenate consumed the ref to
left
*/
}
else
{
sum
=
PyNumber_InPlaceAdd
(
left
,
right
);
...
...
@@ -1853,7 +1853,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
PyObject
*
v
=
THIRD
();
int
err
;
STACKADJ
(
-
3
);
/*
v[w] = u
*/
/*
container[sub] = v
*/
err
=
PyObject_SetItem
(
container
,
sub
,
v
);
Py_DECREF
(
v
);
Py_DECREF
(
container
);
...
...
@@ -1868,7 +1868,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
PyObject
*
container
=
SECOND
();
int
err
;
STACKADJ
(
-
2
);
/* del
v[w
] */
/* del
container[sub
] */
err
=
PyObject_DelItem
(
container
,
sub
);
Py_DECREF
(
container
);
Py_DECREF
(
sub
);
...
...
@@ -2107,7 +2107,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
SET_TOP
(
val
);
DISPATCH
();
}
/*
x
remains on stack, retval is value to be yielded */
/*
receiver
remains on stack, retval is value to be yielded */
f
->
f_stacktop
=
stack_pointer
;
why
=
WHY_YIELD
;
/* and repeat... */
...
...
@@ -2728,7 +2728,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
STACKADJ
(
-
2
);
map
=
stack_pointer
[
-
oparg
];
/* dict */
assert
(
PyDict_CheckExact
(
map
));
err
=
PyDict_SetItem
(
map
,
key
,
value
);
/*
v[w] = u
*/
err
=
PyDict_SetItem
(
map
,
key
,
value
);
/*
map[key] = value
*/
Py_DECREF
(
value
);
Py_DECREF
(
key
);
if
(
err
!=
0
)
...
...
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