Closed Kriechi closed 7 years ago
Since this seems to be a general issue with BSON, I would suggest to rephrase the README. Right now the README shows an example, and right below it, it says "has been tested with BSON". So this suggests that it should work - which it doesn't.
BSON seems to only work with dictionaries (that's why I only do some of the tests with BSON). So to modify your example:
from persistent_queue import PersistentQueue
import bson
queue = PersistentQueue('test.queue', loads=bson.loads, dumps=bson.dumps)
queue.put({"foobar": 1})
Maybe that is too confusing and should be removed from the README?
Yes, the README should reflect this limitation of BSON - it is too confusing/unknown.
I would be nice if we could run all tests with bson - I guess we only have to change the items we put/get.
BSON seems to fail at some point. Try to run this code:
It fails with the following error: