why pure python don't support "extended slice direct assignment" for lists?
today we have to write like this,
>>> aList=[0,1,2,3,4,5,6,7,8,9]
>>> aList
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> aList[::2]= [None]*len(aList[::2]) #or do the math by hand, what's not
always possible
>>> aList
[None, 1, No
message --
> From: Steven D'Aprano
> To: python-list@python.org
> Date: 02 Jul 2010 23:59:52 GMT
> Subject: Re: Why defaultdict?
> On Fri, 02 Jul 2010 04:11:49 +, Steven D'Aprano wrote:
>
> > I would like to better understand some of the design choices