[Twisted-Python] An unexpected interaction
Jp Calderone
exarkun at meson.dyndns.org
Fri Nov 8 17:08:52 MST 2002
I've just discovered some unfortunate behavior when dirdbm and rebuild are
combined (as I have recently combined them in Pynfo). It is easily
duplicated:
from twisted.persisted import dirdbm
from twisted.python import rebuild
s = dirdbm.Shelf('dirdbm.rebuild.test')
s['key'] = 'value'
rebuild.rebuild(dirdbm)
print s['key']
Investigating with pdb, I discovered:
> /home/exarkun/projects/python/Twisted/twisted/persisted/dirdbm.py(90)_readFile()
-> f = _open(path, "rb")
(Pdb) next
OSError: (17, 'File exists', '/home/exarkun/test/dirdbm.rebuild.test/a2V5_')
I don't really know where to go from here. Does anyone have any ideas?
Jp
--
<Greatnuts> someone gave me bad advice this morning
<Greatnuts> told me to use twm
<Greatnuts> had to reformat
<Greatnuts> just to get it off
--
7:00pm up 7 days, 5:52, 8 users, load average: 0.11, 0.15, 0.10
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20021108/f728f532/attachment.sig>
More information about the Twisted-Python
mailing list