File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
10
10
Core and Builtins
11
11
-----------------
12
12
13
+ - bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX.
14
+ Patch by Matthieu Dartiailh.
15
+
13
16
- bpo-29602: Fix incorrect handling of signed zeros in complex constructor for
14
17
complex subclasses and for inputs having a __complex__ method. Patch
15
18
by Serhiy Storchaka.
Original file line number Diff line number Diff line change @@ -1045,7 +1045,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg)
1045
1045
case CALL_FUNCTION_KW :
1046
1046
return - oparg - 1 ;
1047
1047
case CALL_FUNCTION_EX :
1048
- return - (( oparg & 0x01 ) != 0 ) - ((oparg & 0x02 ) != 0 );
1048
+ return -1 - ((oparg & 0x01 ) != 0 );
1049
1049
case MAKE_FUNCTION :
1050
1050
return -1 - ((oparg & 0x01 ) != 0 ) - ((oparg & 0x02 ) != 0 ) -
1051
1051
((oparg & 0x04 ) != 0 ) - ((oparg & 0x08 ) != 0 );
You can’t perform that action at this time.
0 commit comments