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

[sage-support] mpmath's incomplete gamma function evaluates much faster for small arguments

2010-11-27 Thread KvS
Dear all, just a quick question/remark, today I was working (plotting etc.) with some quantities that involve (upper) incomplete gamma functions. Some operations took very long, as it turned out due to the incomplete gamma function evaluating very slowly for small arguments. Some testing showed th