• Barry Warsaw's avatar
    eval_code2(): collapsed the implementations of UNPACK_TUPLE and · 51a86f0d
    Barry Warsaw authored
    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.
    51a86f0d
ceval.c 62.6 KB