code for Computer Language Shootout

Raymond Hettinger python at rcn.com
Wed Mar 16 05:47:51 EST 2005


Consider keeping the alias for append because it occurs in the
innermost loop.   For maximum readability, write:  addline = seq.append

Move the ''.join() to the show() function.  That eliminates a little
redundancy.

The test dataset doesn't use the semi-colon comment field.  So,
consider reversing ';>' to '>;'.


Raymond Hettinger




More information about the Python-list mailing list