File tree Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -44,19 +44,17 @@ class CodecOptions(_options_base):
44
44
and decoding instances of :class:`~uuid.UUID`. Defaults to
45
45
:data:`~bson.binary.PYTHON_LEGACY`.
46
46
- `unicode_decode_error_handler`: The error handler to use when decoding
47
- an invalid BSON string. Valid options include 'strict', 'replace', and
48
- 'ignore'. Defaults to 'strict'.
47
+ an invalid BSON string. Valid options include 'strict', 'replace', and
48
+ 'ignore'. Defaults to 'strict'.
49
+ - `tzinfo`: A :class:`~datetime.tzinfo` subclass that specifies the
50
+ timezone to/from which :class:`~datetime.datetime` objects should be
51
+ encoded/decoded.
49
52
50
53
.. warning:: Care must be taken when changing
51
54
`unicode_decode_error_handler` from its default value ('strict').
52
55
The 'replace' and 'ignore' modes should not be used when documents
53
56
retrieved from the server will be modified in the client application
54
57
and stored back to the server.
55
-
56
- - `tzinfo`: A :class:`~datetime.tzinfo` subclass that specifies the
57
- timezone to/from which :class:`~datetime.datetime` objects should be
58
- encoded/decoded.
59
-
60
58
"""
61
59
62
60
def __new__ (cls , document_class = dict ,
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ Changes in Version 3.1
5
+ ----------------------
6
+
7
+ Version 3.1 implements a few new features and fixes bugs reported since the release
8
+ of 3.0.3.
9
+
10
+ Highlights include:
11
+
12
+ - Command monitoring support. See :mod: `~pymongo.monitoring ` for details.
13
+ - Configurable error handling for :exc: `UnicodeDecodeError `. See the
14
+ `unicode_decode_error_handler ` option of
15
+ :class: `~bson.codec_options.CodecOptions `.
16
+ - Optional automatic timezone conversion when decoding BSON datetime. See the
17
+ `tzinfo ` option of :class: `~bson.codec_options.CodecOptions `.
18
+ - An implementation of :class: `~gridfs.GridFSBucket ` from the new GridFS spec.
19
+ - Compliance with the new Connection String spec.
20
+
21
+ Issues Resolved
22
+ ...............
23
+
24
+ See the `PyMongo 3.1 release notes in JIRA `_ for the list of resolved issues
25
+ in this release.
26
+
27
+ .. _PyMongo 3.1 release notes in JIRA : https://jira.mongodb.org/browse/PYTHON/fixforversion/14796
28
+
4
29
Changes in Version 3.0.3
5
30
------------------------
6
31
You can’t perform that action at this time.
0 commit comments