Commit Graph

40 Commits

Author SHA1 Message Date
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package (#844) 2022-02-07 19:33:41 -06:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself (#829) 2022-01-13 16:09:48 -06:00
Julius Park
fcedc510e1
PYTHON-2501 Remove iteritems from son.SON (#731) 2021-09-22 12:18:19 -07:00
Julius Park
fbd5599deb
PYTHON-2518 SON class should be compatible with Python 3's OrderedDict API (#730) 2021-09-16 15:21:40 -07:00
Bernie Hackett
521f7b9af4 PYTHON-2133 Fix up docs
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Bernie Hackett
c70071df1d PYTHON-2133 Remove Py2 compatibility from bson 2021-01-14 14:57:20 -08:00
Bernie Hackett
ba7c95a9df PYTHON-1462 - Import ABCs from collections.abc 2018-02-12 19:42:44 -08:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -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
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00
A. Jesse Jiryu Davis
2ba730722b PYTHON-526 Remove 'compile_re' option.
PyMongo now never attempts to compile BSON regular expressions as Python native
regular expressions.
2014-12-05 14:06:38 -05:00
A. Jesse Jiryu Davis
fd8dd020bc PYTHON-703 Remove slow SON.__contains__ method.
__setitem__ must now check self.__keys to avoid setting keys twice during
"copy.copy(son_obj)".
2014-10-24 13:19:43 -04:00
Don Mitchell
b8c944f118 Allow destructive ops during son iteration
and let python handle (identical to iter on list)
2014-10-24 13:19:33 -04:00
Don Mitchell
4093c06726 Don't unnecessarily copy the key list
Conflicts:
	doc/contributors.rst
	test/test_son.py
2014-10-24 13:19:20 -04:00
Bernie Hackett
9c8852d93f PYTHON-760 - BSONInt64 -> Int64 2014-09-23 11:43:41 -07:00
Luke Lovett
17fb3a2a02 PYTHON-505 Allow C extensions to encode any mapping type, not just dicts. 2014-08-13 16:16:25 +00:00
Luke Lovett
22702866c4 PYTHON-707 Update bson.son.SON's documentation in light of new BSONInt64 type. 2014-07-22 22:55:41 +00:00
A. Jesse Jiryu Davis
468bec6c32 Revert "PYTHON-710, simplify SON's equality operator."
This reverts commit 551e1e3edf.
The change did not work as expected in Jython.
2014-06-19 14:11:45 -04:00
A. Jesse Jiryu Davis
551e1e3edf PYTHON-710, simplify SON's equality operator. 2014-06-18 19:09:25 -04:00
A. Jesse Jiryu Davis
4aad6bc6b8 PYTHON-710, SON.to_dict shouldn't change original data. 2014-06-18 19:09:19 -04:00
Luke Lovett
d4a94d30fd PYTHON-673 python 2/3 single-source for the bson module 2014-04-17 21:29:15 +00:00
A. Jesse Jiryu Davis
2fa1750b07 Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
A. Jesse Jiryu Davis
e4cf504559 Option to not compile BSON regexes. PYTHON-500
Add a 'compile_re' parameter to Collection.find, Collection.find_one, and
json_util.loads. If it's False, regular expressions are encoded as a new class,
Regex, instead of passed to re.compile(). This allows PyMongo to handle regular
expressions that don't compile in Python but are valid in other contexts like
MongoDB queries.
2013-10-20 17:18:32 -04:00
behackett
517aec303c Fix up REType reload. 2013-06-04 13:50:03 -07:00
Ross Lawley
828aad3aad Ensure deepcopy clones using the correct type - PYTHON-459 2013-01-08 09:53:39 +00:00
Bernie Hackett
7c67e5b7f4 Work around Jython dict equality issue PYTHON-441
See http://bugs.jython.org/issue1728
2012-11-23 10:00:53 -08:00
Ross Lawley
d2840d0d7a SON equality fix PYTHON-441
Comparison to another SON is order-sensitive while comparison to a
regular dictionary is order-insensitive
2012-11-23 13:52:05 +00:00
Ross Lawley
29b9de45db Added __ne__ for DBRefs PYTHON-440 2012-11-22 11:12:36 +00:00
behackett
0ee7170cc2 It's 2012... 2012-04-19 12:40:38 -07:00
Bernie Hackett
640fca20c7 Change overlooked __cmp__ to __eq__ in son.SON. 2012-03-30 22:56:32 -07:00
behackett
6b8786eb85 More bson module doc updates for python 3. 2012-03-21 17:22:36 -07:00
behackett
8cde67c330 Update bson module docs and comments for python 3. 2012-03-21 15:37:31 -07:00
behackett
7474f5cde8 Python 3 bson changes PYTHON-84 2012-03-20 13:56:15 -07:00
behackett
4f579e6f92 Minor style fix. 2012-02-08 15:04:37 -08:00
Ross Lawley
486c3ce24a PYTHON-318 - Fix for SON pickling protocol 2
Updated tests to check protocol pickling as well
2012-02-08 14:59:33 -08:00
behackett
f0cb60483c Clarify int/long encode/decode behavior PYTHON-247 2011-05-27 13:06:14 -07:00
behackett
2ed05bec70 PEP8 cleanups. 2011-04-06 14:57:17 -07:00
Mathias Stearn
09f72e6029 support deepcopy on bson.SON 2010-11-10 10:58:05 -05:00
Mike Dirolf
9c182809f3 Create a separate bson package PYTHON-60
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00