[Python-ideas] crazy ideas
Ian D. Bollinger
ian.bollinger at gmail.com
Tue May 22 21:53:37 CEST 2007
Josiah Carlson wrote:
> In terms of having a syntax for deques, I honestly don't see the problem
> with deque([a,b,c]). It has all of 6 more characters to type than your
> proposed d{a,b,c} syntax, without cluttering up the language with yet
> another bit of syntax that can be replaced with a 2 line function...
>
> def d(*args):
> return deque(args)
>
But what about all the memory overhead of constructing the list argument?!
(I turn off my car radio to save gas.)
- Ian D. Bollinger
More information about the Python-ideas
mailing list