On Wed, May 20, 2009 at 9:10 AM, walterbyrd <walterb...@iname.com> wrote: > On May 20, 9:59 am, Marco Mariani <ma...@sferacarta.com> wrote: > >> Do you know what a dictionary is? > > Yes, but I thought a dictionary used curly brackets. Is the object a > dictionary?
Indeed. Note how you're subclassing `UserDict` (its name is similar to `dict` for a reason). See the UserDict docs for more info: http://docs.python.org/library/userdict.html Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list