回复: Columnize in module "cmd"

Peter Otten __peter__ at web.de
Tue Dec 20 04:23:05 EST 2011


Tom Zhou wrote:

> Thanks for your reply! But i think using "for at for@for" to find out the
> appropriate column size is also another waste, on the other hand, the
> length of the list's single string is similar with each other usually, so
> the maximum maybe is the mode of the list.

There are usually only a few commands. Do you see an annoying delay before 
the commands are printed? If not, why bother to replace something that works 
and produces a reasonable output with something that produces slightly worse 
output in exchange for being easier to implement and perhaps a tad faster?




More information about the Python-list mailing list