mongo-python-driver/bson
A. Jesse Jiryu Davis 9da835ab3d PYTHON-825 BSON API changes and internal options handling.
This change resolves four issues:

PYTHON-826 The new codec_options submodule is moved from pymongo to bson.

PYTHON-827 Use codec_options in BSON APIs.

Functions and methods of the bson module that accepted the options as_class,
tz_aware, and uuid_subtype now accept a codec_options parameter instead.

For example, the function definition for bson.decode_all changes from this:

def decode_all(data, as_class=dict, tz_aware=True,
               uuid_subtype=OLD_UUID_SUBTYPE)

to:

def decode_all(data, codec_options=CodecOptions())

The following functions are changed:

- decode_all
- decode_iter
- decode_file_iter

The following methods are changed:

- BSON.encode
- BSON.decode

This is a breaking change for any application that uses the BSON API directly
and changes any of the named parameter defaults. No changes are required for
applications that use the default values for these options. The behavior
remains the same.

PYTHON-828 Internal BSON module changes to support CodecOptions

The pure Python BSON module passes around a CodecOptions instance instead of
as_class, tz_aware, and uuid_subtype. C extensions pass these values around in
a struct.

PYTHON-801 Rename uuid_subtype to uuid_representation.
2015-02-05 23:09:23 -06:00
..
__init__.py PYTHON-825 BSON API changes and internal options handling. 2015-02-05 23:09:23 -06:00
_cbsonmodule.c PYTHON-825 BSON API changes and internal options handling. 2015-02-05 23:09:23 -06:00
_cbsonmodule.h PYTHON-825 BSON API changes and internal options handling. 2015-02-05 23:09:23 -06:00
binary.py PYTHON-825 BSON API changes and internal options handling. 2015-02-05 23:09:23 -06:00
buffer.c Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
buffer.h Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
code.py Remove ancient version annotations. 2014-10-31 14:15:24 -04:00
codec_options.py PYTHON-825 BSON API changes and internal options handling. 2015-02-05 23:09:23 -06:00
dbref.py Remove ancient version annotations. 2014-10-31 14:15:24 -04:00
encoding_helpers.c Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
encoding_helpers.h Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
errors.py Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
int64.py PYTHON-760 - BSONInt64 -> Int64 2014-09-23 11:43:41 -07:00
json_util.py PYTHON-526 Remove 'compile_re' option. 2014-12-05 14:06:38 -05:00
max_key.py Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
min_key.py Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
objectid.py PYTHON-789 Clarify valid ObjectId input (3.0-dev). 2014-11-20 23:18:41 -05:00
py3compat.py PYTHON-525 - Cluster monitoring python 3 support. 2014-07-02 11:51:34 -07:00
regex.py PYTHON-673 - Use bytes and remove binary_type 2014-04-23 13:25:00 -07:00
son.py PYTHON-526 Remove 'compile_re' option. 2014-12-05 14:06:38 -05:00
time64_config.h Split C extension in two (pymongo, bson) PYTHON-60 2010-09-14 13:55:41 -04:00
time64_limits.h Split C extension in two (pymongo, bson) PYTHON-60 2010-09-14 13:55:41 -04:00
time64.c Remove unused constant. 2014-03-14 09:13:46 -07:00
time64.h Remove asctime64_r (and related) PYTHON-327 2012-02-10 12:28:04 -08:00
timestamp.py Remove ancient version annotations. 2014-10-31 14:15:24 -04:00
tz_util.py Update copyright notices and company name. 2014-01-31 09:36:46 -05:00