mirror of
https://github.com/python/cpython.git
synced 2025-09-10 10:47:34 +00:00
Merge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they
did the same anyway. I'm not sure what to do with Tools/compiler/compiler/* -- that isn't part of distutils, is it ? Should it try to be compatible with old bytecode version ?
This commit is contained in:
parent
a8d7341f63
commit
0be5aab04d
6 changed files with 15 additions and 29 deletions
|
@ -1165,8 +1165,7 @@ eval_code2(PyCodeObject *co, PyObject *globals, PyObject *locals,
|
|||
default: switch (opcode) {
|
||||
#endif
|
||||
|
||||
case UNPACK_TUPLE:
|
||||
case UNPACK_LIST:
|
||||
case UNPACK_SEQUENCE:
|
||||
v = POP();
|
||||
if (PyTuple_Check(v)) {
|
||||
if (PyTuple_Size(v) != oparg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue