1
1
Python 3
2
2
~~~~~~~~
3
3
4
+ The following compatibility tables show {+driver-short+}'s compatibility with different
5
+ versions of CPython and PyPy.
6
+
7
+ For more information about how to read the compatibility tables, see
8
+ :ref: `MongoDB Compatibility Tables. <about-driver-compatibility >`
9
+
10
+ CPython
11
+ ```````
12
+
4
13
.. list-table ::
5
14
:header-rows: 1
6
15
:stub-columns: 1
@@ -17,7 +26,6 @@ Python 3
17
26
- CPython 3.6
18
27
- CPython 3.5
19
28
- CPython 3.4
20
- - PyPy3
21
29
22
30
* - 4.11
23
31
- ✓
@@ -30,7 +38,6 @@ Python 3
30
38
-
31
39
-
32
40
-
33
- -
34
41
35
42
* - 4.9 to 4.10
36
43
- ✓
@@ -43,7 +50,6 @@ Python 3
43
50
-
44
51
-
45
52
-
46
- -
47
53
48
54
* - 4.8
49
55
-
@@ -56,7 +62,6 @@ Python 3
56
62
-
57
63
-
58
64
-
59
- -
60
65
61
66
* - 4.5 to 4.7
62
67
-
@@ -69,7 +74,6 @@ Python 3
69
74
-
70
75
-
71
76
-
72
- -
73
77
74
78
* - 4.3 to 4.4
75
79
-
@@ -82,7 +86,6 @@ Python 3
82
86
-
83
87
-
84
88
-
85
- -
86
89
87
90
* - 4.2
88
91
-
@@ -95,7 +98,6 @@ Python 3
95
98
-
96
99
-
97
100
-
98
- -
99
101
100
102
* - 4.1 [#three-six-compat ]_
101
103
-
@@ -108,7 +110,6 @@ Python 3
108
110
- ✓
109
111
-
110
112
-
111
- -
112
113
113
114
* - 4.0
114
115
-
@@ -121,7 +122,6 @@ Python 3
121
122
- ✓
122
123
-
123
124
-
124
- -
125
125
126
126
* - 3.13
127
127
-
@@ -134,7 +134,6 @@ Python 3
134
134
- ✓
135
135
- ✓
136
136
- ✓
137
- - ✓
138
137
139
138
* - 3.12
140
139
-
@@ -147,7 +146,6 @@ Python 3
147
146
- ✓
148
147
- ✓
149
148
- ✓
150
- - ✓
151
149
152
150
* - 3.11
153
151
-
@@ -160,7 +158,6 @@ Python 3
160
158
- ✓
161
159
- ✓
162
160
- ✓
163
- - ✓
164
161
165
162
* - 3.10
166
163
-
@@ -173,7 +170,6 @@ Python 3
173
170
- ✓
174
171
- ✓
175
172
- ✓
176
- - ✓
177
173
178
174
* - 3.7 to 3.9
179
175
-
@@ -186,21 +182,85 @@ Python 3
186
182
- ✓
187
183
- ✓
188
184
- ✓
189
- - ✓
190
185
191
186
.. [#ssl-4.0-issue ] Versions of Python 3.10 and later are not compatible with
192
187
TLS/SSL for versions of MongoDB 4.0 and earlier. For more information, see the
193
188
:ref: `TLS <pymongo-troubleshoot-tls >` section of the Troubleshooting guide.
194
189
.. [#three-six-compat ] Pymongo 4.1 requires Python 3.6.2 or later.
195
190
196
- For more information about how to read the compatibility tables, see
197
- :ref: `MongoDB Compatibility Tables. <about-driver-compatibility >`
191
+ PyPy
192
+ ````
193
+
194
+ .. list-table ::
195
+ :header-rows: 1
196
+ :stub-columns: 1
197
+ :class: compatibility-large
198
+
199
+ * - {+driver-short+} Version
200
+ - PyPy3.11
201
+ - PyPy3.10
202
+ - PyPy3.9
203
+ - PyPy3.8
204
+ - PyPy3.7
205
+ - PyPy3.6
206
+ - PyPy3.5
207
+ - PyPy3.4
208
+
209
+ * - 4.11
210
+ - ✓
211
+ - ✓
212
+ -
213
+ -
214
+ -
215
+ -
216
+ -
217
+ -
218
+
219
+ * - 4.8 to 4.10
220
+ - ✓
221
+ - ✓
222
+ - ✓
223
+ -
224
+ -
225
+ -
226
+ -
227
+ -
228
+
229
+ * - 4.5 to 4.7
230
+ - ✓
231
+ - ✓
232
+ - ✓
233
+ - ✓
234
+ -
235
+ -
236
+ -
237
+ -
238
+
239
+ * - 3.8 to 4.4
240
+ - ✓
241
+ - ✓
242
+ - ✓
243
+ - ✓
244
+ - ✓
245
+ - ✓
246
+ - ✓
247
+ -
248
+
249
+ * - 3.7
250
+ - ✓
251
+ - ✓
252
+ - ✓
253
+ - ✓
254
+ - ✓
255
+ - ✓
256
+ - ✓
257
+ - ✓
198
258
199
259
Python 2
200
260
~~~~~~~~
201
261
202
- {+driver-short+} versions 3.7 through 3.12 are compatible with Python 2.7 and PyPy, a
203
- Python 2.7-compatible alternative interpreter. However, in some cases, {+driver-short+}
262
+ {+driver-short+} versions 3.7 through 3.12 are compatible with Python 2.7 and PyPy2.7.
263
+ However, in some cases, {+driver-short+}
204
264
applications behave differently when running in a Python 2 environment.
205
265
206
266
The following sections describe the differences in behavior between Python 2 and Python 3
0 commit comments