gdbm troubles.

2007-10-11 Thread Shriphani
dictionary = gdbm.open('dictionary','c') dictionary['Ellipsize'] = 'Openbox' dictionary.get('Ellipsize') the last line generates an attribute error. Can someone tell me what I am doing wrong? Regards, Shriphani Palakodety -- http://mail.python.org/mailman/listinfo/python-list

Re: gdbm troubles.

2007-10-11 Thread Marc 'BlackJack' Rintsch
On Thu, 11 Oct 2007 11:49:05 +, Shriphani wrote: dictionary = gdbm.open('dictionary','c') dictionary['Ellipsize'] = 'Openbox' dictionary.get('Ellipsize') the last line generates an attribute error. Can someone tell me what I am doing wrong? You are trying to use a method that does not

Re: gdbm troubles.

2007-10-11 Thread Laszlo Nagy
Shriphani wrote: dictionary = gdbm.open('dictionary','c') dictionary['Ellipsize'] = 'Openbox' dictionary.get('Ellipsize') Try this: print dictionary['Ellipsize'] del dictionary['Ellipsize'] gdbm objects are similar to builtin dictionaries. By the way, they are not iterable, but they