mx.BeeBase.BeeDict

Magnus Heino magnus.heino at pleon.sigma.se
Fri Apr 26 07:35:43 EDT 2002


Could anyone please show me an example usage of mx.BeeBase?

Thanks!


[magnus at daysleeper magnus]$ python2.2
Python 2.2.1 (#2, Apr 13 2002, 14:35:50)
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-109)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mx.BeeBase.BeeDict import BeeStringDict
>>> s=BeeStringDict('foo')
>>> s['foo']='bar'
>>> s['foo']
'bar'
>>> s.commit()
2000 2002-04-26 13:33:54.74 [p4474] Committing all changes for "foo"...
2000 2002-04-26 13:33:54.74 [p4474]  writing key "foo":
-------------------------------------------------------------------------------
'bar'
-------------------------------------------------------------------------------
not found; cc=-1
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/lib/python2.2/site-packages/mx/BeeBase/BeeDict.py", line 1067, 
in commit
    index[key] = address
TypeError: record address must be an integer
>>>




More information about the Python-list mailing list