@@ -189,25 +189,25 @@ def __init__(
189
189
- `port` (optional): port number on which to connect
190
190
- `document_class` (optional): default class to use for
191
191
documents returned from queries on this client
192
- - `type_registry` (optional): instance of
193
- :class:`~bson.codec_options.TypeRegistry` to enable encoding
194
- and decoding of custom types.
195
192
- `tz_aware` (optional): if ``True``,
196
193
:class:`~datetime.datetime` instances returned as values
197
194
in a document by this :class:`MongoClient` will be timezone
198
195
aware (otherwise they will be naive)
199
196
- `connect` (optional): if ``True`` (the default), immediately
200
197
begin connecting to MongoDB in the background. Otherwise connect
201
198
on the first operation.
199
+ - `type_registry` (optional): instance of
200
+ :class:`~bson.codec_options.TypeRegistry` to enable encoding
201
+ and decoding of custom types.
202
+
203
+ | **Other optional parameters can be passed as keyword arguments:**
204
+
202
205
- `directConnection` (optional): if ``True``, forces this client to
203
206
connect directly to the specified MongoDB host as a standalone.
204
207
If ``false``, the client connects to the entire replica set of
205
208
which the given MongoDB host(s) is a part. If this is ``True``
206
209
and a mongodb+srv:// URI or a URI containing multiple seeds is
207
210
provided, an exception will be raised.
208
-
209
- | **Other optional parameters can be passed as keyword arguments:**
210
-
211
211
- `maxPoolSize` (optional): The maximum allowable number of
212
212
concurrent connections to each connected server. Requests to a
213
213
server will block if there are `maxPoolSize` outstanding
@@ -338,6 +338,10 @@ def __init__(
338
338
`csharpLegacy`, `standard` and `unspecified`. New applications
339
339
should consider setting this to `standard` for cross language
340
340
compatibility. See :ref:`handling-uuid-data-example` for details.
341
+ - `unicode_decode_error_handler`: The error handler to apply when
342
+ a Unicode-related error occurs during BSON decoding that would
343
+ otherwise raise :exc:`UnicodeDecodeError`. Valid options include
344
+ 'strict', 'replace', and 'ignore'. Defaults to 'strict'.
341
345
342
346
| **Write Concern options:**
343
347
| (Only set if passed. No default values.)
0 commit comments