mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Improve #19204: Improved cross-references in the urllib package documentation.
This commit is contained in:
parent
b7117af07d
commit
5e1c053f0c
4 changed files with 30 additions and 25 deletions
|
@ -518,8 +518,8 @@ task isn't already covered by the URL parsing functions above.
|
|||
Convert a mapping object or a sequence of two-element tuples, which may
|
||||
either be a :class:`str` or a :class:`bytes`, to a "percent-encoded"
|
||||
string. If the resultant string is to be used as a *data* for POST
|
||||
operation with :func:`urlopen` function, then it should be properly encoded
|
||||
to bytes, otherwise it would result in a :exc:`TypeError`.
|
||||
operation with :func:`~urllib.request.urlopen` function, then it should be
|
||||
properly encoded to bytes, otherwise it would result in a :exc:`TypeError`.
|
||||
|
||||
The resulting string is a series of ``key=value`` pairs separated by ``'&'``
|
||||
characters, where both *key* and *value* are quoted using :func:`quote_plus`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue