Message88292
Hello!
I recently thought about a nice feature (pure syntactic sugar):
>>> a = [2,3,4]
>>> b = [1,*a,5]
>>> print b
[1, 2, 3 ,4 ,5]
instead of:
>>> b = [1]+a+[5]
I think first one is somewhat more readable and similiar thing already
is possible with function calls. For example:
>>> c = func(*a) |
|
Date |
User |
Action |
Args |
2009-05-24 22:30:12 | marek_sp | set | recipients:
+ marek_sp |
2009-05-24 22:30:12 | marek_sp | set | messageid: <1243204212.24.0.875545210222.issue6100@psf.upfronthosting.co.za> |
2009-05-24 22:30:11 | marek_sp | link | issue6100 messages |
2009-05-24 22:30:10 | marek_sp | create | |
|