Popular recipes tagged "development" but not "bash"http://code.activestate.com/recipes/tags/development-bash/2011-05-18T21:18:54-07:00ActiveState Code RecipesDictSet - A specialized Python container datatype for managing collections of sets. (Python) 2011-05-18T21:18:54-07:00Roger Lewhttp://code.activestate.com/recipes/users/4178017/http://code.activestate.com/recipes/577702-dictset-a-specialized-python-container-datatype-fo/ <p style="color: grey"> Python recipe 577702 by <a href="/recipes/users/4178017/">Roger Lew</a> (<a href="/recipes/tags/analysis/">analysis</a>, <a href="/recipes/tags/development/">development</a>, <a href="/recipes/tags/dictionary/">dictionary</a>, <a href="/recipes/tags/information/">information</a>, <a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/sets/">sets</a>). </p> <p>The basic Python container types (dict, list, set, and tuple) are extremely versatile and powerful. The collections module first implemented in Python 2.4 has shown that sub-classing these containers can yield elegant solutions to the right problem. In a similar vein this project is a dict subclass for elegantly handling collections of sets. In many aspects a DictSet is similiar to a defaultdict of sets except it generalizes many of the set operations to the dict.</p> <p>Put simply, DictSet is a dict of sets that behaves like a set.</p> <p>DictSet requires 0 non-standard dependencies and should work with Python 2.5 and up.</p> linecount.py (Python) 2011-01-17T22:37:32-08:00Rémi Thebaulthttp://code.activestate.com/recipes/users/4176596/http://code.activestate.com/recipes/577546-linecountpy/ <p style="color: grey"> Python recipe 577546 by <a href="/recipes/users/4176596/">Rémi Thebault</a> (<a href="/recipes/tags/code/">code</a>, <a href="/recipes/tags/development/">development</a>, <a href="/recipes/tags/utility/">utility</a>). Revision 2. </p> <p><strong>A code line counter</strong></p>