[Python-Dev] list splicing
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Sep 19 07:25:29 CEST 2005
More information about the Python-Dev mailing list
Mon Sep 19 07:25:29 CEST 2005
- Previous message: [Python-Dev] list splicing
- Next message: [Python-Dev] possible memory leak on windows (valgrind report)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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' ]. You can write that as a = [1, 2] a[1:1] = a Greg
- Previous message: [Python-Dev] list splicing
- Next message: [Python-Dev] possible memory leak on windows (valgrind report)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list