Le jeudi 22 mars 2012 21:13:34, Claudiu Saftoiu a écrit :
> In [14]: root._p_jar[0x139c35]

Actually, you want to write:
ie, OIDs are 8-byte binary strings.

> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (85, 0))

Looks like internal ipython error. Personally, I stay away of it, despite its 
nice colors. It crashes and burns too easily.

> /home/tsa/env/lib/python2.6/site-packages/ZODB/fsIndex.pyc in get(self,
> key, default)
>     123
>     124     def get(self, key, default=None):
> --> 125         tree = self._data.get(key[:6], default)
>     126         if tree is default:
>     127             return default
> TypeError: 'int' object is unsubscriptable

This is the actual error, which will go away if you provide a string.

Vincent Pelletier
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org

Reply via email to