home ¦ Archives ¦ Atom ¦ RSS

Prinos: Iterating Python DB Results

Link parkin': A nice little Python recipe, due to Christopher Prinos, for using Python iterators to fetch DB API results.

I picked this one up due to Simon Willison, although it seems to be kicking around del.icio.us as well.

P.S. Simon has a pretty neat trick with his blogmarks, click on one of the links and then revisit his page to see what I mean.

© Brian M. Dennis. Built using Pelican. Theme by Giulio Fidente on github.