#350: intbitset - ignores ctrl-c
------------------------+---------------------------------------------------
Reporter: rchyla | Owner: skaplun
Type: defect | Status: new
Priority: major | Milestone:
Component: *general* | Version:
Resolution: | Keywords: intbitset
------------------------+---------------------------------------------------
Comment (by skaplun):
Actually the steps you are providing are indeed serving wrong data to
intbitset, as the strbits is just as string representation of the
intbitset.
To actually save and restore intbitset you can do:
$ x = ibs.fastdump()
$ ...
$ ibs = intbitset(x) ## or equivalently ibs.fastload(x)
However, supposing wrong/corrupted data are actually provided to
intbitset, at the Python level there is not much that we can do to improve
the situation (there is a global try..except but it is never reached). I
will investigate if the C code can be made more robust.
--
Ticket URL: <http://invenio-software.org/ticket/350#comment:1>
Invenio <http://invenio-software.org>