Petr Messner
7f1939ebcb
PYTHON-1642 - Replace count() with count_documents({}) in docs ( #376 )
2018-09-13 16:34:35 -07:00
Prashant Mital
58851e1221
PYTHON-1619 Implement ObjectID Specification ( #373 )
...
PYTHON-1619 Implement ObjectID Specification
2018-08-29 12:24:28 -05:00
Shane Harvey
7ca04999e9
PYTHON-1603 Truncate large datetimes properly ( #362 )
2018-07-09 16:28:48 -07:00
Bernie Hackett
cbc81ee793
PYTHON-1536 - PyMongo no longer supports PyPy3 < 3.5
2018-07-03 12:44:40 -07:00
Bernie Hackett
749c1a2f0b
PYTHON-1467 - PyMongo no longer supports Python 2.6
2018-07-02 15:15:43 -07:00
Bernie Hackett
ccbd857838
PYTHON-1506 - Add CodecOptions examples
2018-06-25 23:13:15 -04:00
stephan-hof
e113a338e9
Improve the check for legal utf8 in the bson module.
...
Now python and bson have the same understanding of legal utf8.
2018-06-24 19:59:16 -07:00
Shane Harvey
ea8cb6c209
PYTHON-1329 Send/receive commands as OP_MSG
...
Don't use $query with OP_MSG.
Support compression with OP_MSG.
2018-06-21 15:46:48 -07:00
Shane Harvey
e4317d286b
PYTHON-1508 Retryable commit/abort, has_error_label api
...
Retryable commitTransaction/abortTransaction.
Retry writes after certain writeConcernErrors.
Add has_error_label api.
Update unacknowledged write concern error messge.
Resync transaction tests and update test runner.
2018-06-07 14:39:52 -07:00
Bernie Hackett
61850357a0
PYTHON-1521 - Use FNV-1a for ObjectId machine bytes
2018-05-31 12:26:53 -07:00
Shane Harvey
5ff33a2a37
PYTHON-1554 Fix datetime decoding memory leak
2018-05-22 13:42:59 -07:00
Bernie Hackett
ba7c95a9df
PYTHON-1462 - Import ABCs from collections.abc
2018-02-12 19:42:44 -08:00
Shane Harvey
1a784e1afb
PYTHON-1466 Silence minor complaints from Coverity
...
Remove useless NULL check as GETSTATE cannot return NULL after
successful initialization.
2018-02-12 11:31:48 -08:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
de801be529
Silence various complaints from Coverity
2017-11-30 15:02:20 -08:00
Shane Harvey
a4f58cce53
PYTHON-1404 Avoid copying RawBSONDocument.raw.
2017-11-10 15:45:04 -08:00
Bernie Hackett
2719464837
PYTHON-1352 - Move BSON type map docs from bson.son.SON to bson
2017-11-08 11:24:28 -08:00
Bernie Hackett
410027c057
PYTHON-1387 - Improve detection of object_pairs_hook support
2017-09-30 09:28:09 -07:00
gzcf
9051b65510
PYTHON-1299 fix Regex __eq__ method ( #337 )
2017-09-29 10:57:21 -07:00
Shane Harvey
e775295ab5
PYTHON-1367 Ignore uuid_representation when decoding BSON binary subtype 4.
2017-09-12 17:20:14 -07:00
Anthony Sottile
41be71f09f
Trim trailing whitespace
2017-08-31 22:26:39 -07:00
A. Jesse Jiryu Davis
de54cafff5
Unused import
2017-08-25 15:24:16 -04:00
Shane Harvey
b7893b7ec4
3.5 changelog and documentation fixes.
2017-08-08 09:32:09 -07:00
Shane Harvey
6e022e0636
PYTHON-1297 Improve documentation for Extended JSON.
2017-08-07 17:14:34 -07:00
Shane Harvey
47ab8c3187
PYTHON-1343 Use unsigned long to encode Timestamps.
...
The time and increment portions of a Timestamp are unsigned 32-bit integers
which are not guaranteed to fit inside a long.
2017-08-04 11:33:49 -07:00
Shane Harvey
054a01aaff
PYTHON-1297 Implement Extended JSON Spec 2.0
...
Add JSONOptions.json_mode to control encoding Relaxed and Canonical
Extended JSON.
Add json_util.LEGACY_JSON_OPTIONS to encode PyMongo 3.4's default JSON output.
Deprecate json_util.STRICT_JSON_OPTIONS.
Move Decimal128 spec tests to bson_corpus runner.
2017-08-03 10:30:24 -07:00
Shane Harvey
6a11888a9c
PYTHON-1330 Decode JSON binary type 0 to Python 3 bytes.
2017-07-31 13:16:46 -07:00
A. Jesse Jiryu Davis
217f90bab6
PYTHON-1284 Don't copy CodecOptions in RawBSONDocument
2017-07-01 09:07:58 -04:00
Bernie Hackett
02e606608e
PYTHON-1213 - Make decimal128 work with cdecimal
2017-04-04 17:01:50 -07:00
Bernie Hackett
2fe8d7cf69
PYTHON-1244 - Fix signed/unsigned comparison
2017-02-27 16:14:47 -08:00
Luke Lovett
74c0d55314
PYTHON-1214 - Implement the extended JSON specification.
2017-02-22 10:32:29 -08:00
Bernie Hackett
21b6a47ce9
PYTHON-1202 - Fix time64 compilation with -std=c99
...
Python 2.6 on Solaris 11 is built with -std=c99. That causes
build issues for our time64 code, which needs localtime_r and
tzset. Including Python.h in time64.c provides the necessary magic.
2017-02-17 13:55:50 -08:00
Bernie Hackett
afa14fb3a2
Link to python-bsonjs on pypi
2016-11-29 09:31:27 -08:00
Shane Harvey
0abcb7a683
Advertise python-bsonjs in json_util and FAQ documentation
2016-11-28 17:36:40 -08:00
Bernie Hackett
8ae717d0df
Always check for errors after calling PyLong/Int_AsLong
2016-10-26 16:48:24 -07:00
Petr Messner
8712009f5a
Fix ref count management when building _element_to_dict result tuple
2016-10-20 15:46:00 -07:00
Bernie Hackett
c0767a551a
PYTHON-1153 - Make docs build and test under python 3
2016-09-26 15:49:59 -07:00
Bernie Hackett
1a45a0fa08
Changelog for PyMongo 3.4
2016-09-16 14:31:20 -07:00
Shane Harvey
888d0fab1f
PYTHON-1135 Replace JSONOptions.strict_date with JSONOptions.datetime_representation
2016-09-12 11:11:30 -07:00
Luke Lovett
d37bb4aabf
Merge branch 'patch-1' of https://github.com/cjgibson/mongo-python-driver into 34dev
2016-09-09 15:07:59 -07:00
Christian Gibson
bca7e3b994
Updating class reference in comment.
2016-09-09 17:55:20 -04:00
Bernie Hackett
7933d5a95f
PYTHON-1068 - Update Decimal128 for latest spec changes
2016-08-29 15:07:07 -07:00
Bernie Hackett
82db71e1e8
PYTHON-1068 - Support for BSON Decimal128
2016-08-29 15:07:07 -07:00
Luke Lovett
b6c74cf33d
PYTHON-1106 - Implement BSON corpus test suite.
2016-08-24 11:01:45 -07:00
Luke Lovett
6692e8877a
PYTHON-1131 - Fix inconsistent handling of scope, unicode support for Code.
2016-08-19 15:22:19 -07:00
Shane Harvey
6e2ecc1817
PYTHON-1111 JSONOptions.document_class requires simplejson in Python2.6
2016-08-01 10:05:16 -07:00
Shane Harvey
57d1ccde2f
PYTHON-1111 Add JSONOptions for dumps and loads
...
PYTHON-767 Support JSON strict mode $date output
PYTHON-1039 Support JSON strict mode $numberLong output
PYTHON-1103 Support JSON strict mode UUID output
PYTHON-1111 Support custom document class in loads
PYTHON-1111 Support tz_aware and tzinfo in loads
Refactor milliseconds to datetime conversions
2016-07-27 11:32:59 -07:00
Shane Harvey
5afd19922a
PYTHON-1111 Add JSONOptions for dumps and loads
2016-07-22 12:10:29 -07:00
Bernie Hackett
c4e8d22544
PYTHON-1025 - C extensions big endian support
2016-06-24 17:54:24 -07:00
Bernie Hackett
53a7bea492
PYTHON-1022 - Drop support for Python 3.2
...
This change removes the u() helper from bson.py3compat
and all of its uses in the driver and tests. PyPy3 continues
to be supported since, even though it is based on python 3.2.5,
it has always supported the u string prefix.
The README and install docs are now explicit about PyPy(3) support.
2016-06-15 10:05:43 -07:00