Monday, July 19, 2004

XPath exprs as keys into Python dictionaries

Via Daily Python comes a link to Kimbro Staken's XPath based Python Dictionaries. Nice. The ability to simply intervene in dictionary lookups to do clever things is one of the most useful features of Python.
It really, really helps to avoid the sort of lexical scatology that comes from languages that rely on library functions for everything.

No comments: