Skip to content

Commit c0df995

Browse files
committed
Changelog for 3.1
1 parent 7ac3b9e commit c0df995

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

bson/codec_options.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,17 @@ class CodecOptions(_options_base):
4444
and decoding instances of :class:`~uuid.UUID`. Defaults to
4545
:data:`~bson.binary.PYTHON_LEGACY`.
4646
- `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.
4952
5053
.. warning:: Care must be taken when changing
5154
`unicode_decode_error_handler` from its default value ('strict').
5255
The 'replace' and 'ignore' modes should not be used when documents
5356
retrieved from the server will be modified in the client application
5457
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-
6058
"""
6159

6260
def __new__(cls, document_class=dict,

doc/changelog.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
Changelog
22
=========
33

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+
429
Changes in Version 3.0.3
530
------------------------
631

0 commit comments

Comments
 (0)