There's a few places to stash apps, libraries, or small code snippets
so they can be search engined, if you provide some inline comments,
unit/functional tests, and examples of how to use/known limitations:
Vaults Parnassus, dmoz, ActiveState cookbook
http://aspn.activestate.com/ASPN/Cookbook/Pyth
Hi,
I often wish for a really high-level way to access db results, being
willing to forego some efficiency. I came up with a class you can use
like:
cur = db.cursor()
cur.execute('select abc, def from blah')
for row in dbcur_iter(cur):
print row['abc'], row['def']
Here's the class: