An interval mapping class
Download 'intervalmap' from this recipe page.
>>> i = intervalmap() >>> i[0:5] = '0-5' >>> i[8:12] = '8-12' >>> print i[2] 0-5 >>> print i[10] 8-12 >>>
12364 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
>>> i = intervalmap() >>> i[0:5] = '0-5' >>> i[8:12] = '8-12' >>> print i[2] 0-5 >>> print i[10] 8-12 >>>