diff options
author | Barry Warsaw <barry@python.org> | 1997-08-25 22:13:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-08-25 22:13:04 (GMT) |
commit | e42b18f9d1fca06df34d9fcbd54a2a6045329197 (patch) | |
tree | 83a1d23ce04aadad0aae0aa35a59a62de9b15b0e /Lib/test | |
parent | 1fb071cc648aa5e72f7c9aa6a230cb826bb8eed3 (diff) | |
download | cpython-e42b18f9d1fca06df34d9fcbd54a2a6045329197.zip cpython-e42b18f9d1fca06df34d9fcbd54a2a6045329197.tar.gz cpython-e42b18f9d1fca06df34d9fcbd54a2a6045329197.tar.bz2 |
eval_code2(): collapsed the implementations of UNPACK_TUPLE and
UNPACK_LIST byte codes and added a third code path that allows
generalized sequence unpacking. Now both syntaxes:
a, b, c = seq
[a, b, c] = seq
can be used to unpack any sequence with the exact right number of
items.
unpack_sequence(): out-lined implementation of generalized sequence
unpacking. tuple and list unpacking are still inlined.
Diffstat (limited to 'Lib/test')
0 files changed, 0 insertions, 0 deletions