That code is trying to find an optimal solution where the columns may be of different width.<div><br></div><div>Good luck!</div><div><br></div><div>--Guido<br><div><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 8:07 PM, Tom Zhou <span dir="ltr"><<a href="mailto:pytom@yahoo.cn">pytom@yahoo.cn</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">

<span><br></span></div><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><span style="font-size:12pt">Hi~ alls</span><br></div><div style="font-family:'times new roman','new york',times,serif">

<div style="font-family:'times new roman','new york',times,serif"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-size:12pt;font-family:'times new roman','new york',times,serif">

<div>recently, i focus on the module "cmd", and find some confused things-- the function named "columnize". Why we need a multiloop as</div><div>"for nrows ..</div><div> 
       for col ..</div><div>                   for row.."</div><div>?? 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.</div>

<div>Ok, maybe i ignore something, so please give me some hints.</div><div><br></div><div><br></div><div>---</div><div>thanks</div><span class="HOEnZb"><font color="#888888"><div>tom</div></font></span></div></div></div>
<br>
<br> </div> </div>  </div></div><br>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)<br>
</div></div>