Iris
4d42931823
PYTHON-3820 Optimize PyObject_CallMethod calls ( #1314 )
2023-07-19 09:03:45 -07:00
Shane Harvey
70da43ffe8
PYTHON-3846 Faster int encoding ( #1311 )
2023-07-17 14:40:27 -04:00
Shane Harvey
469e2e95f5
PYTHON-3511 Cleanup some more Python 2 references ( #1309 )
2023-07-14 17:02:24 -04:00
Soroush Mahdavi
c6a6ea6066
PYTHON-3511 Remove Python 2 references from the docs ( #1161 )
...
Co-authored-by: Nicky Lee <40870742+iceypotato@users.noreply.github.com>
Co-authored-by: DanielZavala11 <89770626+DanielZavala11@users.noreply.github.com>
Co-authored-by: Shane Harvey <shane.harvey@mongodb.com>
2023-07-14 15:30:14 -04:00
Iris
992df04da6
PYTHON-3831 remove _DocumentIn ( #1308 )
2023-07-14 11:12:58 -07:00
Iris
3f9e722e01
PYTHON-3824 Optimize BSON encoding of standard Python list and tuples ( #1302 )
2023-07-13 14:29:00 -07:00
Iris
7bcbb0de9b
PYTHON-3802 add types to database.py ( #1295 )
2023-07-12 10:48:33 -07:00
Iris
9a4911fca6
PYTHON-3817 Optimize BSON encoding of standard Python dict ( #1301 )
2023-07-11 12:32:56 -07:00
Iris
f813f56362
PYTHON-3803 add types to encryption.py ( #1296 )
2023-07-11 08:24:15 -07:00
Iris
5a8f422b9f
PYTHON-3816 use Use PyObject_GetItem instead of PyMapping_GetItemString ( #1294 )
2023-07-07 12:27:35 -07:00
Iris
7e96249212
PYTHON-3797 cache commonly used strings ( #1292 )
2023-07-06 08:26:21 -07:00
Iris
0b5bdccf3a
PYTHON-3729 use PyObject_GetAddr instead of PyObject_GetAddrString ( #1281 )
2023-07-03 09:15:04 -07:00
stephan-hof
8b23204408
PYTHON-3758 Support overflow integers in fallback_encoder. ( #1243 )
...
bson only supports 64-bit integer within range:
[-9_223_372_036_854_775_807, +9_223_372_036_854_775_807]
This change calls the fallback_encoder before raising OverflowError on
integers outside of this range.
2023-06-26 15:20:01 -04:00
Noah Stapp
df07641687
PYTHON-2523 Remove unneeded bson-stdint-win32.h ( #1253 )
2023-06-21 16:25:58 -07:00
Iris
f7874fb110
PYTHON-2287 Improve error message for invalid boolean option ( #1236 )
2023-06-15 11:54:20 -07:00
Noah Stapp
bcfdd200c3
PYTHON-3702 bson datetime utc import cleanup ( #1233 )
2023-06-15 08:57:50 -07:00
Noah Stapp
ec3437849e
PYTHON-3702 Stop using utcnow and utcfromtimestamp ( #1229 )
2023-06-12 15:43:30 -07:00
Shane Harvey
3f687f71fb
PYTHON-3443 Remove redundant code to avoid Coverity warnings ( #1228 )
2023-06-12 12:41:59 -07:00
Shane Harvey
0bce579b81
PYTHON-3728 Simplify convert_codec_options signature ( #1225 )
2023-06-09 13:08:56 -07:00
thalassemia
1ba4c0bcbd
PYTHON-3718 Faster INT2STRING ( #1221 )
2023-06-05 18:35:39 -05:00
thalassemia
4c0196d340
PYTHON-3717 Speed up _type_marker check in BSON ( #1219 )
2023-05-26 09:40:32 -05: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
Jean-Christophe Fillion-Robin
d340710e3d
PYTHON-3703 Fix typos and add codespell pre-commit hook ( #1203 )
...
Update pre-commit config adding "codespell" hook
2023-05-03 14:47:24 -07:00
Shane Harvey
bc9029a228
PYTHON-3679 Support mypy 1.2 ( #1194 )
2023-04-28 14:27:06 -07:00
Steven Silvester
e75cfec34f
PYTHON-3686 Consolidate CodecOptions Typings ( #1199 )
2023-04-28 16:11:27 -05:00
Steven Silvester
e9a6482c4d
PYTHON-3610 Add blacken-docs to pre-commit hook ( #1170 )
2023-03-14 15:37:45 -05:00
Julius Park
05845b8038
PYTHON-3562 Type annotation of bson.json_utils.loads is incorrect (only accepts str) ( #1152 )
2023-02-10 15:28:04 -08:00
Julius Park
b3099c62de
PYTHON-3558 Missing docs for JSONOptions ( #1143 )
2023-01-30 12:13:30 -08:00
Steven Silvester
a3720d9cea
PYTHON-3568 Intellisense highlights multiple PyMongo methods because of CodecOptions ( #1139 )
2023-01-25 09:41:23 -06:00
Steven Silvester
7299dff84d
PYTHON-3546 bson.CodecOptions docs missing unicode_decode_error_handler=ignore option in newer documentation ( #1131 )
2023-01-05 13:55:47 -06:00
Steven Silvester
df77653ccc
PYTHON-3347 Test against Python 3.11 prerelease ( #1069 )
2022-10-13 06:09:23 -05:00
Steven Silvester
449cb8fb0f
PYTHON-2722 Improve performance of find/aggregate_raw_batches ( #1047 )
2022-09-22 15:14:40 -05:00
Ben Warner
3204290e93
PYTHON-2484 Added lock sanitization for MongoClient and ObjectId ( #985 )
2022-08-04 16:58:56 -07:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion ( #1031 )
2022-08-04 12:53:57 -07:00
Ben Warner
fbb8dde826
PYTHON-3375 Added docstrings to DatetimeConversionOpts ( #1024 )
...
* Added docstrings
* Fixed detail
* Fixed punctuation and links
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-29 15:53:38 -07:00
Ben Warner
3c18c20795
PYTHON-3377 datetime_ms documentation page is empty ( #1026 )
...
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-29 12:07:04 -07:00
Ben Warner
0c56d56658
PYTHON-3371 Remove DatetimeConversionOpts.__repr__ ( #1023 )
...
* Removed __repr__ and adjusted repr string
* Changed to %s
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-28 15:55:34 -07:00
Ben Warner
14002a5a0d
PYTHON-1824 Allow encoding/decoding out-of-range datetimes via DatetimeMS and datetime_conversion ( #981 )
...
https://jira.mongodb.org/browse/PYTHON-1824
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-27 16:53:52 -07:00
Shane Harvey
864812d400
PYTHON-3366 Support mypy 0.971 and test with latest version ( #1021 )
...
PYTHON-3369 Use https://www.gevent.org
2022-07-25 15:25:41 -07:00
Steven Silvester
b40f13bf7d
PYTHON-3311 Module "pymongo" does not explicitly export attribute "MongoClient"; implicit reexport disabled ( #994 )
2022-07-06 18:30:00 -05:00
Ben Warner
3f7231a1a2
PYTHON-3048 Fixed bug with incorrect validation of UTF-8 regex patterns ( #970 )
2022-06-13 16:04:30 -07:00
Ben Warner
be3008aa11
PYTHON-2110 Refactored some C to avoid symbol conflicts ( #968 )
...
* Refactored to avoid symbol conflicts
* Forgot a replacement
* Found a symbol
* Undid symbol replacement for PyInit__cmessage
* Changed cbson too
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-06-13 11:42:41 -07:00
Shane Harvey
a7579b02d2
PYTHON-3259 Improve migration guide for loads/JSONOptions/tz_aware ( #946 )
2022-05-10 11:05:59 -07:00
Shane Harvey
dca72b7884
PYTHON-3222 Fix memory leak in cbson decode_all ( #927 )
...
Add decode_all keyword arg for codec_options.
Make decode_all show up in docs.
2022-04-12 17:18:23 -07:00
Steven Silvester
b3604a81d3
PYTHON-3171 Add usage of NoReturn annotation ( #901 )
2022-03-16 15:26:10 -05:00
Steven Silvester
474420b2e5
PYTHON-3085 Audit consistent and correct types for _DocumentOut ( #893 )
2022-03-16 05:56:07 -05:00
Steven Silvester
087950d869
PYTHON-3164 Outdated link from PyMongo docs to community forum ( #895 )
2022-03-15 15:49:11 -05:00
Steven Silvester
a61ea0660a
PYTHON-3090 Clean up Database Command Typing ( #879 )
2022-03-02 13:10:15 -06:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
2db512f5d5
PYTHON-3078 Remove Use of Unsupported NoReturn Type Class ( #864 )
2022-02-14 16:14:36 -06:00