Re: [sage-support] PyMongo trouble encoding numbers

2010-11-29 Thread Robert Bradshaw
Note, however, that Mongo does not support arbitrary precision integers, so if you need more than 64 bits than you'll have to use a string. - Robert On Sat, Nov 27, 2010 at 6:02 PM, William Stein wrote: > Use int(..) instead of Integer.  Mongo only encodes standard python types. > > On Saturday,

Re: [sage-support] PyMongo trouble encoding numbers

2010-11-27 Thread William Stein
Use int(..) instead of Integer. Mongo only encodes standard python types. On Saturday, November 27, 2010, jonhanke wrote: > Hi, > > I'm trying to use PyMongo in Sage 4.6, and am having trouble encoding > numbers in dictionary documents, though strings seem to work well. > Any comments are apprec

[sage-support] PyMongo trouble encoding numbers

2010-11-27 Thread jonhanke
Hi, I'm trying to use PyMongo in Sage 4.6, and am having trouble encoding numbers in dictionary documents, though strings seem to work well. Any comments are appreciated! Thanks, -Jon =) = sage: C = pymongo.Connection("localhost:29000") sage: col