@@ -190,7 +190,8 @@ or on combining URL components into a URL string.
190
190
read. If set, then throws a :exc: `ValueError ` if there are more than
191
191
*max_num_fields * fields read.
192
192
193
- The optional argument *separator * is the symbol to use for separating the query arguments. It defaults to `& `.
193
+ The optional argument *separator * is the symbol to use for separating the
194
+ query arguments. It defaults to ``& ``.
194
195
195
196
Use the :func: `urllib.parse.urlencode ` function (with the ``doseq ``
196
197
parameter set to ``True ``) to convert such dictionaries into query
@@ -204,8 +205,10 @@ or on combining URL components into a URL string.
204
205
Added *max_num_fields * parameter.
205
206
206
207
.. versionchanged :: 3.10
207
- Added *separator * parameter with the default value of `& `. Python versions earlier than Python 3.10 allowed using both ";" and "&" as
208
- query parameter separator. This has been changed to allow only a single separator key, with "&" as the default separator.
208
+ Added *separator * parameter with the default value of ``& ``. Python
209
+ versions earlier than Python 3.10 allowed using both ``; `` and ``& `` as
210
+ query parameter separator. This has been changed to allow only a single
211
+ separator key, with ``& `` as the default separator.
209
212
210
213
211
214
.. function :: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&')
@@ -232,7 +235,8 @@ or on combining URL components into a URL string.
232
235
read. If set, then throws a :exc: `ValueError ` if there are more than
233
236
*max_num_fields * fields read.
234
237
235
- The optional argument *separator * is the symbol to use for separating the query arguments. It defaults to `& `.
238
+ The optional argument *separator * is the symbol to use for separating the
239
+ query arguments. It defaults to ``& ``.
236
240
237
241
Use the :func: `urllib.parse.urlencode ` function to convert such lists of pairs into
238
242
query strings.
@@ -244,8 +248,10 @@ or on combining URL components into a URL string.
244
248
Added *max_num_fields * parameter.
245
249
246
250
.. versionchanged :: 3.10
247
- Added *separator * parameter with the default value of `& `. Python versions earlier than Python 3.10 allowed using both ";" and "&" as
248
- query parameter separator. This has been changed to allow only a single separator key, with "&" as the default separator.
251
+ Added *separator * parameter with the default value of ``& ``. Python
252
+ versions earlier than Python 3.10 allowed using both ``; `` and ``& `` as
253
+ query parameter separator. This has been changed to allow only a single
254
+ separator key, with ``& `` as the default separator.
249
255
250
256
251
257
.. function :: urlunparse(parts)
0 commit comments