chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c573814a-d3e6-40c9-b1eb-13f01129b126 | CPython Docs | file://datasets/cpython/Doc/library/winreg.rst | unknown | 41ba3f22-42cc-4c55-a867-dbdfc987c23a | 18,660 | supabase-export-v2 | cec93249f46a7096 | of one subkey each time it is called. It is typically called repeatedly until an :exc:`OSError` exception is raised, indicating, no more values are available.
.. audit-event:: winreg.EnumKey key,index winreg.EnumKey | trusted_official_docs | CPython Docs | of one subkey each time it is called. It is typically called repeatedly until an :exc:`OSError` exception is raised, indicating, no more values are available.
.. audit-event:: winreg.EnumKey key,index winreg.EnumKey | of one subkey each time it is called. It is typically called repeatedly until an :exc:`OSError` exception is raised, indicating, no more values are available.
.. audit-event:: winreg.EnumKey key,index winreg.EnumKey | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7f3e7f8-a5e1-42c5-9d75-ff93ce19a2f7 | CPython Docs | file://datasets/cpython/Doc/library/winreg.rst | unknown | 41ba3f22-42cc-4c55-a867-dbdfc987c23a | 18,836 | supabase-export-v2 | 71a8af887fd09534 | All registry functions in this module return one of these objects.
All registry functions in this module which accept a handle object also accept
an integer, however, use of the handle object is encouraged. | trusted_official_docs | CPython Docs | All registry functions in this module return one of these objects.
All registry functions in this module which accept a handle object also accept
an integer, however, use of the handle object is encouraged. | All registry functions in this module return one of these objects.
All registry functions in this module which accept a handle object also accept
an integer, however, use of the handle object is encouraged. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e7d4466d-3ddc-42eb-a1d3-03b7d2a07118 | CPython Docs | file://datasets/cpython/Doc/library/winreg.rst | unknown | 41ba3f22-42cc-4c55-a867-dbdfc987c23a | 18,719 | supabase-export-v2 | 18ad62e83b8a4677 | The result is a tuple of 2 items:
+-------+-----------------------------------------+
| Index | Meaning |
+=======+=========================================+
| ``0`` | The value of the registry item. |
+-------+-----------------------------------------+
| ``1`` | An integer giving the registry type for |
| | this... | trusted_official_docs | CPython Docs | The result is a tuple of 2 items:
+-------+-----------------------------------------+
| Index | Meaning |
+=======+=========================================+
| ``0`` | The value of the registry item. |
+-------+-----------------------------------------+
| ``1`` | An integer giving the registry type for |
| | this... | The result is a tuple of 2 items:
+-------+-----------------------------------------+
| Index | Meaning |
+=======+=========================================+
| ``0`` | The value of the registry item. |
+-------+-----------------------------------------+
| ``1`` | An integer giving the registry type for |
| | this... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ef9f4b18-898a-4894-8131-c8185fb94760 | CPython Docs | file://datasets/cpython/Doc/library/winreg.rst | unknown | 41ba3f22-42cc-4c55-a867-dbdfc987c23a | 18,669 | supabase-export-v2 | 4df20eadee2f3ad9 | | An integer that identifies the type of the | | | value data (see table in docs for | | | :meth:`SetValueEx`) | +-------+--------------------------------------------+
.. audit-event:: winreg.EnumValue key,index winreg.EnumValue | trusted_official_docs | CPython Docs | | An integer that identifies the type of the | | | value data (see table in docs for | | | :meth:`SetValueEx`) | +-------+--------------------------------------------+
.. audit-event:: winreg.EnumValue key,index winreg.EnumValue | | An integer that identifies the type of the | | | value data (see table in docs for | | | :meth:`SetValueEx`) | +-------+--------------------------------------------+
.. audit-event:: winreg.EnumValue key,index winreg.EnumValue | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0522134-54e1-44a3-9201-74ff31e47da5 | CPython Docs | file://datasets/cpython/Doc/library/winreg.rst | unknown | 41ba3f22-42cc-4c55-a867-dbdfc987c23a | 18,667 | supabase-export-v2 | f14d45e7aacc21ca | the name of one subkey each time it is called. It is typically called repeatedly, until an :exc:`OSError` exception is raised, indicating no more values.
The result is a tuple of 3 items: | trusted_official_docs | CPython Docs | the name of one subkey each time it is called. It is typically called repeatedly, until an :exc:`OSError` exception is raised, indicating no more values.
The result is a tuple of 3 items: | the name of one subkey each time it is called. It is typically called repeatedly, until an :exc:`OSError` exception is raised, indicating no more values.
The result is a tuple of 3 items: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f5664ee7-f26c-46d4-be8e-5e92975ae662 | CPython Docs | file://datasets/cpython/Doc/library/winreg.rst | unknown | 41ba3f22-42cc-4c55-a867-dbdfc987c23a | 18,746 | supabase-export-v2 | d5e7c98b60c7efc1 | also set additional value and type information for the specified key. The key identified by the key parameter must have been opened with :const:`KEY_SET_VALUE` access.
To open the key, use the :func:`CreateKey` or :func:`OpenKey` methods. | trusted_official_docs | CPython Docs | also set additional value and type information for the specified key. The key identified by the key parameter must have been opened with :const:`KEY_SET_VALUE` access.
To open the key, use the :func:`CreateKey` or :func:`OpenKey` methods. | also set additional value and type information for the specified key. The key identified by the key parameter must have been opened with :const:`KEY_SET_VALUE` access.
To open the key, use the :func:`CreateKey` or :func:`OpenKey` methods. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02fbf7ad-d937-45ce-909e-e77471dda5c7 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,880 | supabase-export-v2 | b908a380da85818f | .. function:: digit(chr, default=None, /)
Returns the digit value assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised:: | trusted_official_docs | CPython Docs | .. function:: digit(chr, default=None, /)
Returns the digit value assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised:: | .. function:: digit(chr, default=None, /)
Returns the digit value assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0303b5cc-a2fc-4a0f-bf29-2f3d046dbb8d | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,928 | supabase-export-v2 | 8911409727d4f5fd | decomposition, that is, replace all compatibility characters with their equivalents. The normal form KC (NFKC) first applies the compatibility decomposition, followed by the canonical composition.
Even if two unicode strings are normalized and look the same to
a human reader, if one has combining characters and the ot... | trusted_official_docs | CPython Docs | decomposition, that is, replace all compatibility characters with their equivalents. The normal form KC (NFKC) first applies the compatibility decomposition, followed by the canonical composition.
Even if two unicode strings are normalized and look the same to
a human reader, if one has combining characters and the ot... | decomposition, that is, replace all compatibility characters with their equivalents. The normal form KC (NFKC) first applies the compatibility decomposition, followed by the canonical composition.
Even if two unicode strings are normalized and look the same to
a human reader, if one has combining characters and the ot... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07828091-7840-4494-82c8-ee6302750d15 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,925 | supabase-export-v2 | 3058e07c8fcb2027 | example, the character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 (COMBINING CEDILLA).
For each character, there are two normal forms: normal form C and normal form D. Normal form D (NFD) is also known as canonical decomposition, and transla... | trusted_official_docs | CPython Docs | example, the character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 (COMBINING CEDILLA).
For each character, there are two normal forms: normal form C and normal form D. Normal form D (NFD) is also known as canonical decomposition, and transla... | example, the character U+00C7 (LATIN CAPITAL LETTER C WITH CEDILLA) can also be expressed as the sequence U+0043 (LATIN CAPITAL LETTER C) U+0327 (COMBINING CEDILLA).
For each character, there are two normal forms: normal form C and normal form D. Normal form D (NFD) is also known as canonical decomposition, and transla... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0af5163d-56ac-43e4-bcdb-3f6b3d8ee138 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,883 | supabase-export-v2 | 135a68b6794be97e | .. function:: numeric(chr, default=None, /)
Returns the numeric value assigned to the character *chr* as float. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised:: | trusted_official_docs | CPython Docs | .. function:: numeric(chr, default=None, /)
Returns the numeric value assigned to the character *chr* as float. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised:: | .. function:: numeric(chr, default=None, /)
Returns the numeric value assigned to the character *chr* as float. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0d0a1740-26fa-48b8-bfc4-d698873a533f | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,904 | supabase-export-v2 | 918f5398c2af9dfc | *chr* is a valid identifier start per the `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_, that is, it has the ``XID_Start`` property. Return ``False`` otherwise. For example::
>>> unicodedata.isxidstart('S')
True
>>> unicodedata.isxidstart('0')
False | trusted_official_docs | CPython Docs | *chr* is a valid identifier start per the `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_, that is, it has the ``XID_Start`` property. Return ``False`` otherwise. For example::
>>> unicodedata.isxidstart('S')
True
>>> unicodedata.isxidstart('0')
False | *chr* is a valid identifier start per the `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_, that is, it has the ``XID_Start`` property. Return ``False`` otherwise. For example::
>>> unicodedata.isxidstart('S')
True
>>> unicodedata.isxidstart('0')
False | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
10e4236d-1181-4e1a-8e59-9f586aaf753c | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,894 | supabase-export-v2 | db6b1c71082a2448 | .. function:: east_asian_width(chr, /)
Returns the east asian width assigned to the character *chr* as
string. For a list of widths and or more information, see the
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_. | trusted_official_docs | CPython Docs | .. function:: east_asian_width(chr, /)
Returns the east asian width assigned to the character *chr* as
string. For a list of widths and or more information, see the
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_. | .. function:: east_asian_width(chr, /)
Returns the east asian width assigned to the character *chr* as
string. For a list of widths and or more information, see the
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
11a76e74-ecbc-445d-a4aa-023ce0c7bf6e | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,869 | supabase-export-v2 | 6e5d01e6ed12c41a | up character by name. If a character with the given name is found, return the corresponding character. If not found, :exc:`KeyError` is raised. For example::
>>> unicodedata.lookup('LEFT CURLY BRACKET')
'{' | trusted_official_docs | CPython Docs | up character by name. If a character with the given name is found, return the corresponding character. If not found, :exc:`KeyError` is raised. For example::
>>> unicodedata.lookup('LEFT CURLY BRACKET')
'{' | up character by name. If a character with the given name is found, return the corresponding character. If not found, :exc:`KeyError` is raised. For example::
>>> unicodedata.lookup('LEFT CURLY BRACKET')
'{' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
174ba98c-34fe-4441-b043-6d35ed01b5ff | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,926 | supabase-export-v2 | a2e4fb42fa486390 | as canonical decomposition, and translates each character into its decomposed form. Normal form C (NFC) first applies a canonical decomposition, then composes pre-combined characters again.
In addition to these two forms, there are two additional normal forms based on
compatibility equivalence. In Unicode, certain cha... | trusted_official_docs | CPython Docs | as canonical decomposition, and translates each character into its decomposed form. Normal form C (NFC) first applies a canonical decomposition, then composes pre-combined characters again.
In addition to these two forms, there are two additional normal forms based on
compatibility equivalence. In Unicode, certain cha... | as canonical decomposition, and translates each character into its decomposed form. Normal form C (NFC) first applies a canonical decomposition, then composes pre-combined characters again.
In addition to these two forms, there are two additional normal forms based on
compatibility equivalence. In Unicode, certain cha... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
194b9405-d827-4547-8b8d-56a368821037 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,911 | supabase-export-v2 | b04476e5bc40486f | .. function:: decomposition(chr, /)
Returns the character decomposition mapping assigned to the character
*chr* as string. An empty string is returned in case no such mapping is
defined. For example:: | trusted_official_docs | CPython Docs | .. function:: decomposition(chr, /)
Returns the character decomposition mapping assigned to the character
*chr* as string. An empty string is returned in case no such mapping is
defined. For example:: | .. function:: decomposition(chr, /)
Returns the character decomposition mapping assigned to the character
*chr* as string. An empty string is returned in case no such mapping is
defined. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19a97426-3bae-46dc-8b4f-ab1cf6f35b47 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,875 | supabase-export-v2 | ba8199dfca480149 | assigned to the character *chr* as a string. If no name is defined, *default* is returned, or, if not given, :exc:`ValueError` is raised. For example::
>>> unicodedata.name('½')
'VULGAR FRACTION ONE HALF'
>>> unicodedata.name('\uFFFF', 'fallback')
'fallback' | trusted_official_docs | CPython Docs | assigned to the character *chr* as a string. If no name is defined, *default* is returned, or, if not given, :exc:`ValueError` is raised. For example::
>>> unicodedata.name('½')
'VULGAR FRACTION ONE HALF'
>>> unicodedata.name('\uFFFF', 'fallback')
'fallback' | assigned to the character *chr* as a string. If no name is defined, *default* is returned, or, if not given, :exc:`ValueError` is raised. For example::
>>> unicodedata.name('½')
'VULGAR FRACTION ONE HALF'
>>> unicodedata.name('\uFFFF', 'fallback')
'fallback' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19cb7205-3257-4786-871f-02d4d210a21d | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,934 | supabase-export-v2 | 418656bd6380df7a | Returns an iterator to iterate over grapheme clusters. With optional *start*, iteration begins at that position. With optional *end*, iteration stops at that position.
Converting an emitted item to string returns a substring corresponding to
the grapheme cluster. Its ``start`` and ``end`` attributes denote the start a... | trusted_official_docs | CPython Docs | Returns an iterator to iterate over grapheme clusters. With optional *start*, iteration begins at that position. With optional *end*, iteration stops at that position.
Converting an emitted item to string returns a substring corresponding to
the grapheme cluster. Its ``start`` and ``end`` attributes denote the start a... | Returns an iterator to iterate over grapheme clusters. With optional *start*, iteration begins at that position. With optional *end*, iteration stops at that position.
Converting an emitted item to string returns a substring corresponding to
the grapheme cluster. Its ``start`` and ``end`` attributes denote the start a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
36567bbf-f80e-4ad2-855b-71aead5af0dd | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,892 | supabase-export-v2 | 4cf9dd279532d052 | .. function:: combining(chr, /)
Returns the canonical combining class assigned to the character *chr*
as integer. Returns ``0`` if no combining class is defined. See the `Canonical Combining Class Values section of the Unicode Character
Database <https://www.unicode.org/reports/tr44/#Canonical_Combining_Class_Values>... | trusted_official_docs | CPython Docs | .. function:: combining(chr, /)
Returns the canonical combining class assigned to the character *chr*
as integer. Returns ``0`` if no combining class is defined. See the `Canonical Combining Class Values section of the Unicode Character
Database <https://www.unicode.org/reports/tr44/#Canonical_Combining_Class_Values>... | .. function:: combining(chr, /)
Returns the canonical combining class assigned to the character *chr*
as integer. Returns ``0`` if no combining class is defined. See the `Canonical Combining Class Values section of the Unicode Character
Database <https://www.unicode.org/reports/tr44/#Canonical_Combining_Class_Values>... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3e0db387-2314-4460-b6cf-015020f493fd | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,890 | supabase-export-v2 | e2043c734cb55a54 | empty string is returned. See the `Bidirectional Class Values section of the Unicode Character Database <https://www.unicode.org/reports/tr44/#Bidi_Class_Values>`_ documentation for a list of bidirectional codes. For example::
>>> unicodedata.bidirectional('\N{ARABIC-INDIC DIGIT SEVEN}') # 'A'rabic, 'N'umber
'AN' | trusted_official_docs | CPython Docs | empty string is returned. See the `Bidirectional Class Values section of the Unicode Character Database <https://www.unicode.org/reports/tr44/#Bidi_Class_Values>`_ documentation for a list of bidirectional codes. For example::
>>> unicodedata.bidirectional('\N{ARABIC-INDIC DIGIT SEVEN}') # 'A'rabic, 'N'umber
'AN' | empty string is returned. See the `Bidirectional Class Values section of the Unicode Character Database <https://www.unicode.org/reports/tr44/#Bidi_Class_Values>`_ documentation for a list of bidirectional codes. For example::
>>> unicodedata.bidirectional('\N{ARABIC-INDIC DIGIT SEVEN}') # 'A'rabic, 'N'umber
'AN' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
43d1b85b-d4b2-4998-af48-10fead41b816 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,868 | supabase-export-v2 | b5df3debc52e8276 | .. function:: lookup(name, /)
Look up character by name. If a character with the given name is found, return
the corresponding character. If not found, :exc:`KeyError` is raised. For example:: | trusted_official_docs | CPython Docs | .. function:: lookup(name, /)
Look up character by name. If a character with the given name is found, return
the corresponding character. If not found, :exc:`KeyError` is raised. For example:: | .. function:: lookup(name, /)
Look up character by name. If a character with the given name is found, return
the corresponding character. If not found, :exc:`KeyError` is raised. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4bf5632b-71f7-4b23-bfed-a5f9e5ab6ae4 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,889 | supabase-export-v2 | cb637f9580b51d54 | .. function:: bidirectional(chr, /)
Returns the bidirectional class assigned to the character *chr* as
string. If no such value is defined, an empty string is returned. See the `Bidirectional Class Values section of the Unicode Character
Database <https://www.unicode.org/reports/tr44/#Bidi_Class_Values>`_
documentat... | trusted_official_docs | CPython Docs | .. function:: bidirectional(chr, /)
Returns the bidirectional class assigned to the character *chr* as
string. If no such value is defined, an empty string is returned. See the `Bidirectional Class Values section of the Unicode Character
Database <https://www.unicode.org/reports/tr44/#Bidi_Class_Values>`_
documentat... | .. function:: bidirectional(chr, /)
Returns the bidirectional class assigned to the character *chr* as
string. If no such value is defined, an empty string is returned. See the `Bidirectional Class Values section of the Unicode Character
Database <https://www.unicode.org/reports/tr44/#Bidi_Class_Values>`_
documentat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4ccfc866-8486-4a22-9eb7-c5ad6442e72d | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,886 | supabase-export-v2 | 4b622d5cc8df40ed | .. function:: category(chr, /)
Returns the general category assigned to the character *chr* as
string. General category names consist of two letters. See the `General Category Values section of the Unicode Character
Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_
for a list o... | trusted_official_docs | CPython Docs | .. function:: category(chr, /)
Returns the general category assigned to the character *chr* as
string. General category names consist of two letters. See the `General Category Values section of the Unicode Character
Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_
for a list o... | .. function:: category(chr, /)
Returns the general category assigned to the character *chr* as
string. General category names consist of two letters. See the `General Category Values section of the Unicode Character
Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_
for a list o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6447e350-0411-4645-9c8f-84e5fd36fdb7 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,877 | supabase-export-v2 | 9df956f8e046e472 | .. function:: decimal(chr, default=None, /)
Returns the decimal value assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised. For example:: | trusted_official_docs | CPython Docs | .. function:: decimal(chr, default=None, /)
Returns the decimal value assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised. For example:: | .. function:: decimal(chr, default=None, /)
Returns the decimal value assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given,
:exc:`ValueError` is raised. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71b1b094-5ce3-48cf-83d5-c746085070f6 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,935 | supabase-export-v2 | 81dad2dc437f71b9 | item to string returns a substring corresponding to the grapheme cluster. Its ``start`` and ``end`` attributes denote the start and end of the grapheme cluster.
It uses extended grapheme cluster rules defined by Unicode
Standard Annex #29, `"Unicode Text Segmentation"
<https://www.unicode.org/reports/tr29/>`_. | trusted_official_docs | CPython Docs | item to string returns a substring corresponding to the grapheme cluster. Its ``start`` and ``end`` attributes denote the start and end of the grapheme cluster.
It uses extended grapheme cluster rules defined by Unicode
Standard Annex #29, `"Unicode Text Segmentation"
<https://www.unicode.org/reports/tr29/>`_. | item to string returns a substring corresponding to the grapheme cluster. Its ``start`` and ``end`` attributes denote the start and end of the grapheme cluster.
It uses extended grapheme cluster rules defined by Unicode
Standard Annex #29, `"Unicode Text Segmentation"
<https://www.unicode.org/reports/tr29/>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7715a5f6-016b-4d3a-9477-4929cf4e484e | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,874 | supabase-export-v2 | 2cbba9e474b0a859 | .. function:: name(chr, default=None, /)
Returns the name assigned to the character *chr* as a string. If no
name is defined, *default* is returned, or, if not given, :exc:`ValueError` is
raised. For example:: | trusted_official_docs | CPython Docs | .. function:: name(chr, default=None, /)
Returns the name assigned to the character *chr* as a string. If no
name is defined, *default* is returned, or, if not given, :exc:`ValueError` is
raised. For example:: | .. function:: name(chr, default=None, /)
Returns the name assigned to the character *chr* as a string. If no
name is defined, *default* is returned, or, if not given, :exc:`ValueError` is
raised. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7e4cc478-8d52-4612-8964-913a67c41022 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,903 | supabase-export-v2 | 0def5a6017ed642c | .. function:: isxidstart(chr, /)
Return ``True`` if *chr* is a valid identifier start per the
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_,
that is, it has the ``XID_Start`` property. Return ``False`` otherwise. For example:: | trusted_official_docs | CPython Docs | .. function:: isxidstart(chr, /)
Return ``True`` if *chr* is a valid identifier start per the
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_,
that is, it has the ``XID_Start`` property. Return ``False`` otherwise. For example:: | .. function:: isxidstart(chr, /)
Return ``True`` if *chr* is a valid identifier start per the
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_,
that is, it has the ``XID_Start`` property. Return ``False`` otherwise. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85677fcd-6c5e-4233-9786-53d6bb83c550 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,878 | supabase-export-v2 | fa30982261aa3158 | assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given, :exc:`ValueError` is raised. For example::
>>> unicodedata.decimal('\N{ARABIC-INDIC DIGIT NINE}')
9
>>> unicodedata.decimal('\N{SUPERSCRIPT NINE}', -1)
-1 | trusted_official_docs | CPython Docs | assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given, :exc:`ValueError` is raised. For example::
>>> unicodedata.decimal('\N{ARABIC-INDIC DIGIT NINE}')
9
>>> unicodedata.decimal('\N{SUPERSCRIPT NINE}', -1)
-1 | assigned to the character *chr* as integer. If no such value is defined, *default* is returned, or, if not given, :exc:`ValueError` is raised. For example::
>>> unicodedata.decimal('\N{ARABIC-INDIC DIGIT NINE}')
9
>>> unicodedata.decimal('\N{SUPERSCRIPT NINE}', -1)
-1 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8a8953ad-a4da-4537-9f4f-0fe9742444c1 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,900 | supabase-export-v2 | 1dce6876830ad505 | .. function:: mirrored(chr, /)
Returns the mirrored property assigned to the character *chr* as
integer. Returns ``1`` if the character has been identified as a "mirrored"
character in bidirectional text, ``0`` otherwise. For example:: | trusted_official_docs | CPython Docs | .. function:: mirrored(chr, /)
Returns the mirrored property assigned to the character *chr* as
integer. Returns ``1`` if the character has been identified as a "mirrored"
character in bidirectional text, ``0`` otherwise. For example:: | .. function:: mirrored(chr, /)
Returns the mirrored property assigned to the character *chr* as
integer. Returns ``1`` if the character has been identified as a "mirrored"
character in bidirectional text, ``0`` otherwise. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a2839d67-ac09-4fb2-91ef-0d970290563a | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,887 | supabase-export-v2 | 3c11bc49a4a02d60 | consist of two letters. See the `General Category Values section of the Unicode Character Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_ for a list of category codes. For example::
>>> unicodedata.category('A') # 'L'etter, 'u'ppercase
'Lu' | trusted_official_docs | CPython Docs | consist of two letters. See the `General Category Values section of the Unicode Character Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_ for a list of category codes. For example::
>>> unicodedata.category('A') # 'L'etter, 'u'ppercase
'Lu' | consist of two letters. See the `General Category Values section of the Unicode Character Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_ for a list of category codes. For example::
>>> unicodedata.category('A') # 'L'etter, 'u'ppercase
'Lu' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a52190c2-bd2f-4701-827f-b132f784476e | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,863 | supabase-export-v2 | 60865a9de71ed936 | --------------
This module provides access to the Unicode Character Database (UCD) which
defines character properties for all Unicode characters. The data contained in
this database is compiled from the `UCD version 17.0.0
<https://www.unicode.org/Public/17.0.0/ucd>`_. | trusted_official_docs | CPython Docs | --------------
This module provides access to the Unicode Character Database (UCD) which
defines character properties for all Unicode characters. The data contained in
this database is compiled from the `UCD version 17.0.0
<https://www.unicode.org/Public/17.0.0/ucd>`_. | --------------
This module provides access to the Unicode Character Database (UCD) which
defines character properties for all Unicode characters. The data contained in
this database is compiled from the `UCD version 17.0.0
<https://www.unicode.org/Public/17.0.0/ucd>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bad0fc46-b957-44e9-877a-7c83c58ed679 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,927 | supabase-export-v2 | 9dd170abc0aa2fb3 | really the same thing as U+0049 (LATIN CAPITAL LETTER I). However, it is supported in Unicode for compatibility with existing character sets (for example, gb2312).
The normal form KD (NFKD) will apply the compatibility decomposition, that is,
replace all compatibility characters with their equivalents. The normal form... | trusted_official_docs | CPython Docs | really the same thing as U+0049 (LATIN CAPITAL LETTER I). However, it is supported in Unicode for compatibility with existing character sets (for example, gb2312).
The normal form KD (NFKD) will apply the compatibility decomposition, that is,
replace all compatibility characters with their equivalents. The normal form... | really the same thing as U+0049 (LATIN CAPITAL LETTER I). However, it is supported in Unicode for compatibility with existing character sets (for example, gb2312).
The normal form KD (NFKD) will apply the compatibility decomposition, that is,
replace all compatibility characters with their equivalents. The normal form... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5568e7b-7f6c-44b4-93ce-224835a0dfd8 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,908 | supabase-export-v2 | e2f30ce642338e04 | *chr* is a valid identifier character per the `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_, that is, it has the ``XID_Continue`` property. Return ``False`` otherwise. For example::
>>> unicodedata.isxidcontinue('S')
True
>>> unicodedata.isxidcontinue(' ')
False | trusted_official_docs | CPython Docs | *chr* is a valid identifier character per the `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_, that is, it has the ``XID_Continue`` property. Return ``False`` otherwise. For example::
>>> unicodedata.isxidcontinue('S')
True
>>> unicodedata.isxidcontinue(' ')
False | *chr* is a valid identifier character per the `Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_, that is, it has the ``XID_Continue`` property. Return ``False`` otherwise. For example::
>>> unicodedata.isxidcontinue('S')
True
>>> unicodedata.isxidcontinue(' ')
False | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c72c18be-ded2-4dee-86a2-c0fa50ff88c0 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,907 | supabase-export-v2 | e4b76118b092a353 | .. function:: isxidcontinue(chr, /)
Return ``True`` if *chr* is a valid identifier character per the
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_,
that is, it has the ``XID_Continue`` property. Return ``False`` otherwise. For example:: | trusted_official_docs | CPython Docs | .. function:: isxidcontinue(chr, /)
Return ``True`` if *chr* is a valid identifier character per the
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_,
that is, it has the ``XID_Continue`` property. Return ``False`` otherwise. For example:: | .. function:: isxidcontinue(chr, /)
Return ``True`` if *chr* is a valid identifier character per the
`Unicode Standard Annex #31 <https://www.unicode.org/reports/tr31/>`_,
that is, it has the ``XID_Continue`` property. Return ``False`` otherwise. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d83a857b-de99-4644-ab5e-744846f3c5b8 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,864 | supabase-export-v2 | 07c741f1bf59588a | Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the `UCD version 17.0.0 <https://www.unicode.org/Public/17.0.0/ucd>`_.
The module uses the same names and symbols as defined by Unicode
Standard Annex #44, `"Unicode Character Dat... | trusted_official_docs | CPython Docs | Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the `UCD version 17.0.0 <https://www.unicode.org/Public/17.0.0/ucd>`_.
The module uses the same names and symbols as defined by Unicode
Standard Annex #44, `"Unicode Character Dat... | Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the `UCD version 17.0.0 <https://www.unicode.org/Public/17.0.0/ucd>`_.
The module uses the same names and symbols as defined by Unicode
Standard Annex #44, `"Unicode Character Dat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e1285bf8-dc2e-473a-9d69-9a55367682e1 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,924 | supabase-export-v2 | f841a4bae296192f | Return the normal form *form* for the Unicode string *unistr*. Valid values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
The Unicode standard defines various normalization forms of a Unicode string,
based on the definition of canonical equivalence and compatibility equivalence. In Unicode, several characters can b... | trusted_official_docs | CPython Docs | Return the normal form *form* for the Unicode string *unistr*. Valid values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
The Unicode standard defines various normalization forms of a Unicode string,
based on the definition of canonical equivalence and compatibility equivalence. In Unicode, several characters can b... | Return the normal form *form* for the Unicode string *unistr*. Valid values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
The Unicode standard defines various normalization forms of a Unicode string,
based on the definition of canonical equivalence and compatibility equivalence. In Unicode, several characters can b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e3ffb4b6-c722-4022-8ff6-161e191e2554 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,933 | supabase-export-v2 | 08c794d84e937e4d | .. function:: iter_graphemes(unistr, start=0, end=sys.maxsize, /)
Returns an iterator to iterate over grapheme clusters. With optional *start*, iteration begins at that position. With optional *end*, iteration stops at that position. | trusted_official_docs | CPython Docs | .. function:: iter_graphemes(unistr, start=0, end=sys.maxsize, /)
Returns an iterator to iterate over grapheme clusters. With optional *start*, iteration begins at that position. With optional *end*, iteration stops at that position. | .. function:: iter_graphemes(unistr, start=0, end=sys.maxsize, /)
Returns an iterator to iterate over grapheme clusters. With optional *start*, iteration begins at that position. With optional *end*, iteration stops at that position. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb04b1f3-e40c-4592-8c9c-0154452920dc | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,941 | supabase-export-v2 | d0bbeb51d269f823 | .. data:: ucd_3_2_0
This is an object that has most of the methods of the entire module, but uses the
Unicode database version 3.2 instead, for applications that require this
specific version of the Unicode database (such as IDNA). | trusted_official_docs | CPython Docs | .. data:: ucd_3_2_0
This is an object that has most of the methods of the entire module, but uses the
Unicode database version 3.2 instead, for applications that require this
specific version of the Unicode database (such as IDNA). | .. data:: ucd_3_2_0
This is an object that has most of the methods of the entire module, but uses the
Unicode database version 3.2 instead, for applications that require this
specific version of the Unicode database (such as IDNA). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ee5bbf5b-6db5-460c-92c6-e3be4c9b85f1 | CPython Docs | file://datasets/cpython/Doc/library/unicodedata.rst | unknown | 9174d7bb-3eb0-4ab2-9e71-89a6e1ac6e1f | 18,929 | supabase-export-v2 | 2e94750b217c1cc5 | strings are normalized and look the same to a human reader, if one has combining characters and the other doesn't, they may not compare equal.
.. function:: is_normalized(form, unistr, /) | trusted_official_docs | CPython Docs | strings are normalized and look the same to a human reader, if one has combining characters and the other doesn't, they may not compare equal.
.. function:: is_normalized(form, unistr, /) | strings are normalized and look the same to a human reader, if one has combining characters and the other doesn't, they may not compare equal.
.. function:: is_normalized(form, unistr, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19cd2ab6-7de0-4761-bdc3-d26f7694128f | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,956 | supabase-export-v2 | f124b97c34a98d40 | *subtype* is optional; if omitted, then subpart MIME type matching is done only with the main type. *maintype* is optional too; it defaults to :mimetype:`text`.
Thus, by default :func:`typed_subpart_iterator` returns each subpart that has a
MIME type of :mimetype:`text/\*`. | trusted_official_docs | CPython Docs | *subtype* is optional; if omitted, then subpart MIME type matching is done only with the main type. *maintype* is optional too; it defaults to :mimetype:`text`.
Thus, by default :func:`typed_subpart_iterator` returns each subpart that has a
MIME type of :mimetype:`text/\*`. | *subtype* is optional; if omitted, then subpart MIME type matching is done only with the main type. *maintype* is optional too; it defaults to :mimetype:`text`.
Thus, by default :func:`typed_subpart_iterator` returns each subpart that has a
MIME type of :mimetype:`text/\*`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
460b1bd0-6ddb-4a11-a646-d372976179e7 | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,958 | supabase-export-v2 | 399c6b3c318fc83a | The following function has been added as a useful debugging tool. It should *not* be considered part of the supported public interface for the package.
.. function:: _structure(msg, fp=None, level=0, include_default=False) | trusted_official_docs | CPython Docs | The following function has been added as a useful debugging tool. It should *not* be considered part of the supported public interface for the package.
.. function:: _structure(msg, fp=None, level=0, include_default=False) | The following function has been added as a useful debugging tool. It should *not* be considered part of the supported public interface for the package.
.. function:: _structure(msg, fp=None, level=0, include_default=False) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4b2dff6d-b3e8-426c-b6ac-0ec78123bd48 | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,951 | supabase-export-v2 | 29839fe6ce473f33 | .. function:: body_line_iterator(msg, decode=False)
This iterates over all the payloads in all the subparts of *msg*, returning the
string payloads line-by-line. It skips over all the subpart headers, and it
skips over any subpart with a payload that isn't a Python string. This is
somewhat equivalent to reading the ... | trusted_official_docs | CPython Docs | .. function:: body_line_iterator(msg, decode=False)
This iterates over all the payloads in all the subparts of *msg*, returning the
string payloads line-by-line. It skips over all the subpart headers, and it
skips over any subpart with a payload that isn't a Python string. This is
somewhat equivalent to reading the ... | .. function:: body_line_iterator(msg, decode=False)
This iterates over all the payloads in all the subparts of *msg*, returning the
string payloads line-by-line. It skips over all the subpart headers, and it
skips over any subpart with a payload that isn't a Python string. This is
somewhat equivalent to reading the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5e5e723d-c01f-4f47-b1b4-881f385a66d1 | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,965 | supabase-export-v2 | f5c2d85d959d8512 | somefile.close()
Optional *fp* is a file-like object to print the output to. It must be
suitable for Python's :func:`print` function. *level* is used internally. *include_default*, if true, prints the default type as well. | trusted_official_docs | CPython Docs | somefile.close()
Optional *fp* is a file-like object to print the output to. It must be
suitable for Python's :func:`print` function. *level* is used internally. *include_default*, if true, prints the default type as well. | somefile.close()
Optional *fp* is a file-like object to print the output to. It must be
suitable for Python's :func:`print` function. *level* is used internally. *include_default*, if true, prints the default type as well. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7a63615d-aa2d-4b58-9b65-bb603d08ff2d | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,957 | supabase-export-v2 | efd93b03d16bc495 | Thus, by default :func:`typed_subpart_iterator` returns each subpart that has a MIME type of :mimetype:`text/\*`.
The following function has been added as a useful debugging tool. It should
*not* be considered part of the supported public interface for the package. | trusted_official_docs | CPython Docs | Thus, by default :func:`typed_subpart_iterator` returns each subpart that has a MIME type of :mimetype:`text/\*`.
The following function has been added as a useful debugging tool. It should
*not* be considered part of the supported public interface for the package. | Thus, by default :func:`typed_subpart_iterator` returns each subpart that has a MIME type of :mimetype:`text/\*`.
The following function has been added as a useful debugging tool. It should
*not* be considered part of the supported public interface for the package. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7e245699-023d-4622-bb3f-fef6284c16ea | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,952 | supabase-export-v2 | 1b39209d6b985f0d | string. This is somewhat equivalent to reading the flat text representation of the message from a file using :meth:`~io.TextIOBase.readline`, skipping over all the intervening headers.
Optional *decode* is passed through to :meth:`Message.get_payload
<email.message.Message.get_payload>`. | trusted_official_docs | CPython Docs | string. This is somewhat equivalent to reading the flat text representation of the message from a file using :meth:`~io.TextIOBase.readline`, skipping over all the intervening headers.
Optional *decode* is passed through to :meth:`Message.get_payload
<email.message.Message.get_payload>`. | string. This is somewhat equivalent to reading the flat text representation of the message from a file using :meth:`~io.TextIOBase.readline`, skipping over all the intervening headers.
Optional *decode* is passed through to :meth:`Message.get_payload
<email.message.Message.get_payload>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb89d64d-d256-43f5-9af5-73c4234d88a9 | CPython Docs | file://datasets/cpython/Doc/library/email.iterators.rst | unknown | db190078-3538-4c30-a775-012121a5ca72 | 18,955 | supabase-export-v2 | 3ec7a051a2a5b7a9 | This iterates over all the subparts of *msg*, returning only those subparts that match the MIME type specified by *maintype* and *subtype*.
Note that *subtype* is optional; if omitted, then subpart MIME type matching is
done only with the main type. *maintype* is optional too; it defaults to
:mimetype:`text`. | trusted_official_docs | CPython Docs | This iterates over all the subparts of *msg*, returning only those subparts that match the MIME type specified by *maintype* and *subtype*.
Note that *subtype* is optional; if omitted, then subpart MIME type matching is
done only with the main type. *maintype* is optional too; it defaults to
:mimetype:`text`. | This iterates over all the subparts of *msg*, returning only those subparts that match the MIME type specified by *maintype* and *subtype*.
Note that *subtype* is optional; if omitted, then subpart MIME type matching is
done only with the main type. *maintype* is optional too; it defaults to
:mimetype:`text`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8ad1e098-2ccd-48f1-a524-4fba8c2f9a3b | CPython Docs | file://datasets/cpython/Doc/library/concurrency.rst | unknown | 384a9ca7-47a2-472c-bb2a-ceee0657e742 | 18,967 | supabase-export-v2 | 5b1b27222c949316 | ******************** Concurrent Execution ********************
The modules described in this chapter provide support for concurrent
execution of code. The appropriate choice of tool will depend on the
task to be executed (CPU bound vs IO bound) and preferred style of
development (event driven cooperative multitasking v... | trusted_official_docs | CPython Docs | ******************** Concurrent Execution ********************
The modules described in this chapter provide support for concurrent
execution of code. The appropriate choice of tool will depend on the
task to be executed (CPU bound vs IO bound) and preferred style of
development (event driven cooperative multitasking v... | ******************** Concurrent Execution ********************
The modules described in this chapter provide support for concurrent
execution of code. The appropriate choice of tool will depend on the
task to be executed (CPU bound vs IO bound) and preferred style of
development (event driven cooperative multitasking v... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05e6747d-e205-4586-88b6-78be7b08f340 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,156 | supabase-export-v2 | dc4c93574401229d | `WHATWG`_ - URL Living standard Working Group for the URL Standard that defines URLs, domains, IP addresses, the application/x-www-form-urlencoded format, and their API.
:rfc:`3986` - Uniform Resource Identifiers
This is the current standard (STD66). Any changes to urllib.parse module
should conform to this. Certain ... | trusted_official_docs | CPython Docs | `WHATWG`_ - URL Living standard Working Group for the URL Standard that defines URLs, domains, IP addresses, the application/x-www-form-urlencoded format, and their API.
:rfc:`3986` - Uniform Resource Identifiers
This is the current standard (STD66). Any changes to urllib.parse module
should conform to this. Certain ... | `WHATWG`_ - URL Living standard Working Group for the URL Standard that defines URLs, domains, IP addresses, the application/x-www-form-urlencoded format, and their API.
:rfc:`3986` - Uniform Resource Identifiers
This is the current standard (STD66). Any changes to urllib.parse module
should conform to this. Certain ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07447460-2819-482d-98ba-6438e2f4aeba | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,131 | supabase-export-v2 | 1a6b3f1425c92479 | with their single-character equivalent. The optional *encoding* and *errors* parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the :meth:`bytes.decode` method.
*string* may be either a :class:`str` or a :class:`bytes` object. | trusted_official_docs | CPython Docs | with their single-character equivalent. The optional *encoding* and *errors* parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the :meth:`bytes.decode` method.
*string* may be either a :class:`str` or a :class:`bytes` object. | with their single-character equivalent. The optional *encoding* and *errors* parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the :meth:`bytes.decode` method.
*string* may be either a :class:`str` or a :class:`bytes` object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07cd213c-c7cb-47d6-b556-0281f306987a | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,048 | supabase-export-v2 | c78621b20602aa91 | Combine the elements of a tuple as returned by :func:`urlparse` into a complete URL as a string. The *parts* argument can be any six-item iterable.
This may result in a slightly different, but equivalent URL, if the
URL that was parsed originally had unnecessary delimiters (for example,
a ``?`` with an empty query; t... | trusted_official_docs | CPython Docs | Combine the elements of a tuple as returned by :func:`urlparse` into a complete URL as a string. The *parts* argument can be any six-item iterable.
This may result in a slightly different, but equivalent URL, if the
URL that was parsed originally had unnecessary delimiters (for example,
a ``?`` with an empty query; t... | Combine the elements of a tuple as returned by :func:`urlparse` into a complete URL as a string. The *parts* argument can be any six-item iterable.
This may result in a slightly different, but equivalent URL, if the
URL that was parsed originally had unnecessary delimiters (for example,
a ``?`` with an empty query; t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0bae592b-bdba-4ee4-a4bd-21e79b8e12a4 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,093 | supabase-export-v2 | 185ebd324a080a96 | .. method:: urllib.parse.SplitResult.geturl()
Return the re-combined version of the original URL as a string. This may
differ from the original URL in that the scheme may be normalized to lower
case and empty components may be dropped. Specifically, empty parameters,
queries, and fragment identifiers will be removed... | trusted_official_docs | CPython Docs | .. method:: urllib.parse.SplitResult.geturl()
Return the re-combined version of the original URL as a string. This may
differ from the original URL in that the scheme may be normalized to lower
case and empty components may be dropped. Specifically, empty parameters,
queries, and fragment identifiers will be removed... | .. method:: urllib.parse.SplitResult.geturl()
Return the re-combined version of the original URL as a string. This may
differ from the original URL in that the scheme may be normalized to lower
case and empty components may be dropped. Specifically, empty parameters,
queries, and fragment identifiers will be removed... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0ed2489f-514f-4e9d-a72f-806f2752ac56 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,096 | supabase-export-v2 | 3c53dcc2fc2c05e8 | The result of this method remains unchanged if passed back through the original parsing function:
>>> from urllib.parse import urlsplit
>>> url = 'HTTP://www.Python.org/doc/#'
>>> r1 = urlsplit(url)
>>> r1.geturl()
'http://www.Python.org/doc/'
>>> r2 = urlsplit(r1.geturl())
>>> r2.geturl()
'http://www.Python.org... | trusted_official_docs | CPython Docs | The result of this method remains unchanged if passed back through the original parsing function:
>>> from urllib.parse import urlsplit
>>> url = 'HTTP://www.Python.org/doc/#'
>>> r1 = urlsplit(url)
>>> r1.geturl()
'http://www.Python.org/doc/'
>>> r2 = urlsplit(r1.geturl())
>>> r2.geturl()
'http://www.Python.org... | The result of this method remains unchanged if passed back through the original parsing function:
>>> from urllib.parse import urlsplit
>>> url = 'HTTP://www.Python.org/doc/#'
>>> r1 = urlsplit(url)
>>> r1.geturl()
'http://www.Python.org/doc/'
>>> r2 = urlsplit(r1.geturl())
>>> r2.geturl()
'http://www.Python.org... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
10a04115-23dc-45d3-8577-b60dcfa73c7c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,088 | supabase-export-v2 | 96ac81edeff2ca83 | The URL quoting functions use their own rules when producing or consuming byte sequences as detailed in the documentation of the individual URL quoting functions.
.. versionchanged:: 3.2
URL parsing functions now accept ASCII encoded byte sequences | trusted_official_docs | CPython Docs | The URL quoting functions use their own rules when producing or consuming byte sequences as detailed in the documentation of the individual URL quoting functions.
.. versionchanged:: 3.2
URL parsing functions now accept ASCII encoded byte sequences | The URL quoting functions use their own rules when producing or consuming byte sequences as detailed in the documentation of the individual URL quoting functions.
.. versionchanged:: 3.2
URL parsing functions now accept ASCII encoded byte sequences | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1263ceaf-d6f5-4ffc-8b2b-b87fef8ff36a | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,061 | supabase-export-v2 | 707b419053919f90 | .. warning::
Because an absolute URL may be passed as the ``url`` parameter, it is
generally **not secure** to use ``urljoin`` with an attacker-controlled
``url``. For example in,
``urljoin("https://website.com/users/", username)``, if ``username`` can
contain an absolute URL, the result of ``urljoin`` will be the ... | trusted_official_docs | CPython Docs | .. warning::
Because an absolute URL may be passed as the ``url`` parameter, it is
generally **not secure** to use ``urljoin`` with an attacker-controlled
``url``. For example in,
``urljoin("https://website.com/users/", username)``, if ``username`` can
contain an absolute URL, the result of ``urljoin`` will be the ... | .. warning::
Because an absolute URL may be passed as the ``url`` parameter, it is
generally **not secure** to use ``urljoin`` with an attacker-controlled
``url``. For example in,
``urljoin("https://website.com/users/", username)``, if ``username`` can
contain an absolute URL, the result of ``urljoin`` will be the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
180c172f-304e-4cb1-b5e8-5bc366030deb | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,025 | supabase-export-v2 | bd0d1eb0d2206262 | .. versionchanged:: 3.8 Added *max_num_fields* parameter.
.. versionchanged:: 3.10
Added *separator* parameter with the default value of ``&``. Python
versions earlier than Python 3.10 allowed using both ``;`` and ``&`` as
query parameter separator. This has been changed to allow only a single
separator key, with `... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.8 Added *max_num_fields* parameter.
.. versionchanged:: 3.10
Added *separator* parameter with the default value of ``&``. Python
versions earlier than Python 3.10 allowed using both ``;`` and ``&`` as
query parameter separator. This has been changed to allow only a single
separator key, with `... | .. versionchanged:: 3.8 Added *max_num_fields* parameter.
.. versionchanged:: 3.10
Added *separator* parameter with the default value of ``&``. Python
versions earlier than Python 3.10 allowed using both ``;`` and ``&`` as
query parameter separator. This has been changed to allow only a single
separator key, with `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1961cc0f-9004-4db7-893b-a784065922f4 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,160 | supabase-export-v2 | a5af1b2df8ae8eba | :rfc:`2368` - The mailto URL scheme. Parsing requirements for mailto URL schemes.
:rfc:`1808` - Relative Uniform Resource Locators
This Request For Comments includes the rules for joining an absolute and a
relative URL, including a fair number of "Abnormal Examples" which govern the
treatment of border cases. | trusted_official_docs | CPython Docs | :rfc:`2368` - The mailto URL scheme. Parsing requirements for mailto URL schemes.
:rfc:`1808` - Relative Uniform Resource Locators
This Request For Comments includes the rules for joining an absolute and a
relative URL, including a fair number of "Abnormal Examples" which govern the
treatment of border cases. | :rfc:`2368` - The mailto URL scheme. Parsing requirements for mailto URL schemes.
:rfc:`1808` - Relative Uniform Resource Locators
This Request For Comments includes the rules for joining an absolute and a
relative URL, including a fair number of "Abnormal Examples" which govern the
treatment of border cases. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1b1a4824-8a11-4067-af88-9a299e9b7ca7 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,149 | supabase-export-v2 | 6f5efa87eadb572a | *safe*, *encoding*, and *errors* parameters are passed down to *quote_via* (the *encoding* and *errors* parameters are only passed when a query element is a :class:`str`).
To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are
provided in this module to parse query strings into Python data struct... | trusted_official_docs | CPython Docs | *safe*, *encoding*, and *errors* parameters are passed down to *quote_via* (the *encoding* and *errors* parameters are only passed when a query element is a :class:`str`).
To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are
provided in this module to parse query strings into Python data struct... | *safe*, *encoding*, and *errors* parameters are passed down to *quote_via* (the *encoding* and *errors* parameters are only passed when a query element is a :class:`str`).
To reverse this encoding process, :func:`parse_qs` and :func:`parse_qsl` are
provided in this module to parse query strings into Python data struct... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1cf1ee48-e99f-46e3-a7d6-943aad277712 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,019 | supabase-export-v2 | 1b97ba468abd2164 | is a flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a :exc:`ValueError` exception.
The optional *encoding* and *errors* parameters specify how to decode
percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode... | trusted_official_docs | CPython Docs | is a flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a :exc:`ValueError` exception.
The optional *encoding* and *errors* parameters specify how to decode
percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode... | is a flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a :exc:`ValueError` exception.
The optional *encoding* and *errors* parameters specify how to decode
percent-encoded sequences into Unicode characters, as accepted by the
:meth:`bytes.decode... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1dc51de8-ff96-46b9-ad79-a5ed98dbb44b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,121 | supabase-export-v2 | 8309bfdbc8829aee | to ``'strict'``, meaning unsupported characters raise a :class:`UnicodeEncodeError`. *encoding* and *errors* must not be supplied if *string* is a :class:`bytes`, or a :class:`TypeError` is raised.
Note that ``quote(string, safe, encoding, errors)`` is equivalent to
``quote_from_bytes(string.encode(encoding, errors), ... | trusted_official_docs | CPython Docs | to ``'strict'``, meaning unsupported characters raise a :class:`UnicodeEncodeError`. *encoding* and *errors* must not be supplied if *string* is a :class:`bytes`, or a :class:`TypeError` is raised.
Note that ``quote(string, safe, encoding, errors)`` is equivalent to
``quote_from_bytes(string.encode(encoding, errors), ... | to ``'strict'``, meaning unsupported characters raise a :class:`UnicodeEncodeError`. *encoding* and *errors* must not be supplied if *string* is a :class:`bytes`, or a :class:`TypeError` is raised.
Note that ``quote(string, safe, encoding, errors)`` is equivalent to
``quote_from_bytes(string.encode(encoding, errors), ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1f3133e6-b9db-4400-948b-5f2767a9f153 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,029 | supabase-export-v2 | e9bac53a9cf15a70 | Parse a query string given as a string argument (data of type :mimetype:`application/x-www-form-urlencoded`). Data are returned as a list of name, value pairs.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in percent-encoded queries should be treated as blank strings. A true value... | trusted_official_docs | CPython Docs | Parse a query string given as a string argument (data of type :mimetype:`application/x-www-form-urlencoded`). Data are returned as a list of name, value pairs.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in percent-encoded queries should be treated as blank strings. A true value... | Parse a query string given as a string argument (data of type :mimetype:`application/x-www-form-urlencoded`). Data are returned as a list of name, value pairs.
The optional argument *keep_blank_values* is a flag indicating whether blank
values in percent-encoded queries should be treated as blank strings. A true value... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20648ec5-5bf8-43e2-9fb9-34afdaef5fbd | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,105 | supabase-export-v2 | 5f189a1127ec7a76 | Concrete class for :func:`urlsplit` results containing :class:`str` data. The :meth:`encode` method returns a :class:`SplitResultBytes` instance.
The following classes provide the implementations of the parse results when
operating on :class:`bytes` or :class:`bytearray` objects: | trusted_official_docs | CPython Docs | Concrete class for :func:`urlsplit` results containing :class:`str` data. The :meth:`encode` method returns a :class:`SplitResultBytes` instance.
The following classes provide the implementations of the parse results when
operating on :class:`bytes` or :class:`bytearray` objects: | Concrete class for :func:`urlsplit` results containing :class:`str` data. The :meth:`encode` method returns a :class:`SplitResultBytes` instance.
The following classes provide the implementations of the parse results when
operating on :class:`bytes` or :class:`bytearray` objects: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
246bd9b7-76f5-4167-b0ea-754866a53f05 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,115 | supabase-export-v2 | f9f605e9df9fd35a | URL Quoting -----------
The URL quoting functions focus on taking program data and making it safe
for use as URL components by quoting special characters and appropriately
encoding non-ASCII text. They also support reversing these operations to
recreate the original data from the contents of a URL component if that
tas... | trusted_official_docs | CPython Docs | URL Quoting -----------
The URL quoting functions focus on taking program data and making it safe
for use as URL components by quoting special characters and appropriately
encoding non-ASCII text. They also support reversing these operations to
recreate the original data from the contents of a URL component if that
tas... | URL Quoting -----------
The URL quoting functions focus on taking program data and making it safe
for use as URL components by quoting special characters and appropriately
encoding non-ASCII text. They also support reversing these operations to
recreate the original data from the contents of a URL component if that
tas... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
26943036-9b92-45c6-824e-55bcba41cb45 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,021 | supabase-export-v2 | 2c3898e14eff6487 | optional argument *max_num_fields* is the maximum number of fields to read. If set, then throws a :exc:`ValueError` if there are more than *max_num_fields* fields read.
The optional argument *separator* is the symbol to use for separating the
query arguments. It defaults to ``&``. | trusted_official_docs | CPython Docs | optional argument *max_num_fields* is the maximum number of fields to read. If set, then throws a :exc:`ValueError` if there are more than *max_num_fields* fields read.
The optional argument *separator* is the symbol to use for separating the
query arguments. It defaults to ``&``. | optional argument *max_num_fields* is the maximum number of fields to read. If set, then throws a :exc:`ValueError` if there are more than *max_num_fields* fields read.
The optional argument *separator* is the symbol to use for separating the
query arguments. It defaults to ``&``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2a9e76fd-bf0e-434b-a2e6-f3017c53e28c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,047 | supabase-export-v2 | 406a5a081fc2ed46 | .. function:: urlunparse(parts) urlunparse(parts, *, keep_empty)
Combine the elements of a tuple as returned by :func:`urlparse` into a
complete URL as a string. The *parts* argument can be any six-item
iterable. | trusted_official_docs | CPython Docs | .. function:: urlunparse(parts) urlunparse(parts, *, keep_empty)
Combine the elements of a tuple as returned by :func:`urlparse` into a
complete URL as a string. The *parts* argument can be any six-item
iterable. | .. function:: urlunparse(parts) urlunparse(parts, *, keep_empty)
Combine the elements of a tuple as returned by :func:`urlparse` into a
complete URL as a string. The *parts* argument can be any six-item
iterable. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2dbfde34-2072-41b0-be09-7954015980ca | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,146 | supabase-export-v2 | a5510af29b330555 | used as a *data* for POST operation with the :func:`~urllib.request.urlopen` function, then it should be 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 the *quote_v... | trusted_official_docs | CPython Docs | used as a *data* for POST operation with the :func:`~urllib.request.urlopen` function, then it should be 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 the *quote_v... | used as a *data* for POST operation with the :func:`~urllib.request.urlopen` function, then it should be 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 the *quote_v... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2f514e43-a2aa-4367-992b-a7d39d6d729d | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,148 | supabase-export-v2 | 2c72af8d5a2c978b | of the value sequence for the key. The order of parameters in the encoded string will match the order of parameter tuples in the sequence.
The *safe*, *encoding*, and *errors* parameters are passed down to
*quote_via* (the *encoding* and *errors* parameters are only passed
when a query element is a :class:`str`). | trusted_official_docs | CPython Docs | of the value sequence for the key. The order of parameters in the encoded string will match the order of parameter tuples in the sequence.
The *safe*, *encoding*, and *errors* parameters are passed down to
*quote_via* (the *encoding* and *errors* parameters are only passed
when a query element is a :class:`str`). | of the value sequence for the key. The order of parameters in the encoded string will match the order of parameter tuples in the sequence.
The *safe*, *encoding*, and *errors* parameters are passed down to
*quote_via* (the *encoding* and *errors* parameters are only passed
when a query element is a :class:`str`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3279651e-7c6c-4815-99b9-c5a7046aedeb | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,041 | supabase-export-v2 | 458c10d27cf09581 | if the URL that was parsed originally had unnecessary delimiters (for example, a ``?`` with an empty query; the RFC states that these are equivalent).
If *keep_empty* is true, empty strings are kept in the result (for example,
a ``?`` for an empty query), only ``None`` components are omitted. This allows rebuilding a ... | trusted_official_docs | CPython Docs | if the URL that was parsed originally had unnecessary delimiters (for example, a ``?`` with an empty query; the RFC states that these are equivalent).
If *keep_empty* is true, empty strings are kept in the result (for example,
a ``?`` for an empty query), only ``None`` components are omitted. This allows rebuilding a ... | if the URL that was parsed originally had unnecessary delimiters (for example, a ``?`` with an empty query; the RFC states that these are equivalent).
If *keep_empty* is true, empty strings are kept in the result (for example,
a ``?`` for an empty query), only ``None`` components are omitted. This allows rebuilding a ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
350eec0f-61f3-42bd-b8dd-4954086a792c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,998 | supabase-export-v2 | 02187d4ca5cbb214 | .. [1] Depending on the value of the *missing_as_none* argument.
Reading the :attr:`port` attribute will raise a :exc:`ValueError` if
an invalid port is specified in the URL. See section
:ref:`urlparse-result-object` for more information on the result object. | trusted_official_docs | CPython Docs | .. [1] Depending on the value of the *missing_as_none* argument.
Reading the :attr:`port` attribute will raise a :exc:`ValueError` if
an invalid port is specified in the URL. See section
:ref:`urlparse-result-object` for more information on the result object. | .. [1] Depending on the value of the *missing_as_none* argument.
Reading the :attr:`port` attribute will raise a :exc:`ValueError` if
an invalid port is specified in the URL. See section
:ref:`urlparse-result-object` for more information on the result object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
39d736e8-e5ff-47c6-b0d4-51fe8389952b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,079 | supabase-export-v2 | 4ba4f9370680605d | code before trusting a returned component part. Does that ``scheme`` make sense? Is that a sensible ``path``? Is there anything strange about that ``hostname``? etc.
What constitutes a URL is not universally well defined. Different applications
have different needs and desired constraints. For instance the living `WHAT... | trusted_official_docs | CPython Docs | code before trusting a returned component part. Does that ``scheme`` make sense? Is that a sensible ``path``? Is there anything strange about that ``hostname``? etc.
What constitutes a URL is not universally well defined. Different applications
have different needs and desired constraints. For instance the living `WHAT... | code before trusting a returned component part. Does that ``scheme`` make sense? Is that a sensible ``path``? Is there anything strange about that ``hostname``? etc.
What constitutes a URL is not universally well defined. Different applications
have different needs and desired constraints. For instance the living `WHAT... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3cb622c2-8761-4e44-939e-f2fddc64c847 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,097 | supabase-export-v2 | 9b6bd657f47a5ee2 | url = 'HTTP://www.Python.org/doc/#' >>> r1 = urlsplit(url) >>> r1.geturl() 'http://www.Python.org/doc/' >>> r2 = urlsplit(r1.geturl()) >>> r2.geturl() 'http://www.Python.org/doc/' >>> r3 = urlsplit(url, missing_as_none=True) >>> r3.geturl() 'http://www.Python.org/doc/#'
The following classes provide the implementations... | trusted_official_docs | CPython Docs | url = 'HTTP://www.Python.org/doc/#' >>> r1 = urlsplit(url) >>> r1.geturl() 'http://www.Python.org/doc/' >>> r2 = urlsplit(r1.geturl()) >>> r2.geturl() 'http://www.Python.org/doc/' >>> r3 = urlsplit(url, missing_as_none=True) >>> r3.geturl() 'http://www.Python.org/doc/#'
The following classes provide the implementations... | url = 'HTTP://www.Python.org/doc/#' >>> r1 = urlsplit(url) >>> r1.geturl() 'http://www.Python.org/doc/' >>> r2 = urlsplit(r1.geturl()) >>> r2.geturl() 'http://www.Python.org/doc/' >>> r3 = urlsplit(url, missing_as_none=True) >>> r3.geturl() 'http://www.Python.org/doc/#'
The following classes provide the implementations... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3eef15c1-7f24-481c-b798-3f3f2aa28b50 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,995 | supabase-export-v2 | 7ae565da5c9d7f38 | the path or query component, and :attr:`fragment` is set to ``None`` or the empty string (depending on the value of *missing_as_none*) in the return value.
The return value is a :term:`named tuple`, which means that its items can
be accessed by index or as named attributes, which are: | trusted_official_docs | CPython Docs | the path or query component, and :attr:`fragment` is set to ``None`` or the empty string (depending on the value of *missing_as_none*) in the return value.
The return value is a :term:`named tuple`, which means that its items can
be accessed by index or as named attributes, which are: | the path or query component, and :attr:`fragment` is set to ``None`` or the empty string (depending on the value of *missing_as_none*) in the return value.
The return value is a :term:`named tuple`, which means that its items can
be accessed by index or as named attributes, which are: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
42648980-acef-47e3-87eb-07ab702ddce2 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,982 | supabase-export-v2 | 97d866672fa0d465 | The :mod:`!urllib.parse` module defines functions that fall into two broad categories: URL parsing and URL quoting. These are covered in detail in the following sections.
This module's functions use the deprecated term ``netloc`` (or ``net_loc``),
which was introduced in :rfc:`1808`. However, this term has been obsolet... | trusted_official_docs | CPython Docs | The :mod:`!urllib.parse` module defines functions that fall into two broad categories: URL parsing and URL quoting. These are covered in detail in the following sections.
This module's functions use the deprecated term ``netloc`` (or ``net_loc``),
which was introduced in :rfc:`1808`. However, this term has been obsolet... | The :mod:`!urllib.parse` module defines functions that fall into two broad categories: URL parsing and URL quoting. These are covered in detail in the following sections.
This module's functions use the deprecated term ``netloc`` (or ``net_loc``),
which was introduced in :rfc:`1808`. However, this term has been obsolet... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4907448d-5206-475d-a4a1-8214bbcb544b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,117 | supabase-export-v2 | 024fd89e85babdf1 | .. function:: quote(string, safe='/', encoding=None, errors=None)
Replace special characters in *string* using the :samp:`%{xx}` escape. Letters,
digits, and the characters ``'_.-~'`` are never quoted. By default, this
function is intended for quoting the path section of a URL. The optional
*safe* parameter specifie... | trusted_official_docs | CPython Docs | .. function:: quote(string, safe='/', encoding=None, errors=None)
Replace special characters in *string* using the :samp:`%{xx}` escape. Letters,
digits, and the characters ``'_.-~'`` are never quoted. By default, this
function is intended for quoting the path section of a URL. The optional
*safe* parameter specifie... | .. function:: quote(string, safe='/', encoding=None, errors=None)
Replace special characters in *string* using the :samp:`%{xx}` escape. Letters,
digits, and the characters ``'_.-~'`` are never quoted. By default, this
function is intended for quoting the path section of a URL. The optional
*safe* parameter specifie... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
49c6e6cc-c630-4e62-b38d-d5ffd250b4f0 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,042 | supabase-export-v2 | 361e632782505f39 | rebuilding a URL that was parsed with option ``missing_as_none=True``. By default, *keep_empty* is true if *parts* is the result of the :func:`urlsplit` call with ``missing_as_none=True``.
.. versionchanged:: 3.15
Added the *keep_empty* parameter. | trusted_official_docs | CPython Docs | rebuilding a URL that was parsed with option ``missing_as_none=True``. By default, *keep_empty* is true if *parts* is the result of the :func:`urlsplit` call with ``missing_as_none=True``.
.. versionchanged:: 3.15
Added the *keep_empty* parameter. | rebuilding a URL that was parsed with option ``missing_as_none=True``. By default, *keep_empty* is true if *parts* is the result of the :func:`urlsplit` call with ``missing_as_none=True``.
.. versionchanged:: 3.15
Added the *keep_empty* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
54ce76ec-d1e1-4984-8d96-6fca285fb040 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,067 | supabase-export-v2 | 2cc1abd1b8b3d1ba | The return value is a :term:`named tuple`, its items can be accessed by index or as named attributes:
+------------------+-------+-------------------------+-------------------------------+
| Attribute | Index | Value | Value if not present |
+==================+=======+=========================+======================... | trusted_official_docs | CPython Docs | The return value is a :term:`named tuple`, its items can be accessed by index or as named attributes:
+------------------+-------+-------------------------+-------------------------------+
| Attribute | Index | Value | Value if not present |
+==================+=======+=========================+======================... | The return value is a :term:`named tuple`, its items can be accessed by index or as named attributes:
+------------------+-------+-------------------------+-------------------------------+
| Attribute | Index | Value | Value if not present |
+==================+=======+=========================+======================... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5508772c-13e4-4bd9-bee2-8c29d57d6e0f | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,050 | supabase-export-v2 | 09d762e828dcfa33 | rebuilding a URL that was parsed with option ``missing_as_none=True``. By default, *keep_empty* is true if *parts* is the result of the :func:`urlparse` call with ``missing_as_none=True``.
.. versionchanged:: 3.15
Added the *keep_empty* parameter. | trusted_official_docs | CPython Docs | rebuilding a URL that was parsed with option ``missing_as_none=True``. By default, *keep_empty* is true if *parts* is the result of the :func:`urlparse` call with ``missing_as_none=True``.
.. versionchanged:: 3.15
Added the *keep_empty* parameter. | rebuilding a URL that was parsed with option ``missing_as_none=True``. By default, *keep_empty* is true if *parts* is the result of the :func:`urlparse` call with ``missing_as_none=True``.
.. versionchanged:: 3.15
Added the *keep_empty* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
567a3c30-20ff-4e9a-86ab-3593e8386964 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,087 | supabase-export-v2 | 908d31af2f0888ef | improperly quoted URLs that may contain non-ASCII data will need to do their own decoding from bytes to characters before invoking the URL parsing methods.
The behaviour described in this section applies only to the URL parsing
functions. The URL quoting functions use their own rules when producing
or consuming byte se... | trusted_official_docs | CPython Docs | improperly quoted URLs that may contain non-ASCII data will need to do their own decoding from bytes to characters before invoking the URL parsing methods.
The behaviour described in this section applies only to the URL parsing
functions. The URL quoting functions use their own rules when producing
or consuming byte se... | improperly quoted URLs that may contain non-ASCII data will need to do their own decoding from bytes to characters before invoking the URL parsing methods.
The behaviour described in this section applies only to the URL parsing
functions. The URL quoting functions use their own rules when producing
or consuming byte se... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
57fe39b8-44dc-4706-9edf-3b3a24d0cb7c | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,999 | supabase-export-v2 | 1167a606b9fbb64e | :attr:`port` attribute will raise a :exc:`ValueError` if an invalid port is specified in the URL. See section :ref:`urlparse-result-object` for more information on the result object.
Unmatched square brackets in the :attr:`netloc` attribute will raise a
:exc:`ValueError`. | trusted_official_docs | CPython Docs | :attr:`port` attribute will raise a :exc:`ValueError` if an invalid port is specified in the URL. See section :ref:`urlparse-result-object` for more information on the result object.
Unmatched square brackets in the :attr:`netloc` attribute will raise a
:exc:`ValueError`. | :attr:`port` attribute will raise a :exc:`ValueError` if an invalid port is specified in the URL. See section :ref:`urlparse-result-object` for more information on the result object.
Unmatched square brackets in the :attr:`netloc` attribute will raise a
:exc:`ValueError`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5b509272-d50a-41ce-b1c6-ec14a0672f85 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,082 | supabase-export-v2 | 416fa24349283afc | Parsing ASCII Encoded Bytes ---------------------------
The URL parsing functions were originally designed to operate on character
strings only. In practice, it is useful to be able to manipulate properly
quoted and encoded URLs as sequences of ASCII bytes. Accordingly, the
URL parsing functions in this module all oper... | trusted_official_docs | CPython Docs | Parsing ASCII Encoded Bytes ---------------------------
The URL parsing functions were originally designed to operate on character
strings only. In practice, it is useful to be able to manipulate properly
quoted and encoded URLs as sequences of ASCII bytes. Accordingly, the
URL parsing functions in this module all oper... | Parsing ASCII Encoded Bytes ---------------------------
The URL parsing functions were originally designed to operate on character
strings only. In practice, it is useful to be able to manipulate properly
quoted and encoded URLs as sequences of ASCII bytes. Accordingly, the
URL parsing functions in this module all oper... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5f0a65c5-0343-4f8f-bf49-d09a4b0155d3 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,002 | supabase-export-v2 | 721211411ca9751b | leading C0 control and space characters are stripped from the URL. ``\n``, ``\r`` and tab ``\t`` characters are removed from the URL at any position.
As is the case with all named tuples, the subclass has a few additional methods
and attributes that are particularly useful. One such method is :meth:`_replace`. The :me... | trusted_official_docs | CPython Docs | leading C0 control and space characters are stripped from the URL. ``\n``, ``\r`` and tab ``\t`` characters are removed from the URL at any position.
As is the case with all named tuples, the subclass has a few additional methods
and attributes that are particularly useful. One such method is :meth:`_replace`. The :me... | leading C0 control and space characters are stripped from the URL. ``\n``, ``\r`` and tab ``\t`` characters are removed from the URL at any position.
As is the case with all named tuples, the subclass has a few additional methods
and attributes that are particularly useful. One such method is :meth:`_replace`. The :me... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
60515ec1-8115-43f5-8011-0b03e978e705 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,009 | supabase-export-v2 | f0c84b843d43464e | fragment is now parsed for all URL schemes (unless *allow_fragments* is false), in accordance with :rfc:`3986`. Previously, an allowlist of schemes that support fragments existed.
.. versionchanged:: 3.6
Out-of-range port numbers now raise :exc:`ValueError`, instead of
returning ``None``. | trusted_official_docs | CPython Docs | fragment is now parsed for all URL schemes (unless *allow_fragments* is false), in accordance with :rfc:`3986`. Previously, an allowlist of schemes that support fragments existed.
.. versionchanged:: 3.6
Out-of-range port numbers now raise :exc:`ValueError`, instead of
returning ``None``. | fragment is now parsed for all URL schemes (unless *allow_fragments* is false), in accordance with :rfc:`3986`. Previously, an allowlist of schemes that support fragments existed.
.. versionchanged:: 3.6
Out-of-range port numbers now raise :exc:`ValueError`, instead of
returning ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
62cde22c-ad6a-401a-ab95-0dced1890268 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,027 | supabase-export-v2 | 8e3402c828e26ead | .. deprecated:: 3.14 Accepting objects with false values (like ``0`` and ``[]``) except empty strings and byte-like objects and ``None`` is now deprecated.
.. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&') | trusted_official_docs | CPython Docs | .. deprecated:: 3.14 Accepting objects with false values (like ``0`` and ``[]``) except empty strings and byte-like objects and ``None`` is now deprecated.
.. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&') | .. deprecated:: 3.14 Accepting objects with false values (like ``0`` and ``[]``) except empty strings and byte-like objects and ``None`` is now deprecated.
.. function:: parse_qsl(qs, keep_blank_values=False, strict_parsing=False, encoding='utf-8', errors='replace', max_num_fields=None, separator='&') | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
638eacc7-4fdf-4afa-9fe0-92cf0456794f | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,978 | supabase-export-v2 | eb290ef1ddf37d08 | path etc.), to combine the components back into a URL string, and to convert a "relative URL" to an absolute URL given a "base URL."
The module has been designed to match the internet RFC on Relative Uniform
Resource Locators. It supports the following URL schemes: ``file``, ``ftp``,
``gopher``, ``hdl``, ``http``, ``ht... | trusted_official_docs | CPython Docs | path etc.), to combine the components back into a URL string, and to convert a "relative URL" to an absolute URL given a "base URL."
The module has been designed to match the internet RFC on Relative Uniform
Resource Locators. It supports the following URL schemes: ``file``, ``ftp``,
``gopher``, ``hdl``, ``http``, ``ht... | path etc.), to combine the components back into a URL string, and to convert a "relative URL" to an absolute URL given a "base URL."
The module has been designed to match the internet RFC on Relative Uniform
Resource Locators. It supports the following URL schemes: ``file``, ``ftp``,
``gopher``, ``hdl``, ``http``, ``ht... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6518205b-fab8-4b31-8bff-f0df048d1407 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,119 | supabase-export-v2 | 34c41e2984665470 | *string* may be either a :class:`str` or a :class:`bytes` object.
.. versionchanged:: 3.7
Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now
included in the set of unreserved characters. | trusted_official_docs | CPython Docs | *string* may be either a :class:`str` or a :class:`bytes` object.
.. versionchanged:: 3.7
Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now
included in the set of unreserved characters. | *string* may be either a :class:`str` or a :class:`bytes` object.
.. versionchanged:: 3.7
Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now
included in the set of unreserved characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
65411784-7515-4a04-b230-06670c9036fc | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,068 | supabase-export-v2 | 233501fc97e889e7 | | URL with no fragment | empty string | +------------------+-------+-------------------------+-------------------------------+ | :attr:`fragment` | 1 | Fragment identifier | ``None`` or empty string [3]_ | +------------------+-------+-------------------------+-------------------------------+
.. [3] Depending on the val... | trusted_official_docs | CPython Docs | | URL with no fragment | empty string | +------------------+-------+-------------------------+-------------------------------+ | :attr:`fragment` | 1 | Fragment identifier | ``None`` or empty string [3]_ | +------------------+-------+-------------------------+-------------------------------+
.. [3] Depending on the val... | | URL with no fragment | empty string | +------------------+-------+-------------------------+-------------------------------+ | :attr:`fragment` | 1 | Fragment identifier | ``None`` or empty string [3]_ | +------------------+-------+-------------------------+-------------------------------+
.. [3] Depending on the val... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
658f7e13-9cfd-485e-8901-648f03ea52aa | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,989 | supabase-export-v2 | 06e6a418ba3a4ff7 | >>> from urllib.parse import urlsplit >>> urlsplit("scheme://netloc/path?query#fragment") SplitResult(scheme='scheme', netloc='netloc', path='/path', query='query', fragment='fragment') >>> o = urlsplit("http://docs.python.org:80/3/library/urllib.parse.html?" ...
"highlight=params#url-parsing")
>>> o
SplitResult(sche... | trusted_official_docs | CPython Docs | >>> from urllib.parse import urlsplit >>> urlsplit("scheme://netloc/path?query#fragment") SplitResult(scheme='scheme', netloc='netloc', path='/path', query='query', fragment='fragment') >>> o = urlsplit("http://docs.python.org:80/3/library/urllib.parse.html?" ...
"highlight=params#url-parsing")
>>> o
SplitResult(sche... | >>> from urllib.parse import urlsplit >>> urlsplit("scheme://netloc/path?query#fragment") SplitResult(scheme='scheme', netloc='netloc', path='/path', query='query', fragment='fragment') >>> o = urlsplit("http://docs.python.org:80/3/library/urllib.parse.html?" ...
"highlight=params#url-parsing")
>>> o
SplitResult(sche... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6c409397-b39b-4b69-943a-03773f4252f5 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,022 | supabase-export-v2 | ff3251e528f6b9f5 | The optional argument *separator* is the symbol to use for separating the query arguments. It defaults to ``&``.
Use the :func:`urllib.parse.urlencode` function (with the ``doseq``
parameter set to ``True``) to convert such dictionaries into query
strings. | trusted_official_docs | CPython Docs | The optional argument *separator* is the symbol to use for separating the query arguments. It defaults to ``&``.
Use the :func:`urllib.parse.urlencode` function (with the ``doseq``
parameter set to ``True``) to convert such dictionaries into query
strings. | The optional argument *separator* is the symbol to use for separating the query arguments. It defaults to ``&``.
Use the :func:`urllib.parse.urlencode` function (with the ``doseq``
parameter set to ``True``) to convert such dictionaries into query
strings. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6cbb8c09-5074-4825-a3e8-0f9729b1ce3b | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,038 | supabase-export-v2 | 3ba8d8f04989f9e6 | both ``;`` and ``&`` as query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator.
.. function:: urlunsplit(parts)
urlunsplit(parts, *, keep_empty) | trusted_official_docs | CPython Docs | both ``;`` and ``&`` as query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator.
.. function:: urlunsplit(parts)
urlunsplit(parts, *, keep_empty) | both ``;`` and ``&`` as query parameter separator. This has been changed to allow only a single separator key, with ``&`` as the default separator.
.. function:: urlunsplit(parts)
urlunsplit(parts, *, keep_empty) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7085e94a-1045-4c7c-937d-d9bc2e71cc55 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,065 | supabase-export-v2 | 24aaecfec0c8304d | .. function:: urldefrag(url, *, missing_as_none=False)
If *url* contains a fragment identifier, return a modified version of *url*
with no fragment identifier, and the fragment identifier as a separate
string. If there is no fragment identifier in *url*, return *url* unmodified
and an empty string (by default) or ``... | trusted_official_docs | CPython Docs | .. function:: urldefrag(url, *, missing_as_none=False)
If *url* contains a fragment identifier, return a modified version of *url*
with no fragment identifier, and the fragment identifier as a separate
string. If there is no fragment identifier in *url*, return *url* unmodified
and an empty string (by default) or ``... | .. function:: urldefrag(url, *, missing_as_none=False)
If *url* contains a fragment identifier, return a modified version of *url*
with no fragment identifier, and the fragment identifier as a separate
string. If there is no fragment identifier in *url*, return *url* unmodified
and an empty string (by default) or ``... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
70a7c740-dbf3-4d7a-9af5-4bd0086de30e | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,120 | supabase-export-v2 | be06c15a2c2692c2 | .. versionchanged:: 3.7 Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now included in the set of unreserved characters.
The optional *encoding* and *errors* parameters specify how to deal with
non-ASCII characters, as accepted by the :meth:`str.encode` method. *encoding* defaults to ``'utf-8'``... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.7 Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now included in the set of unreserved characters.
The optional *encoding* and *errors* parameters specify how to deal with
non-ASCII characters, as accepted by the :meth:`str.encode` method. *encoding* defaults to ``'utf-8'``... | .. versionchanged:: 3.7 Moved from :rfc:`2396` to :rfc:`3986` for quoting URL strings. "~" is now included in the set of unreserved characters.
The optional *encoding* and *errors* parameters specify how to deal with
non-ASCII characters, as accepted by the :meth:`str.encode` method. *encoding* defaults to ``'utf-8'``... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
70e4aefb-1e64-4bd9-9c18-7da85c38b047 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,147 | supabase-export-v2 | 52e727ba3a1ea8d2 | will encode spaces as ``%20`` and not encode '/' characters. For maximum control of what is quoted, use ``quote`` and specify a value for *safe*.
When a sequence of two-element tuples is used as the *query*
argument, the first element of each tuple is a key and the second is a
value. The value element in itself can b... | trusted_official_docs | CPython Docs | will encode spaces as ``%20`` and not encode '/' characters. For maximum control of what is quoted, use ``quote`` and specify a value for *safe*.
When a sequence of two-element tuples is used as the *query*
argument, the first element of each tuple is a key and the second is a
value. The value element in itself can b... | will encode spaces as ``%20`` and not encode '/' characters. For maximum control of what is quoted, use ``quote`` and specify a value for *safe*.
When a sequence of two-element tuples is used as the *query*
argument, the first element of each tuple is a key and the second is a
value. The value element in itself can b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71fb4151-f2e0-4df7-ac5d-beb968341f67 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,044 | supabase-export-v2 | 2e7f7b01c9236758 | .. function:: urlparse(urlstring, scheme=None, allow_fragments=True, *, missing_as_none=False)
This is similar to :func:`urlsplit`, but additionally splits the *path*
component on *path* and *params*. This function returns a 6-item :term:`named tuple` :class:`ParseResult`
or :class:`ParseResultBytes`. Its items are t... | trusted_official_docs | CPython Docs | .. function:: urlparse(urlstring, scheme=None, allow_fragments=True, *, missing_as_none=False)
This is similar to :func:`urlsplit`, but additionally splits the *path*
component on *path* and *params*. This function returns a 6-item :term:`named tuple` :class:`ParseResult`
or :class:`ParseResultBytes`. Its items are t... | .. function:: urlparse(urlstring, scheme=None, allow_fragments=True, *, missing_as_none=False)
This is similar to :func:`urlsplit`, but additionally splits the *path*
component on *path* and *params*. This function returns a 6-item :term:`named tuple` :class:`ParseResult`
or :class:`ParseResultBytes`. Its items are t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7484acce-16b0-459d-b5f8-6e9bb9c5d949 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,125 | supabase-export-v2 | 5be27b4417704ec3 | a URL. Plus signs in the original string are escaped unless they are included in *safe*. It also does not have *safe* default to ``'/'``.
Example: ``quote_plus('/El Niño/')`` yields ``'%2FEl+Ni%C3%B1o%2F'``. | trusted_official_docs | CPython Docs | a URL. Plus signs in the original string are escaped unless they are included in *safe*. It also does not have *safe* default to ``'/'``.
Example: ``quote_plus('/El Niño/')`` yields ``'%2FEl+Ni%C3%B1o%2F'``. | a URL. Plus signs in the original string are escaped unless they are included in *safe*. It also does not have *safe* default to ``'/'``.
Example: ``quote_plus('/El Niño/')`` yields ``'%2FEl+Ni%C3%B1o%2F'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78aeb39d-ef37-4a4c-8adf-a861b59b68e4 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,157 | supabase-export-v2 | 658f2912d8e3206d | this. Certain deviations could be observed, which are mostly for backward compatibility purposes and for certain de-facto parsing requirements as commonly observed in major browsers.
:rfc:`2732` - Format for Literal IPv6 Addresses in URL's. This specifies the parsing requirements of IPv6 URLs. | trusted_official_docs | CPython Docs | this. Certain deviations could be observed, which are mostly for backward compatibility purposes and for certain de-facto parsing requirements as commonly observed in major browsers.
:rfc:`2732` - Format for Literal IPv6 Addresses in URL's. This specifies the parsing requirements of IPv6 URLs. | this. Certain deviations could be observed, which are mostly for backward compatibility purposes and for certain de-facto parsing requirements as commonly observed in major browsers.
:rfc:`2732` - Format for Literal IPv6 Addresses in URL's. This specifies the parsing requirements of IPv6 URLs. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78d54779-2d8c-4b61-be24-f8372963d4a1 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 18,986 | supabase-export-v2 | 8996656078af6c35 | .. function:: urlsplit(urlstring, scheme=None, allow_fragments=True, *, missing_as_none=False)
Parse a URL into five components, returning a 5-item :term:`named tuple`
:class:`SplitResult` or :class:`SplitResultBytes`. This corresponds to the general structure of a URL:
``scheme://netloc/path?query#fragment``. Each t... | trusted_official_docs | CPython Docs | .. function:: urlsplit(urlstring, scheme=None, allow_fragments=True, *, missing_as_none=False)
Parse a URL into five components, returning a 5-item :term:`named tuple`
:class:`SplitResult` or :class:`SplitResultBytes`. This corresponds to the general structure of a URL:
``scheme://netloc/path?query#fragment``. Each t... | .. function:: urlsplit(urlstring, scheme=None, allow_fragments=True, *, missing_as_none=False)
Parse a URL into five components, returning a 5-item :term:`named tuple`
:class:`SplitResult` or :class:`SplitResultBytes`. This corresponds to the general structure of a URL:
``scheme://netloc/path?query#fragment``. Each t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
79f8de6a-9e79-429a-ac1a-d5d6bb401998 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,151 | supabase-export-v2 | 0ad494500b0e62ab | <urllib-examples>` to find out how the :func:`urllib.parse.urlencode` method can be used for generating the query string of a URL or data for a POST request.
.. versionchanged:: 3.2
*query* supports bytes and string objects. | trusted_official_docs | CPython Docs | <urllib-examples>` to find out how the :func:`urllib.parse.urlencode` method can be used for generating the query string of a URL or data for a POST request.
.. versionchanged:: 3.2
*query* supports bytes and string objects. | <urllib-examples>` to find out how the :func:`urllib.parse.urlencode` method can be used for generating the query string of a URL or data for a POST request.
.. versionchanged:: 3.2
*query* supports bytes and string objects. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7c4e869c-3adc-46ad-8bd4-3edaded83f14 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,034 | supabase-export-v2 | 252871f71392ce0d | The optional argument *separator* is the symbol to use for separating the query arguments. It defaults to ``&``.
Use the :func:`urllib.parse.urlencode` function to convert such lists of pairs into
query strings. | trusted_official_docs | CPython Docs | The optional argument *separator* is the symbol to use for separating the query arguments. It defaults to ``&``.
Use the :func:`urllib.parse.urlencode` function to convert such lists of pairs into
query strings. | The optional argument *separator* is the symbol to use for separating the query arguments. It defaults to ``&``.
Use the :func:`urllib.parse.urlencode` function to convert such lists of pairs into
query strings. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7de70370-0606-4acf-b569-25922d6a0cda | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,001 | supabase-export-v2 | 702520e1d4c7513b | into any of ``/``, ``?``, ``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is decomposed before parsing, no error will be raised.
Following some of the `WHATWG spec`_ that updates :rfc:`3986`, leading C0
control and space characters are stripped from the URL. ``\n``,
``\r`` and tab ``\t`` characters ... | trusted_official_docs | CPython Docs | into any of ``/``, ``?``, ``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is decomposed before parsing, no error will be raised.
Following some of the `WHATWG spec`_ that updates :rfc:`3986`, leading C0
control and space characters are stripped from the URL. ``\n``,
``\r`` and tab ``\t`` characters ... | into any of ``/``, ``?``, ``#``, ``@``, or ``:`` will raise a :exc:`ValueError`. If the URL is decomposed before parsing, no error will be raised.
Following some of the `WHATWG spec`_ that updates :rfc:`3986`, leading C0
control and space characters are stripped from the URL. ``\n``,
``\r`` and tab ``\t`` characters ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7fb1793d-0b2c-4559-875e-db13d2654bad | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,076 | supabase-export-v2 | 5601cf2b97d908c6 | URL parsing security --------------------
The :func:`urlsplit` and :func:`urlparse` APIs do not perform **validation** of
inputs. They may not raise errors on inputs that other applications consider
invalid. They may also succeed on some inputs that might not be considered
URLs elsewhere. Their purpose is for practical... | trusted_official_docs | CPython Docs | URL parsing security --------------------
The :func:`urlsplit` and :func:`urlparse` APIs do not perform **validation** of
inputs. They may not raise errors on inputs that other applications consider
invalid. They may also succeed on some inputs that might not be considered
URLs elsewhere. Their purpose is for practical... | URL parsing security --------------------
The :func:`urlsplit` and :func:`urlparse` APIs do not perform **validation** of
inputs. They may not raise errors on inputs that other applications consider
invalid. They may also succeed on some inputs that might not be considered
URLs elsewhere. Their purpose is for practical... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80d7e351-f5b9-4b53-8ec3-0bd71999a3c2 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,161 | supabase-export-v2 | bcbca523786f821c | includes the rules for joining an absolute and a relative URL, including a fair number of "Abnormal Examples" which govern the treatment of border cases.
:rfc:`1738` - Uniform Resource Locators (URL)
This specifies the formal syntax and semantics of absolute URLs. | trusted_official_docs | CPython Docs | includes the rules for joining an absolute and a relative URL, including a fair number of "Abnormal Examples" which govern the treatment of border cases.
:rfc:`1738` - Uniform Resource Locators (URL)
This specifies the formal syntax and semantics of absolute URLs. | includes the rules for joining an absolute and a relative URL, including a fair number of "Abnormal Examples" which govern the treatment of border cases.
:rfc:`1738` - Uniform Resource Locators (URL)
This specifies the formal syntax and semantics of absolute URLs. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
81f1a8c5-984e-4511-880a-f8a4f7266a83 | CPython Docs | file://datasets/cpython/Doc/library/urllib.parse.rst | unknown | 7faa607f-5cc8-41f8-9617-7dfacb6f538a | 19,020 | supabase-export-v2 | 569c75ba38674255 | The optional *encoding* and *errors* parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the :meth:`bytes.decode` method.
The optional argument *max_num_fields* is the maximum number of fields to
read. If set, then throws a :exc:`ValueError` if there are more than
*max_n... | trusted_official_docs | CPython Docs | The optional *encoding* and *errors* parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the :meth:`bytes.decode` method.
The optional argument *max_num_fields* is the maximum number of fields to
read. If set, then throws a :exc:`ValueError` if there are more than
*max_n... | The optional *encoding* and *errors* parameters specify how to decode percent-encoded sequences into Unicode characters, as accepted by the :meth:`bytes.decode` method.
The optional argument *max_num_fields* is the maximum number of fields to
read. If set, then throws a :exc:`ValueError` if there are more than
*max_n... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.