On Sun, 25 Dec 2011 06:55:28 -0800, Eelco wrote:
> Anyway, braces are used at
> least an order of magnitude more than collection packing/ unpacking in
> typical code.
That's a wild and unjustified claim. Here's a quick and dirty test, using
the standard library as an example of typical idiomatic code:
[steve@orac ~]$ cd /usr/lib/python2.6
[steve@orac python2.6]$ grep "[*]args" *.py | wc -l
270
[steve@orac python2.6]$ grep "{" *.py | wc -l
550
Doesn't look like a factor of 10 difference to me.
And from one of my projects:
[steve@orac src]$ grep "[*]args" *.py | wc -l
267
[steve@orac src]$ grep "{" *.py | wc -l
8
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list