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,113 @@ Python 3
186
182
- ✓
187
183
- ✓
188
184
- ✓
185
+
186
+ PyPy
187
+ ````
188
+
189
+ .. list-table ::
190
+ :header-rows: 1
191
+ :stub-columns: 1
192
+ :class: compatibility-large
193
+
194
+ * - {+driver-short+} Version
195
+ - PyPy3.10
196
+ - PyPy3.9
197
+ - PyPy3.8
198
+ - PyPy3.7
199
+ - PyPy3.6
200
+ - PyPy3.5
201
+
202
+ * - 4.11
203
+ - ✓
204
+ -
205
+ -
206
+ -
207
+ -
208
+ -
209
+
210
+ * - 4.8 to 4.10
211
+ - ✓
212
+ - ✓
213
+ -
214
+ -
215
+ -
216
+ -
217
+
218
+ * - 4.5 to 4.7
219
+ - ✓
220
+ - ✓
221
+ - ✓
222
+ -
223
+ -
224
+ -
225
+
226
+ * - 4.2 to 4.4
227
+ - ✓
228
+ - ✓
229
+ - ✓
230
+ - ✓
231
+ -
232
+ -
233
+
234
+ * - 4.1 [#three-six-compat ]_
235
+ - ✓
236
+ - ✓
237
+ - ✓
238
+ - ✓
239
+ - ✓
240
+ -
241
+
242
+ * - 4.0
243
+ - ✓
244
+ - ✓
245
+ - ✓
246
+ - ✓
247
+ - ✓
248
+ -
249
+
250
+ * - 3.12
251
+ - ✓
252
+ - ✓
253
+ - ✓
254
+ - ✓
255
+ - ✓
256
+ - ✓
257
+
258
+ * - 3.11
259
+ -
260
+ - ✓
261
+ - ✓
262
+ - ✓
263
+ - ✓
264
+ - ✓
265
+
266
+ * - 3.10
267
+ -
268
+ -
269
+ - ✓
270
+ - ✓
271
+ - ✓
272
+ - ✓
273
+
274
+ * - 3.7 to 3.9
275
+ -
276
+ -
277
+ -
278
+ - ✓
279
+ - ✓
189
280
- ✓
190
281
191
282
.. [#ssl-4.0-issue ] Versions of Python 3.10 and later are not compatible with
192
283
TLS/SSL for versions of MongoDB 4.0 and earlier. For more information, see the
193
284
:ref: `TLS <pymongo-troubleshoot-tls >` section of the Troubleshooting guide.
194
- .. [#three-six-compat ] Pymongo 4.1 requires Python 3.6.2 or later.
195
-
196
- For more information about how to read the compatibility tables, see
197
- :ref: `MongoDB Compatibility Tables. <about-driver-compatibility >`
285
+ .. [#three-six-compat ] {+driver-short+} 4.1 requires Python 3.6.2 or later.
198
286
199
287
Python 2
200
288
~~~~~~~~
201
289
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+}
290
+ {+driver-short+} versions 3.7 through 3.12 are compatible with Python 2.7 and PyPy2.7.
291
+ However, in some cases, {+driver-short+}
204
292
applications behave differently when running in a Python 2 environment.
205
293
206
294
The following sections describe the differences in behavior between Python 2 and Python 3
0 commit comments