|
1 | 1 | Changelog |
2 | 2 | ========= |
3 | 3 |
|
| 4 | +Changes in Version 1.8 |
| 5 | +---------------------- |
| 6 | + |
| 7 | +Version 1.8 adds support for connecting to replica sets, specifying |
| 8 | +per-operation values for `w` and `wtimeout`, and decoding to |
| 9 | +timezone-aware datetimes. |
| 10 | + |
| 11 | +- fixed a reference leak in the C extension when decoding a |
| 12 | + :class:`~pymongo.dbref.DBRef`. |
| 13 | +- added support for `w`, `wtimeout`, and `fsync` (and any other |
| 14 | + options for `getLastError`) to "safe mode" operations. |
| 15 | +- added :attr:`~pymongo.connection.Connection.nodes` property. |
| 16 | +- added a maximum pool size of 10 sockets. |
| 17 | +- added support for replica sets. |
| 18 | +- DEPRECATED :meth:`~pymongo.connection.Connection.from_uri` and |
| 19 | + :meth:`~pymongo.connection.Connection.paired`, both are supplanted |
| 20 | + by extended functionality in :meth:`~pymongo.connection.Connection`. |
| 21 | +- added tz aware support for datetimes in |
| 22 | + :class:`~pymongo.objectid.ObjectId`, |
| 23 | + :class:`~pymongo.timestamp.Timestamp` and :mod:`~pymongo.json_util` |
| 24 | + methods. |
| 25 | +- added :meth:`~pymongo.collection.Collection.drop` helper. |
| 26 | +- reuse the socket used for finding the master when a |
| 27 | + :class:`~pymongo.connection.Connection` is first created. |
| 28 | +- added support for :class:`~pymongo.min_key.MinKey`, |
| 29 | + :class:`~pymongo.max_key.MaxKey` and |
| 30 | + :class:`~pymongo.timestamp.Timestamp` to :mod:`~pymongo.json_util`. |
| 31 | +- added support for decoding datetimes as aware (UTC) - it is highly |
| 32 | + recommended to enable this by setting the `tz_aware` parameter to |
| 33 | + :meth:`~pymongo.connection.Connection` to ``True``. |
| 34 | +- added `network_timeout` option for individual calls to |
| 35 | + :meth:`~pymongo.collection.Collection.find` and |
| 36 | + :meth:`~pymongo.collection.Collection.find_one`. |
| 37 | +- added :meth:`~gridfs.GridFS.exists` to check if a file exists in |
| 38 | + GridFS. |
| 39 | +- added support for additional keys in :class:`~pymongo.dbref.DBRef` |
| 40 | + instances. |
| 41 | +- added :attr:`~pymongo.errors.OperationFailure.code` attribute to |
| 42 | + :class:`~pymongo.errors.OperationFailure` exceptions. |
| 43 | +- fixed serialization of int and float subclasses in the C extension. |
| 44 | + |
4 | 45 | Changes in Version 1.7 |
5 | 46 | ---------------------- |
6 | 47 |
|
7 | | -Version 1.7 is a recommended upgrade for all PyMongo users. The full release notes are below, and some more in depth discussion of the highlights is `here <http://dirolf.com/2010/06/17/pymongo-1.7-released.html>`_. |
| 48 | +Version 1.7 is a recommended upgrade for all PyMongo users. The full |
| 49 | +release notes are below, and some more in depth discussion of the |
| 50 | +highlights is `here |
| 51 | +<http://dirolf.com/2010/06/17/pymongo-1.7-released.html>`_. |
8 | 52 |
|
9 | 53 | - no longer attempt to build the C extension on big-endian systems. |
10 | 54 | - added :class:`~pymongo.min_key.MinKey` and |
|
0 commit comments