summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-11 22:15:52 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-11 22:15:52 (GMT)
commit0be5aab04d2f441323e8a7681f79137d26fd2e30 (patch)
tree67b542d99a3b0ddf62427b2b05a25dafa13437cc /Python/ceval.c
parenta8d7341f63fc73f46eb997c2b9481ce0d35069ae (diff)
downloadcpython-0be5aab04d2f441323e8a7681f79137d26fd2e30.zip
cpython-0be5aab04d2f441323e8a7681f79137d26fd2e30.tar.gz
cpython-0be5aab04d2f441323e8a7681f79137d26fd2e30.tar.bz2
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 ?
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 9bcb2ad..40b5738 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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) {