Top-rated recipes tagged "length"http://code.activestate.com/recipes/tags/length/top/2014-01-24T15:27:25-08:00ActiveState Code RecipesString length (Batch)
2013-10-10T16:27:48-07:00greg zakharovhttp://code.activestate.com/recipes/users/4184115/http://code.activestate.com/recipes/578664-string-length/
<p style="color: grey">
Batch
recipe 578664
by <a href="/recipes/users/4184115/">greg zakharov</a>
(<a href="/recipes/tags/length/">length</a>, <a href="/recipes/tags/string/">string</a>).
Revision 2.
</p>
<p>A way for checking string length.</p>
Fixed Lengh List (Python)
2014-01-24T15:27:25-08:00Hirohttp://code.activestate.com/recipes/users/4184239/http://code.activestate.com/recipes/578813-fixed-lengh-list/
<p style="color: grey">
Python
recipe 578813
by <a href="/recipes/users/4184239/">Hiro</a>
(<a href="/recipes/tags/length/">length</a>, <a href="/recipes/tags/list/">list</a>).
Revision 2.
</p>
<p>In some applications, it's advantageous to be able to define a fixed length list.</p>
<p>The class provides all features as python internal type: list</p>
<p>The main focus of <strong>fixed length</strong> list is only keep certain number of items. "overflow" items will be discarded.</p>