Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #17567

Re: 回复: Columnize in module "cmd"

From Peter Otten <__peter__@web.de>
Subject Re: 回复: Columnize in module "cmd"
Date 2011-12-20 10:23 +0100
Organization None
References <1324349593.51908.YahooMailNeo@web92411.mail.cnh.yahoo.com> <CALwzidnMH4a_x0a-LRHaHeBp=4kFQY-9-hpsDhO7U2SWnnOtnQ@mail.gmail.com> <1324360192.3956.YahooMailNeo@web92409.mail.cnh.yahoo.com>
Newsgroups comp.lang.python
Message-ID <mailman.3856.1324372974.27778.python-list@python.org> (permalink)

Show all headers | View raw


Tom Zhou wrote:

> Thanks for your reply! But i think using "for@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?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: 回复: Columnize in module "cmd" Peter Otten <__peter__@web.de> - 2011-12-20 10:23 +0100

csiph-web