Pythonification of the asterisk-based collection packing/unpacking syntax

Ethan Furman ethan at stoneleaf.us
Wed Dec 21 11:33:41 EST 2011


Neal Becker wrote:
> Clarification: where can packing/unpacking syntax be used?
> 
> It would be great if it were valid essentially anywhere (not limited to 
> parameter passing).
> 
> What about constructs like:
> 
> a, @tuple tail, b = sequence?

You mean like Python 3's:

a, *middle, b = sequence

?




More information about the Python-list mailing list