Jeffrey 'Alex' Clark
ec9d95413c
PYTHON-5757 Deprecate Python 2 methods in SON ( #2732 )
2026-03-18 17:46:23 -04:00
Steven Silvester
527cbdd18a
PYTHON-5537 Update typing dependencies ( #2524 )
2025-09-10 13:28:02 -05:00
Steven Silvester
3ef565fa43
PYTHON-4796 Update type checkers and handle with_options typing ( #1880 )
2024-09-30 18:01:53 -05:00
Steven Silvester
923c8a5abe
PYTHON-4024 Use ruff formatter ( #1419 )
2023-11-02 12:46:40 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Steven Silvester
83ab612aa1
PYTHON-3932 Support mypy --strict testing in bson package ( #1362 )
2023-08-29 13:49:11 -05:00
Iris
c1d33831e8
PYTHON-3907 add --disallow-untyped-defs for mypy ( #1351 )
2023-08-10 11:08:36 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 ( #1196 )
...
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
bc9029a228
PYTHON-3679 Support mypy 1.2 ( #1194 )
2023-04-28 14:27:06 -07:00
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