python list handling and Lisp list handling

namekuseijin namekuseijin at gmail.com
Sun Apr 26 08:46:16 CEST 2009


On Apr 25, 4:34 am, Michele Simionato <michele.simion... at gmail.com>
wrote:
> which has some feature you may like. For instance,
> there is a weak form of pattern matching built-in:
>
> >>> head, *tail = [1,2,3] # Python 3.0 only!
> >>> head
> 1
> >>> tail
>
> [2, 3]

Good seeing yet another long time Perl feature finally brought in. ;)



More information about the Python-list mailing list