[Python-Dev] list splicing
Josiah Carlson
jcarlson at uci.edu
Mon Sep 19 07:38:28 CEST 2005
More information about the Python-Dev mailing list
Mon Sep 19 07:38:28 CEST 2005
- Previous message: [Python-Dev] list splicing
- Next message: [Python-Dev] list splicing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Fredrik Lundh" <fredrik at pythonware.com> wrote: > > Karl Chen wrote: > > > Hi, has anybody considered adding something like this: > > a = [1, 2] > > [ 'x', *a, 'y'] > > > > as syntactic sugar for > > a = [1, 2] > > [ 'x' ] + a + [ 'y' ]. > > > > Notes: > > - This is a common operation > > is it? Not in the code that I read/use. While "not all 3 line functions should be a builtin", "not all <5 character typing savings should be made syntax". - Josiah
- Previous message: [Python-Dev] list splicing
- Next message: [Python-Dev] list splicing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list