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
3a9ac827
Commit
3a9ac827
authored
Feb 21, 2017
by
Matthieu Dartiailh
Committed by
Serhiy Storchaka
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX (#202)
parent
fb8fe72f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Misc/NEWS
Misc/NEWS
+3
-0
Python/compile.c
Python/compile.c
+1
-1
No files found.
Misc/NEWS
View file @
3a9ac827
...
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
...
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
Core and Builtins
Core and Builtins
-----------------
-----------------
- bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX.
Patch by Matthieu Dartiailh.
- bpo-29602: Fix incorrect handling of signed zeros in complex constructor for
- bpo-29602: Fix incorrect handling of signed zeros in complex constructor for
complex subclasses and for inputs having a __complex__ method. Patch
complex subclasses and for inputs having a __complex__ method. Patch
by Serhiy Storchaka.
by Serhiy Storchaka.
...
...
Python/compile.c
View file @
3a9ac827
...
@@ -1045,7 +1045,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg)
...
@@ -1045,7 +1045,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg)
case
CALL_FUNCTION_KW
:
case
CALL_FUNCTION_KW
:
return
-
oparg
-
1
;
return
-
oparg
-
1
;
case
CALL_FUNCTION_EX
:
case
CALL_FUNCTION_EX
:
return
-
((
oparg
&
0x01
)
!=
0
)
-
((
oparg
&
0x02
)
!=
0
);
return
-
1
-
((
oparg
&
0x01
)
!=
0
);
case
MAKE_FUNCTION
:
case
MAKE_FUNCTION
:
return
-
1
-
((
oparg
&
0x01
)
!=
0
)
-
((
oparg
&
0x02
)
!=
0
)
-
return
-
1
-
((
oparg
&
0x01
)
!=
0
)
-
((
oparg
&
0x02
)
!=
0
)
-
((
oparg
&
0x04
)
!=
0
)
-
((
oparg
&
0x08
)
!=
0
);
((
oparg
&
0x04
)
!=
0
)
-
((
oparg
&
0x08
)
!=
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