Friday, February 02, 2007

Note to self

Found this snippet of Python code about a dictionary proxy metaclass. No time today, so I'll have to look at it later.

Sometimes when programming in Python I just want to type:
d = {}
d.some_key = 'some data'
instead of:
d['some_key'] = 'some data'
like you can in JavaScript.

No comments: