Caching Dictionaries in Python vs. Ruby
Code: , , ,
8 comments

A while ago I made a slightly-underinformed post (see the corrections in the comments) trying to draw a difference between Python and Ruby. I’ve finally got a decent example and can explain what I’m getting at.

Continue this post

Django Template Tag for Dictionary Access
Code: , , ,
6 comments

About a million times when writing Django pages I’ve been iterating through a list of objects and wanted to look up a value in a dictionary keyed by object.id. But you can’t, the built-in tags don’t allow it.

Continue this post