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
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
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