Re: [Python-Dev] 回复: Python-Dev Digest, Vol 112, Issue 8

2012-11-07 Thread Amaury Forgeot d'Arc
Hi, 2012/11/7 邓九祥 : > I hava some question about Object which "inital" need ,but return "object" > in mongo shell. So This is the python-dev mailing list, which deals with development of the Python language. You should ask your question on some MongoDB forum. > > BSONElement initial = p["initia

[Python-Dev] 回复: Python-Dev Digest, Vol 112, Issue 8

2012-11-06 Thread 邓九祥
I hava some question about Object which "inital" need ,but return "object" in mongo shell. So   BSONElement initial = p["initial"]; if ( initial.type() != Object ) { errmsg = "initial has to be an object"; return false; }  "initial.type() !=