Commit Graph

21 Commits

Author SHA1 Message Date
Bernie Hackett
d70578f650 PYTHON-881 - Backport CodecOptions class from 3.x. 2015-05-26 19:23:40 -07:00
A. Jesse Jiryu Davis
2fa1750b07 Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
behackett
2483775f0b Silence C extension RuntimeWarning PYTHON-569
When encoding a document in C while running in a python sub interpreter
(e.g. mod_wsgi spawning sub interpreters) PyMongo would often have
to reload its cache of pure python types - ObjectId, Timestamp,
UUID, etc. - raising RuntimeWarning in the process. The reason this was
necessary is described in the mod_wsgi documentation here:

https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters

With workarounds documented here:

http://api.mongodb.org/python/2.6.2/faq.html#does-pymongo-work-with-mod-wsgi

With this commit PyMongo will no longer use cached pure python types
when running in a sub interpreter. Instead it will look up pure python
types as needed (primarily when decoding BSON). This eliminates the
problem described in the mod_wsgi docs and eliminates the need for the
Runtime warning.
2013-09-16 17:24:37 -04:00
Ross Lawley
29b9de45db Added __ne__ for DBRefs PYTHON-440 2012-11-22 11:12:36 +00:00
Bernie Hackett
f812d1babb Support copy of UUIDLegacy 2012-11-19 06:27:59 -08:00
Bernie Hackett
ae3a534dfb Fix pickling of Binary with Python 3.1 PYTHON-422
This works around http://bugs.python.org/issue7382
2012-10-25 09:43:14 -07:00
behackett
dfaadd53e8 Doc updates for PyMongo 2.3 2012-08-16 15:52:14 -07:00
behackett
638bb7fbdc Support Java and C# UUID byte order PYTHON-387 2012-08-15 12:10:26 -07:00
behackett
0ee7170cc2 It's 2012... 2012-04-19 12:40:38 -07:00
behackett
8cde67c330 Update bson module docs and comments for python 3. 2012-03-21 15:37:31 -07:00
behackett
7474f5cde8 Python 3 bson changes PYTHON-84 2012-03-20 13:56:15 -07:00
behackett
0c560a5cc4 Fix a few doc test failures. 2012-02-08 15:30:44 -08:00
Wouter Bolsterlee
bfbe701998 Don't overwrite built-in id() function in example 2012-02-08 15:17:11 -08:00
Bernie Hackett
f3d8b86a26 Minor doc updates. 2011-12-17 18:29:59 -08:00
behackett
eb5959ee95 Default to Binary subtype 3 for UUIDs PYTHON-267 2011-12-06 11:58:43 -08:00
behackett
3c85a98edb Support per-collection UUID subtype PYTHON-267 2011-11-10 18:53:08 -08:00
behackett
8bdb7821a9 Always decode to UUID PYTHON-267 2011-09-14 15:11:58 -07:00
behackett
a88a79f474 Fix minor typos PYTHON-267 2011-09-14 13:58:13 -07:00
behackett
258f81870e Store UUIDs as BSON binary subtype 4 PYTHON-267
The default binary subtype for UUIDs has changed
to 4. You can use bson.binary.UUIDLegacy to query
on UUIDs previously stored as subtype 3. See the
UUIDLegacy docstring for more details.
2011-09-14 13:12:36 -07:00
behackett
3603d05ce1 Switch default Binary subtype from 2 to 0. 2011-08-01 15:33:24 -07:00
Mike Dirolf
9c182809f3 Create a separate bson package PYTHON-60
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00