[Python-3000] Best Practices essays

Adam DePrince adam.deprince at gmail.com
Sat Mar 25 06:16:18 CET 2006


On Sat, 2006-03-25 at 16:21 +1200, Greg Ewing wrote:
> Adam DePrince wrote:
> 
> > I'm curious, however, what do you envision the semantics of [x times i]
> > being?
> 
>    [x for _i in xrange(i)]
> 
> Greg

So [[x times n] times m]  would be really the same as n*[m*[0,]]

So its different than list*int ... 

It looks pretty, but to grow the language and add a keyword for what
some might call syntactic saccharine.  I'd vote -1.  

Cheers - Adam DePrince



More information about the Python-3000 mailing list