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:
Thomas Wouters 2000-08-11 22:15:52 +00:00
parent a8d7341f63
commit 0be5aab04d
6 changed files with 15 additions and 29 deletions

View file

@ -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) {