On Dec 25, 5:15 pm, Steven D'Aprano <steve +comp.lang.pyt...@pearwood.info> wrote: > 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.
Now try it without changing the subject from round braces to everything but round braces. -- http://mail.python.org/mailman/listinfo/python-list