Columnize in module "cmd"

Tom Zhou pytom at yahoo.cn
Mon Dec 19 21:53:13 EST 2011


Hi~ alls
recently, i focus on the module "cmd", and find some confused things-- the function named "columnize". Why we need a multiloop as
"for nrows ..
        for col ..
                   for row.."
?? i think we can make a easier method, for example, first, find out the maxlen str in list, and use its length as the standard size to format the list.
Ok, maybe i ignore something, so please give me some hints.


---
thanks
tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111220/c88c42be/attachment-0001.html>


More information about the Python-list mailing list