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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0957320-265a-4ea3-8984-1c23c48d7916 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,826 | supabase-export-v2 | 1fb176ed602a45aa | .. class:: BasicInterpolation()
The default implementation used by :class:`ConfigParser`. It enables
values to contain format strings which refer to other values in the same
section, or values in the special default section [1]_. Additional default
values can be provided on initialization. | trusted_official_docs | CPython Docs | .. class:: BasicInterpolation()
The default implementation used by :class:`ConfigParser`. It enables
values to contain format strings which refer to other values in the same
section, or values in the special default section [1]_. Additional default
values can be provided on initialization. | .. class:: BasicInterpolation()
The default implementation used by :class:`ConfigParser`. It enables
values to contain format strings which refer to other values in the same
section, or values in the special default section [1]_. Additional default
values can be provided on initialization. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d23e644d-83d6-4b60-a76f-294cea63847e | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,955 | supabase-export-v2 | a717679a22055d63 | used to turn off interpolation completely, ``ExtendedInterpolation()`` provides a more advanced variant inspired by ``zc.buildout``. More on the subject in the `dedicated documentation section <#interpolation-of-values>`_.
All option names used in interpolation will be passed through the
:meth:`optionxform` method jus... | trusted_official_docs | CPython Docs | used to turn off interpolation completely, ``ExtendedInterpolation()`` provides a more advanced variant inspired by ``zc.buildout``. More on the subject in the `dedicated documentation section <#interpolation-of-values>`_.
All option names used in interpolation will be passed through the
:meth:`optionxform` method jus... | used to turn off interpolation completely, ``ExtendedInterpolation()`` provides a more advanced variant inspired by ``zc.buildout``. More on the subject in the `dedicated documentation section <#interpolation-of-values>`_.
All option names used in interpolation will be passed through the
:meth:`optionxform` method jus... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d38703b9-0c64-40af-b45f-d67944d1f1f2 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,899 | supabase-export-v2 | c46821b408aaef63 | Its current value can be retrieved using the ``parser_instance.default_section`` attribute and may be modified at runtime (i.e. to convert files from one format to another).
* *interpolation*, default value: ``configparser.BasicInterpolation`` | trusted_official_docs | CPython Docs | Its current value can be retrieved using the ``parser_instance.default_section`` attribute and may be modified at runtime (i.e. to convert files from one format to another).
* *interpolation*, default value: ``configparser.BasicInterpolation`` | Its current value can be retrieved using the ``parser_instance.default_section`` attribute and may be modified at runtime (i.e. to convert files from one format to another).
* *interpolation*, default value: ``configparser.BasicInterpolation`` | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d413a8a2-fc48-4d03-9f61-f567e7c0fc4d | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,950 | supabase-export-v2 | 299fb70b075daa43 | .. class:: ConfigParser(defaults=None, dict_type=dict, allow_no_value=False, *, \ delimiters=('=', ':'), comment_prefixes=('#', ';'), \ inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ interpolation=BasicInterpolation(), converters={}, \ allow_unname... | trusted_official_docs | CPython Docs | .. class:: ConfigParser(defaults=None, dict_type=dict, allow_no_value=False, *, \ delimiters=('=', ':'), comment_prefixes=('#', ';'), \ inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ interpolation=BasicInterpolation(), converters={}, \ allow_unname... | .. class:: ConfigParser(defaults=None, dict_type=dict, allow_no_value=False, *, \ delimiters=('=', ':'), comment_prefixes=('#', ';'), \ inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ interpolation=BasicInterpolation(), converters={}, \ allow_unname... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d4962f53-7b91-4ad7-865c-d116914a5ada | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,931 | supabase-export-v2 | 9ceb1e5a819f2566 | config = configparser.RawConfigParser() config.read('example.cfg')
# getfloat() raises an exception if the value is not a float
# getint() and getboolean() also do this for their respective types
a_float = config.getfloat('Section1', 'a_float')
an_int = config.getint('Section1', 'an_int')
print(a_float + an_int) | trusted_official_docs | CPython Docs | config = configparser.RawConfigParser() config.read('example.cfg')
# getfloat() raises an exception if the value is not a float
# getint() and getboolean() also do this for their respective types
a_float = config.getfloat('Section1', 'a_float')
an_int = config.getint('Section1', 'an_int')
print(a_float + an_int) | config = configparser.RawConfigParser() config.read('example.cfg')
# getfloat() raises an exception if the value is not a float
# getint() and getboolean() also do this for their respective types
a_float = config.getfloat('Section1', 'a_float')
an_int = config.getint('Section1', 'an_int')
print(a_float + an_int) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d8630a5f-5c15-4332-90ae-312b3e3f823b | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,909 | supabase-export-v2 | b94a020d1305de3e | {'funky': 'nope'} >>> custom['section1'].getboolean('funky') Traceback (most recent call last): ... ValueError: Not a boolean: nope >>> custom.BOOLEAN_STATES = {'sure': True, 'nope': False} >>> custom['section1'].getboolean('funky') False
Other typical Boolean pairs include ``accept``/``reject`` or
``enabled``/``disab... | trusted_official_docs | CPython Docs | {'funky': 'nope'} >>> custom['section1'].getboolean('funky') Traceback (most recent call last): ... ValueError: Not a boolean: nope >>> custom.BOOLEAN_STATES = {'sure': True, 'nope': False} >>> custom['section1'].getboolean('funky') False
Other typical Boolean pairs include ``accept``/``reject`` or
``enabled``/``disab... | {'funky': 'nope'} >>> custom['section1'].getboolean('funky') Traceback (most recent call last): ... ValueError: Not a boolean: nope >>> custom.BOOLEAN_STATES = {'sure': True, 'nope': False} >>> custom['section1'].getboolean('funky') False
Other typical Boolean pairs include ``accept``/``reject`` or
``enabled``/``disab... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d9aaaf08-fd04-4da0-afa4-83703a2d4699 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,954 | supabase-export-v2 | d7dc747704d8cf86 | the ``default_section`` instance attribute. This won't re-evaluate an already parsed config file, but will be used when writing parsed settings to a new config file.
Interpolation behaviour may be customized by providing a custom handler
through the *interpolation* argument. ``None`` can be used to turn off
interpola... | trusted_official_docs | CPython Docs | the ``default_section`` instance attribute. This won't re-evaluate an already parsed config file, but will be used when writing parsed settings to a new config file.
Interpolation behaviour may be customized by providing a custom handler
through the *interpolation* argument. ``None`` can be used to turn off
interpola... | the ``default_section`` instance attribute. This won't re-evaluate an already parsed config file, but will be used when writing parsed settings to a new config file.
Interpolation behaviour may be customized by providing a custom handler
through the *interpolation* argument. ``None`` can be used to turn off
interpola... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc4d6024-f705-4c4d-8ede-8e295617e7bd | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,781 | supabase-export-v2 | 14042381ffac742e | .. doctest::
>>> config_override = configparser.ConfigParser()
>>> config_override['DEFAULT'] = {'ServerAliveInterval': '-1'}
>>> with open('override.ini', 'w') as configfile:
... config_override.write(configfile)
... >>> config_override = configparser.ConfigParser()
>>> config_override.read(['example.ini', 'overr... | trusted_official_docs | CPython Docs | .. doctest::
>>> config_override = configparser.ConfigParser()
>>> config_override['DEFAULT'] = {'ServerAliveInterval': '-1'}
>>> with open('override.ini', 'w') as configfile:
... config_override.write(configfile)
... >>> config_override = configparser.ConfigParser()
>>> config_override.read(['example.ini', 'overr... | .. doctest::
>>> config_override = configparser.ConfigParser()
>>> config_override['DEFAULT'] = {'ServerAliveInterval': '-1'}
>>> with open('override.ini', 'w') as configfile:
... config_override.write(configfile)
... >>> config_override = configparser.ConfigParser()
>>> config_override.read(['example.ini', 'overr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dcb98587-628d-4557-b1b9-3acc0f216826 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,053 | supabase-export-v2 | b08f6644aa3743c5 | .. method:: set(section, option, value)
If the given section exists, set the given option to the specified value;
otherwise raise :exc:`NoSectionError`. While it is possible to use
:class:`RawConfigParser` (or :class:`ConfigParser` with *raw* parameters
set to true) for *internal* storage of non-string values, full
... | trusted_official_docs | CPython Docs | .. method:: set(section, option, value)
If the given section exists, set the given option to the specified value;
otherwise raise :exc:`NoSectionError`. While it is possible to use
:class:`RawConfigParser` (or :class:`ConfigParser` with *raw* parameters
set to true) for *internal* storage of non-string values, full
... | .. method:: set(section, option, value)
If the given section exists, set the given option to the specified value;
otherwise raise :exc:`NoSectionError`. While it is possible to use
:class:`RawConfigParser` (or :class:`ConfigParser` with *raw* parameters
set to true) for *internal* storage of non-string values, full
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
de0d3050-bb12-4e23-9cd3-4e5648c56060 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,808 | supabase-export-v2 | 529b061a2803ee3d | parser is configured to allow an unnamed top level section with ``allow_unnamed_section=True``. In this case, the keys/values may be retrieved by :const:`UNNAMED_SECTION` as in ``config[UNNAMED_SECTION]``.
Configuration files may include comments, prefixed by specific
characters (``#`` and ``;`` by default [1]_). Comme... | trusted_official_docs | CPython Docs | parser is configured to allow an unnamed top level section with ``allow_unnamed_section=True``. In this case, the keys/values may be retrieved by :const:`UNNAMED_SECTION` as in ``config[UNNAMED_SECTION]``.
Configuration files may include comments, prefixed by specific
characters (``#`` and ``;`` by default [1]_). Comme... | parser is configured to allow an unnamed top level section with ``allow_unnamed_section=True``. In this case, the keys/values may be retrieved by :const:`UNNAMED_SECTION` as in ``config[UNNAMED_SECTION]``.
Configuration files may include comments, prefixed by specific
characters (``#`` and ``;`` by default [1]_). Comme... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df9376ce-8e2f-4538-95a7-db95171e2f8f | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,041 | supabase-export-v2 | 7663dabb66eaa847 | .. class:: RawConfigParser(defaults=None, dict_type=dict, \ allow_no_value=False, *, delimiters=('=', ':'), \ comment_prefixes=('#', ';'), \ inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ interpolation=BasicInterpolation(), converters={}, \ allow_u... | trusted_official_docs | CPython Docs | .. class:: RawConfigParser(defaults=None, dict_type=dict, \ allow_no_value=False, *, delimiters=('=', ':'), \ comment_prefixes=('#', ';'), \ inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ interpolation=BasicInterpolation(), converters={}, \ allow_u... | .. class:: RawConfigParser(defaults=None, dict_type=dict, \ allow_no_value=False, *, delimiters=('=', ':'), \ comment_prefixes=('#', ';'), \ inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ interpolation=BasicInterpolation(), converters={}, \ allow_u... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e018349f-a0d4-4b64-895e-3102981380ed | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,993 | supabase-export-v2 | 9505dd9a301c8e9f | Read and parse configuration data from *f* which must be an iterable yielding Unicode strings (for example files opened in text mode).
Optional argument *source* specifies the name of the file being read. If
not given and *f* has a :attr:`!name` attribute, that is used for
*source*; the default is ``'<???>'``. | trusted_official_docs | CPython Docs | Read and parse configuration data from *f* which must be an iterable yielding Unicode strings (for example files opened in text mode).
Optional argument *source* specifies the name of the file being read. If
not given and *f* has a :attr:`!name` attribute, that is used for
*source*; the default is ``'<???>'``. | Read and parse configuration data from *f* which must be an iterable yielding Unicode strings (for example files opened in text mode).
Optional argument *source* specifies the name of the file being read. If
not given and *f* has a :attr:`!name` attribute, that is used for
*source*; the default is ``'<???>'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e1a2d524-ab18-4d3a-a936-e053d7b4833e | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,984 | supabase-export-v2 | 0598718f6e63a4af | Attempt to read and parse an iterable of filenames, returning a list of filenames which were successfully parsed.
If *filenames* is a string, a :class:`bytes` object or a
:term:`path-like object`, it is treated as
a single filename. If a file named in *filenames* cannot be opened, that
file will be ignored. This is ... | trusted_official_docs | CPython Docs | Attempt to read and parse an iterable of filenames, returning a list of filenames which were successfully parsed.
If *filenames* is a string, a :class:`bytes` object or a
:term:`path-like object`, it is treated as
a single filename. If a file named in *filenames* cannot be opened, that
file will be ignored. This is ... | Attempt to read and parse an iterable of filenames, returning a list of filenames which were successfully parsed.
If *filenames* is a string, a :class:`bytes` object or a
:term:`path-like object`, it is treated as
a single filename. If a file named in *filenames* cannot be opened, that
file will be ignored. This is ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e58bc194-ccba-4beb-a7c6-adf7ea577645 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,886 | supabase-export-v2 | 65c61ed689e306a1 | circumstances, the only way of storing comment prefix characters at the beginning of a line in multiline values is to interpolate the prefix, for example::
>>> from configparser import ConfigParser, ExtendedInterpolation
>>> parser = ConfigParser(interpolation=ExtendedInterpolation())
>>> # the default BasicInterpola... | trusted_official_docs | CPython Docs | circumstances, the only way of storing comment prefix characters at the beginning of a line in multiline values is to interpolate the prefix, for example::
>>> from configparser import ConfigParser, ExtendedInterpolation
>>> parser = ConfigParser(interpolation=ExtendedInterpolation())
>>> # the default BasicInterpola... | circumstances, the only way of storing comment prefix characters at the beginning of a line in multiline values is to interpolate the prefix, for example::
>>> from configparser import ConfigParser, ExtendedInterpolation
>>> parser = ConfigParser(interpolation=ExtendedInterpolation())
>>> # the default BasicInterpola... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e5eca7db-d36d-42cb-9e57-6da23df6b330 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,089 | supabase-export-v2 | 1026a860b076c4f9 | .. rubric:: Footnotes
.. [1] Config parsers allow for heavy customization. If you are interested in
changing the behaviour outlined by the footnote reference, consult the
`Customizing Parser Behaviour`_ section. | trusted_official_docs | CPython Docs | .. rubric:: Footnotes
.. [1] Config parsers allow for heavy customization. If you are interested in
changing the behaviour outlined by the footnote reference, consult the
`Customizing Parser Behaviour`_ section. | .. rubric:: Footnotes
.. [1] Config parsers allow for heavy customization. If you are interested in
changing the behaviour outlined by the footnote reference, consult the
`Customizing Parser Behaviour`_ section. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e62819df-a0db-4552-a71a-86febe5caec1 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,032 | supabase-export-v2 | 04236c3fe2ef8b8b | instance, to a function that takes a string argument and returns a string. Setting it to ``str``, for example, would make option names case sensitive::
cfgparser = ConfigParser()
cfgparser.optionxform = str | trusted_official_docs | CPython Docs | instance, to a function that takes a string argument and returns a string. Setting it to ``str``, for example, would make option names case sensitive::
cfgparser = ConfigParser()
cfgparser.optionxform = str | instance, to a function that takes a string argument and returns a string. Setting it to ``str``, for example, would make option names case sensitive::
cfgparser = ConfigParser()
cfgparser.optionxform = str | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e677a941-e906-4878-bc60-a6ff48154279 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,761 | supabase-export-v2 | 47c2734c7e1ba251 | Module :mod:`shlex` Support for creating Unix shell-like mini-languages which can also be used for application configuration files.
Module :mod:`json`
The ``json`` module implements a subset of JavaScript syntax which is
sometimes used for configuration, but does not support comments. | trusted_official_docs | CPython Docs | Module :mod:`shlex` Support for creating Unix shell-like mini-languages which can also be used for application configuration files.
Module :mod:`json`
The ``json`` module implements a subset of JavaScript syntax which is
sometimes used for configuration, but does not support comments. | Module :mod:`shlex` Support for creating Unix shell-like mini-languages which can also be used for application configuration files.
Module :mod:`json`
The ``json`` module implements a subset of JavaScript syntax which is
sometimes used for configuration, but does not support comments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea5deb4f-d670-486a-bd76-bedaa02de8e9 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,851 | supabase-export-v2 | 2e3235e2683c4589 | "a" in parser["section"] "A" in parser["section"]
* All sections include ``DEFAULTSECT`` values as well which means that
``.clear()`` on a section may not leave the section visibly empty. This is
because default values cannot be deleted from the section (because technically
they are not there). If they are overridde... | trusted_official_docs | CPython Docs | "a" in parser["section"] "A" in parser["section"]
* All sections include ``DEFAULTSECT`` values as well which means that
``.clear()`` on a section may not leave the section visibly empty. This is
because default values cannot be deleted from the section (because technically
they are not there). If they are overridde... | "a" in parser["section"] "A" in parser["section"]
* All sections include ``DEFAULTSECT`` values as well which means that
``.clear()`` on a section may not leave the section visibly empty. This is
because default values cannot be deleted from the section (because technically
they are not there). If they are overridde... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed7db8ea-011b-46e2-93aa-fdfe00580053 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,776 | supabase-export-v2 | 7f680e1af55f94b8 | .. doctest::
>>> config = configparser.ConfigParser()
>>> config.sections()
[]
>>> config.read('example.ini')
['example.ini']
>>> config.sections()
['forge.example', 'topsecret.server.example']
>>> 'forge.example' in config
True
>>> 'python.org' in config
False
>>> config['forge.example']['User']
'hg'
>>> ... | trusted_official_docs | CPython Docs | .. doctest::
>>> config = configparser.ConfigParser()
>>> config.sections()
[]
>>> config.read('example.ini')
['example.ini']
>>> config.sections()
['forge.example', 'topsecret.server.example']
>>> 'forge.example' in config
True
>>> 'python.org' in config
False
>>> config['forge.example']['User']
'hg'
>>> ... | .. doctest::
>>> config = configparser.ConfigParser()
>>> config.sections()
[]
>>> config.read('example.ini')
['example.ini']
>>> config.sections()
['forge.example', 'topsecret.server.example']
>>> 'forge.example' in config
True
>>> 'python.org' in config
False
>>> config['forge.example']['User']
'hg'
>>> ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ee83a458-67db-4357-bd70-b57a044fb869 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,858 | supabase-export-v2 | 30c98e96824a79c2 | ``parser.items(section, raw, vars)``. The latter call returns a list of *option*, *value* pairs for a specified ``section``, with all interpolations expanded (unless ``raw=True`` is provided).
The mapping protocol is implemented on top of the existing legacy API so that
subclasses overriding the original interface stil... | trusted_official_docs | CPython Docs | ``parser.items(section, raw, vars)``. The latter call returns a list of *option*, *value* pairs for a specified ``section``, with all interpolations expanded (unless ``raw=True`` is provided).
The mapping protocol is implemented on top of the existing legacy API so that
subclasses overriding the original interface stil... | ``parser.items(section, raw, vars)``. The latter call returns a list of *option*, *value* pairs for a specified ``section``, with all interpolations expanded (unless ``raw=True`` is provided).
The mapping protocol is implemented on top of the existing legacy API so that
subclasses overriding the original interface stil... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f1e73b38-3cc6-413d-bb4d-ca4b6f8a26d8 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,880 | supabase-export-v2 | b533a143ecb1c5d4 | section. The first occurrence of a delimiting substring on a line is considered a delimiter. This means values (but not keys) can contain the delimiters.
See also the *space_around_delimiters* argument to
:meth:`ConfigParser.write`. | trusted_official_docs | CPython Docs | section. The first occurrence of a delimiting substring on a line is considered a delimiter. This means values (but not keys) can contain the delimiters.
See also the *space_around_delimiters* argument to
:meth:`ConfigParser.write`. | section. The first occurrence of a delimiting substring on a line is considered a delimiter. This means values (but not keys) can contain the delimiters.
See also the *space_around_delimiters* argument to
:meth:`ConfigParser.write`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f260b12f-2898-4cbc-a21b-d096e1d4d82a | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,847 | supabase-export-v2 | 6526c61435f689dd | for functionality that enables using custom objects as if they were dictionaries. In case of :mod:`!configparser`, the mapping interface implementation is using the ``parser['section']['option']`` notation.
``parser['section']`` in particular returns a proxy for the section's data in
the parser. This means that the val... | trusted_official_docs | CPython Docs | for functionality that enables using custom objects as if they were dictionaries. In case of :mod:`!configparser`, the mapping interface implementation is using the ``parser['section']['option']`` notation.
``parser['section']`` in particular returns a proxy for the section's data in
the parser. This means that the val... | for functionality that enables using custom objects as if they were dictionaries. In case of :mod:`!configparser`, the mapping interface implementation is using the ``parser['section']['option']`` notation.
``parser['section']`` in particular returns a proxy for the section's data in
the parser. This means that the val... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f5339091-4baa-44a9-a3ff-72d3d28a08de | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,816 | supabase-export-v2 | 4f55b05004967e8a | can be harmful because they prevent users # from using the delimiting characters as parts of values. # That being said, this can be customized.
[Sections Can Be Indented]
can_values_be_as_well = True
does_that_mean_anything_special = False
purpose = formatting for readability
multiline_values = are
handled just fi... | trusted_official_docs | CPython Docs | can be harmful because they prevent users # from using the delimiting characters as parts of values. # That being said, this can be customized.
[Sections Can Be Indented]
can_values_be_as_well = True
does_that_mean_anything_special = False
purpose = formatting for readability
multiline_values = are
handled just fi... | can be harmful because they prevent users # from using the delimiting characters as parts of values. # That being said, this can be customized.
[Sections Can Be Indented]
can_values_be_as_well = True
does_that_mean_anything_special = False
purpose = formatting for readability
multiline_values = are
handled just fi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f5e4461f-0b72-4685-b2c7-4b1addbdf837 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,019 | supabase-export-v2 | fb168ddac2432b38 | .. method:: set(section, option, value)
If the given section exists, set the given option to the specified value;
otherwise raise :exc:`NoSectionError`. *option* and *value* must be
strings; if not, :exc:`TypeError` is raised. | trusted_official_docs | CPython Docs | .. method:: set(section, option, value)
If the given section exists, set the given option to the specified value;
otherwise raise :exc:`NoSectionError`. *option* and *value* must be
strings; if not, :exc:`TypeError` is raised. | .. method:: set(section, option, value)
If the given section exists, set the given option to the specified value;
otherwise raise :exc:`NoSectionError`. *option* and *value* must be
strings; if not, :exc:`TypeError` is raised. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f67f8678-93e2-432c-9139-be4e01092b09 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,018 | supabase-export-v2 | 49dba4c3f46d74cc | .. versionchanged:: 3.8 Items present in *vars* no longer appear in the result. The previous behaviour mixed actual parser options with variables provided for interpolation.
.. method:: set(section, option, value) | trusted_official_docs | CPython Docs | .. versionchanged:: 3.8 Items present in *vars* no longer appear in the result. The previous behaviour mixed actual parser options with variables provided for interpolation.
.. method:: set(section, option, value) | .. versionchanged:: 3.8 Items present in *vars* no longer appear in the result. The previous behaviour mixed actual parser options with variables provided for interpolation.
.. method:: set(section, option, value) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f7e83c30-ad0e-4e42-a37b-0a745ef70da6 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,922 | supabase-export-v2 | 5bfe1c568811f872 | Legacy API Examples -------------------
Mainly because of backwards compatibility concerns, :mod:`!configparser`
provides also a legacy API with explicit ``get``/``set`` methods. While there
are valid use cases for the methods outlined below, mapping protocol access is
preferred for new projects. The legacy API is at t... | trusted_official_docs | CPython Docs | Legacy API Examples -------------------
Mainly because of backwards compatibility concerns, :mod:`!configparser`
provides also a legacy API with explicit ``get``/``set`` methods. While there
are valid use cases for the methods outlined below, mapping protocol access is
preferred for new projects. The legacy API is at t... | Legacy API Examples -------------------
Mainly because of backwards compatibility concerns, :mod:`!configparser`
provides also a legacy API with explicit ``get``/``set`` methods. While there
are valid use cases for the methods outlined below, mapping protocol access is
preferred for new projects. The legacy API is at t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa15dd99-c374-4422-8a89-add505cf6c2d | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,042 | supabase-export-v2 | 96e534d819d102ed | allows for non-string section names, option names, and values via its unsafe ``add_section`` and ``set`` methods, as well as the legacy ``defaults=`` keyword argument handling.
.. versionchanged:: 3.2
*allow_no_value*, *delimiters*, *comment_prefixes*, *strict*,
*empty_lines_in_values*, *default_section* and *interpo... | trusted_official_docs | CPython Docs | allows for non-string section names, option names, and values via its unsafe ``add_section`` and ``set`` methods, as well as the legacy ``defaults=`` keyword argument handling.
.. versionchanged:: 3.2
*allow_no_value*, *delimiters*, *comment_prefixes*, *strict*,
*empty_lines_in_values*, *default_section* and *interpo... | allows for non-string section names, option names, and values via its unsafe ``add_section`` and ``set`` methods, as well as the legacy ``defaults=`` keyword argument handling.
.. versionchanged:: 3.2
*allow_no_value*, *delimiters*, *comment_prefixes*, *strict*,
*empty_lines_in_values*, *default_section* and *interpo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fbb4980f-d469-484f-809d-38b0bd86cd5d | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,852 | supabase-export-v2 | e3e21242f5e920d8 | If they are overridden in the section, deleting causes the default value to be visible again. Trying to delete a default value causes a :exc:`KeyError`.
* ``DEFAULTSECT`` cannot be removed from the parser: | trusted_official_docs | CPython Docs | If they are overridden in the section, deleting causes the default value to be visible again. Trying to delete a default value causes a :exc:`KeyError`.
* ``DEFAULTSECT`` cannot be removed from the parser: | If they are overridden in the section, deleting causes the default value to be visible again. Trying to delete a default value causes a :exc:`KeyError`.
* ``DEFAULTSECT`` cannot be removed from the parser: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fbb9d580-9b31-4492-bbcf-725621186496 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 15,022 | supabase-export-v2 | c8bd692d8ee7f3c6 | (accepting strings). This representation can be parsed by a future :meth:`read` call. If *space_around_delimiters* is true, delimiters between keys and values are surrounded by spaces.
.. versionchanged:: 3.14
Raises InvalidWriteError if this would write a representation which cannot
be accurately parsed by a future ... | trusted_official_docs | CPython Docs | (accepting strings). This representation can be parsed by a future :meth:`read` call. If *space_around_delimiters* is true, delimiters between keys and values are surrounded by spaces.
.. versionchanged:: 3.14
Raises InvalidWriteError if this would write a representation which cannot
be accurately parsed by a future ... | (accepting strings). This representation can be parsed by a future :meth:`read` call. If *space_around_delimiters* is true, delimiters between keys and values are surrounded by spaces.
.. versionchanged:: 3.14
Raises InvalidWriteError if this would write a representation which cannot
be accurately parsed by a future ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fbe9d874-34f8-49e8-9ace-b75f79c44ae5 | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,868 | supabase-export-v2 | 07192a26352677cd | An alternative dictionary type can be used for example to sort sections and options on write-back.
Please note: there are ways to add a set of key-value pairs in a single
operation. When you use a regular dictionary in those operations, the order
of the keys will be ordered. For example: | trusted_official_docs | CPython Docs | An alternative dictionary type can be used for example to sort sections and options on write-back.
Please note: there are ways to add a set of key-value pairs in a single
operation. When you use a regular dictionary in those operations, the order
of the keys will be ordered. For example: | An alternative dictionary type can be used for example to sort sections and options on write-back.
Please note: there are ways to add a set of key-value pairs in a single
operation. When you use a regular dictionary in those operations, the order
of the keys will be ordered. For example: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fe075326-f1a6-4380-bc36-91e4be35047e | CPython Docs | file://datasets/cpython/Doc/library/configparser.rst | unknown | 1c1a2652-09ff-48b4-9ab2-aae53e157cab | 14,872 | supabase-export-v2 | 68b3aff74f518703 | * *allow_no_value*, default value: ``False``
Some configuration files are known to include settings without values, but
which otherwise conform to the syntax supported by :mod:`!configparser`. The
*allow_no_value* parameter to the constructor can be used to
indicate that such values should be accepted: | trusted_official_docs | CPython Docs | * *allow_no_value*, default value: ``False``
Some configuration files are known to include settings without values, but
which otherwise conform to the syntax supported by :mod:`!configparser`. The
*allow_no_value* parameter to the constructor can be used to
indicate that such values should be accepted: | * *allow_no_value*, default value: ``False``
Some configuration files are known to include settings without values, but
which otherwise conform to the syntax supported by :mod:`!configparser`. The
*allow_no_value* parameter to the constructor can be used to
indicate that such values should be accepted: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
08097600-af48-429b-803a-eef52ef2be2c | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,181 | supabase-export-v2 | dbdf64504cca2319 | placement is counted from the right end of the output by default, if you wish to count from the left, supply a negative *bytes_per_sep* value.
>>> import binascii
>>> binascii.b2a_hex(b'\xb9\x01\xef')
b'b901ef'
>>> binascii.hexlify(b'\xb9\x01\xef', '-')
b'b9-01-ef'
>>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2)
b... | trusted_official_docs | CPython Docs | placement is counted from the right end of the output by default, if you wish to count from the left, supply a negative *bytes_per_sep* value.
>>> import binascii
>>> binascii.b2a_hex(b'\xb9\x01\xef')
b'b901ef'
>>> binascii.hexlify(b'\xb9\x01\xef', '-')
b'b9-01-ef'
>>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2)
b... | placement is counted from the right end of the output by default, if you wish to count from the left, supply a negative *bytes_per_sep* value.
>>> import binascii
>>> binascii.b2a_hex(b'\xb9\x01\xef')
b'b901ef'
>>> binascii.hexlify(b'\xb9\x01\xef', '-')
b'b9-01-ef'
>>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2)
b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a071d10-b328-43a5-a5df-1aa66436cfd2 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,112 | supabase-export-v2 | 33a39d4070089bd6 | padding bits in the last group are rejected with :exc:`binascii.Error`, enforcing canonical encoding as defined in :rfc:`4648` section 3.5. This check is independent of *strict_mode*.
.. versionchanged:: 3.11
Added the *strict_mode* parameter. | trusted_official_docs | CPython Docs | padding bits in the last group are rejected with :exc:`binascii.Error`, enforcing canonical encoding as defined in :rfc:`4648` section 3.5. This check is independent of *strict_mode*.
.. versionchanged:: 3.11
Added the *strict_mode* parameter. | padding bits in the last group are rejected with :exc:`binascii.Error`, enforcing canonical encoding as defined in :rfc:`4648` section 3.5. This check is independent of *strict_mode*.
.. versionchanged:: 3.11
Added the *strict_mode* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0b1d3a50-30ad-4cc2-b799-11913137bf9e | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,133 | supabase-export-v2 | 662a02ad08d09f68 | special short sequence 'y' instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This feature is not supported by the "standard" Ascii85 encoding.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any ... | trusted_official_docs | CPython Docs | special short sequence 'y' instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This feature is not supported by the "standard" Ascii85 encoding.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any ... | special short sequence 'y' instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This feature is not supported by the "standard" Ascii85 encoding.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1319184a-84e8-45c7-a774-636412272d7b | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,110 | supabase-export-v2 | 4b1bd26a52bd4a12 | Valid base64:
* Conforms to :rfc:`4648`. * Contains only characters from the base64 alphabet. * Contains no excess data after padding (including excess padding, newlines, etc.). * Does not start with a padding. | trusted_official_docs | CPython Docs | Valid base64:
* Conforms to :rfc:`4648`. * Contains only characters from the base64 alphabet. * Contains no excess data after padding (including excess padding, newlines, etc.). * Does not start with a padding. | Valid base64:
* Conforms to :rfc:`4648`. * Contains only characters from the base64 alphabet. * Contains no excess data after padding (including excess padding, newlines, etc.). * Does not start with a padding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18551de2-d49a-4b60-b4c8-96bc6f8f46cf | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,107 | supabase-export-v2 | c1b24043a739314b | character, which means it is silently discarded when *strict_mode* is false, or causes an :exc:`~binascii.Error` when *strict_mode* is true unless b'=' is included in *ignorechars*.
If *ignorechars* is specified, it should be a :term:`bytes-like object`
containing characters to ignore from the input when *strict_mode*... | trusted_official_docs | CPython Docs | character, which means it is silently discarded when *strict_mode* is false, or causes an :exc:`~binascii.Error` when *strict_mode* is true unless b'=' is included in *ignorechars*.
If *ignorechars* is specified, it should be a :term:`bytes-like object`
containing characters to ignore from the input when *strict_mode*... | character, which means it is silently discarded when *strict_mode* is false, or causes an :exc:`~binascii.Error` when *strict_mode* is true unless b'=' is included in *ignorechars*.
If *ignorechars* is specified, it should be a :term:`bytes-like object`
containing characters to ignore from the input when *strict_mode*... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19d8c361-bf50-4a73-a500-cb13ea5f3208 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,179 | supabase-export-v2 | 5a2a57bd60f89145 | byte of *data* is converted into the corresponding 2-digit hex representation. The returned bytes object is therefore twice as long as the length of *data*.
Similar functionality (but returning a text string) is also conveniently
accessible using the :meth:`bytes.hex` method. | trusted_official_docs | CPython Docs | byte of *data* is converted into the corresponding 2-digit hex representation. The returned bytes object is therefore twice as long as the length of *data*.
Similar functionality (but returning a text string) is also conveniently
accessible using the :meth:`bytes.hex` method. | byte of *data* is converted into the corresponding 2-digit hex representation. The returned bytes object is therefore twice as long as the length of *data*.
Similar functionality (but returning a text string) is also conveniently
accessible using the :meth:`bytes.hex` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1aa5274f-bca3-4ac2-9612-f27df4e64de7 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,125 | supabase-export-v2 | 1906c0e500f4a606 | the 'y' short sequence should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Ascii85 encoding.
*adobe* controls whether the input sequence is in Adobe Ascii85 format
(i.e. is framed with <~ and ~>). | trusted_official_docs | CPython Docs | the 'y' short sequence should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Ascii85 encoding.
*adobe* controls whether the input sequence is in Adobe Ascii85 format
(i.e. is framed with <~ and ~>). | the 'y' short sequence should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Ascii85 encoding.
*adobe* controls whether the input sequence is in Adobe Ascii85 format
(i.e. is framed with <~ and ~>). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
36710c89-9eb1-4c94-ad21-cb78f09b49a3 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,158 | supabase-export-v2 | a6571b15ddb77951 | *ignorechars* contains the pad character ``'='``, the pad characters presented before the end of the encoded data and the excess pad characters will be ignored.
If *canonical* is true, non-zero padding bits in the last group are rejected
with :exc:`binascii.Error`, enforcing canonical encoding as defined in
:rfc:`464... | trusted_official_docs | CPython Docs | *ignorechars* contains the pad character ``'='``, the pad characters presented before the end of the encoded data and the excess pad characters will be ignored.
If *canonical* is true, non-zero padding bits in the last group are rejected
with :exc:`binascii.Error`, enforcing canonical encoding as defined in
:rfc:`464... | *ignorechars* contains the pad character ``'='``, the pad characters presented before the end of the encoded data and the excess pad characters will be ignored.
If *canonical* is true, non-zero padding bits in the last group are rejected
with :exc:`binascii.Error`, enforcing canonical encoding as defined in
:rfc:`464... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3803e596-0d81-4b11-a7d6-6b4a58749214 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,105 | supabase-export-v2 | 4f5b5bdc2f62f2b4 | Convert a block of base64 data back to binary and return the binary data. More than one line may be passed at a time.
Optional *alphabet* must be a :class:`bytes` object of length 64 which
specifies an alternative alphabet. | trusted_official_docs | CPython Docs | Convert a block of base64 data back to binary and return the binary data. More than one line may be passed at a time.
Optional *alphabet* must be a :class:`bytes` object of length 64 which
specifies an alternative alphabet. | Convert a block of base64 data back to binary and return the binary data. More than one line may be passed at a time.
Optional *alphabet* must be a :class:`bytes` object of length 64 which
specifies an alternative alphabet. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3a6764b8-c211-4d45-9187-34320c691ed7 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,163 | supabase-export-v2 | 3405727bf184ced5 | Convert binary data to a line of ASCII characters in base32 coding, as specified in :rfc:`4648`. The return value is the converted line.
Optional *alphabet* must be a :term:`bytes-like object` of length 32 which
specifies an alternative alphabet. | trusted_official_docs | CPython Docs | Convert binary data to a line of ASCII characters in base32 coding, as specified in :rfc:`4648`. The return value is the converted line.
Optional *alphabet* must be a :term:`bytes-like object` of length 32 which
specifies an alternative alphabet. | Convert binary data to a line of ASCII characters in base32 coding, as specified in :rfc:`4648`. The return value is the converted line.
Optional *alphabet* must be a :term:`bytes-like object` of length 32 which
specifies an alternative alphabet. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c53fe1d-0364-4c51-ab2e-2ddca443593c | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,096 | supabase-export-v2 | de4a5dc43dd7c0d1 | strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as :class:`bytes`, :class:`bytearray` and other objects that support the buffer protocol).
.. versionchanged:: 3.3
ASCII-only unicode strings are now accepted by the ``a2b_*`` functions. | trusted_official_docs | CPython Docs | strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as :class:`bytes`, :class:`bytearray` and other objects that support the buffer protocol).
.. versionchanged:: 3.3
ASCII-only unicode strings are now accepted by the ``a2b_*`` functions. | strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as :class:`bytes`, :class:`bytearray` and other objects that support the buffer protocol).
.. versionchanged:: 3.3
ASCII-only unicode strings are now accepted by the ``a2b_*`` functions. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3d8ab527-2d05-49bc-a880-202aeb5c9456 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,159 | supabase-export-v2 | 347772870bcf5d75 | If *canonical* is true, non-zero padding bits in the last group are rejected with :exc:`binascii.Error`, enforcing canonical encoding as defined in :rfc:`4648` section 3.5.
Invalid base32 data will raise :exc:`binascii.Error`. | trusted_official_docs | CPython Docs | If *canonical* is true, non-zero padding bits in the last group are rejected with :exc:`binascii.Error`, enforcing canonical encoding as defined in :rfc:`4648` section 3.5.
Invalid base32 data will raise :exc:`binascii.Error`. | If *canonical* is true, non-zero padding bits in the last group are rejected with :exc:`binascii.Error`, enforcing canonical encoding as defined in :rfc:`4648` section 3.5.
Invalid base32 data will raise :exc:`binascii.Error`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3ee7986a-934d-4dee-bb59-718eebd44258 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,111 | supabase-export-v2 | 5e4c558e39595255 | only characters from the base64 alphabet. * Contains no excess data after padding (including excess padding, newlines, etc.). * Does not start with a padding.
If *canonical* is true, non-zero padding bits in the last group are rejected
with :exc:`binascii.Error`, enforcing canonical encoding as defined in
:rfc:`4648`... | trusted_official_docs | CPython Docs | only characters from the base64 alphabet. * Contains no excess data after padding (including excess padding, newlines, etc.). * Does not start with a padding.
If *canonical* is true, non-zero padding bits in the last group are rejected
with :exc:`binascii.Error`, enforcing canonical encoding as defined in
:rfc:`4648`... | only characters from the base64 alphabet. * Contains no excess data after padding (including excess padding, newlines, etc.). * Does not start with a padding.
If *canonical* is true, non-zero padding bits in the last group are rejected
with :exc:`binascii.Error`, enforcing canonical encoding as defined in
:rfc:`4648`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
430a2ff0-9a05-47b6-8768-47f28f50770b | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,172 | supabase-export-v2 | 23484958ca66a168 | .. function:: crc_hqx(data, value)
Compute a 16-bit CRC value of *data*, starting with *value* as the
initial CRC, and return the result. This uses the CRC-CCITT polynomial
*x*:sup:`16` + *x*:sup:`12` + *x*:sup:`5` + 1, often represented as
0x1021. This CRC is used in the binhex4 format. | trusted_official_docs | CPython Docs | .. function:: crc_hqx(data, value)
Compute a 16-bit CRC value of *data*, starting with *value* as the
initial CRC, and return the result. This uses the CRC-CCITT polynomial
*x*:sup:`16` + *x*:sup:`12` + *x*:sup:`5` + 1, often represented as
0x1021. This CRC is used in the binhex4 format. | .. function:: crc_hqx(data, value)
Compute a 16-bit CRC value of *data*, starting with *value* as the
initial CRC, and return the result. This uses the CRC-CCITT polynomial
*x*:sup:`16` + *x*:sup:`12` + *x*:sup:`5` + 1, often represented as
0x1021. This CRC is used in the binhex4 format. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4482abd3-207b-44a3-9a02-3dbc421ff242 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,182 | supabase-export-v2 | b5bd82dc5a6a5546 | >>> import binascii >>> binascii.b2a_hex(b'\xb9\x01\xef') b'b901ef' >>> binascii.hexlify(b'\xb9\x01\xef', '-') b'b9-01-ef' >>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2) b'b9_01ef' >>> binascii.b2a_hex(b'\xb9\x01\xef', b' ', -2) b'b901 ef'
.. versionchanged:: 3.8
The *sep* and *bytes_per_sep* parameters were added. | trusted_official_docs | CPython Docs | >>> import binascii >>> binascii.b2a_hex(b'\xb9\x01\xef') b'b901ef' >>> binascii.hexlify(b'\xb9\x01\xef', '-') b'b9-01-ef' >>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2) b'b9_01ef' >>> binascii.b2a_hex(b'\xb9\x01\xef', b' ', -2) b'b901 ef'
.. versionchanged:: 3.8
The *sep* and *bytes_per_sep* parameters were added. | >>> import binascii >>> binascii.b2a_hex(b'\xb9\x01\xef') b'b901ef' >>> binascii.hexlify(b'\xb9\x01\xef', '-') b'b9-01-ef' >>> binascii.b2a_hex(b'\xb9\x01\xef', b'_', 2) b'b9_01ef' >>> binascii.b2a_hex(b'\xb9\x01\xef', b' ', -2) b'b901 ef'
.. versionchanged:: 3.8
The *sep* and *bytes_per_sep* parameters were added. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
44b9e703-bc94-4967-b105-839d0ea08bb4 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,118 | supabase-export-v2 | 9b8e2c72d23a4140 | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *newline* is true (default), a newline character will be added
at the end of the output. | trusted_official_docs | CPython Docs | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *newline* is true (default), a newline character will be added
at the end of the output. | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *newline* is true (default), a newline character will be added
at the end of the output. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
457d7b72-dad8-4262-a414-03b85e919b9f | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,178 | supabase-export-v2 | b420be48b93c25a5 | .. function:: b2a_hex(data[, sep[, bytes_per_sep=1]]) hexlify(data[, sep[, bytes_per_sep=1]])
Return the hexadecimal representation of the binary *data*. Every byte of
*data* is converted into the corresponding 2-digit hex representation. The
returned bytes object is therefore twice as long as the length of *data*. | trusted_official_docs | CPython Docs | .. function:: b2a_hex(data[, sep[, bytes_per_sep=1]]) hexlify(data[, sep[, bytes_per_sep=1]])
Return the hexadecimal representation of the binary *data*. Every byte of
*data* is converted into the corresponding 2-digit hex representation. The
returned bytes object is therefore twice as long as the length of *data*. | .. function:: b2a_hex(data[, sep[, bytes_per_sep=1]]) hexlify(data[, sep[, bytes_per_sep=1]])
Return the hexadecimal representation of the binary *data*. Every byte of
*data* is converted into the corresponding 2-digit hex representation. The
returned bytes object is therefore twice as long as the length of *data*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
46a19311-09aa-446c-b010-9461329fb4bc | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,123 | supabase-export-v2 | aaa1778b783013b4 | Convert Ascii85 data back to binary and return the binary data.
Valid Ascii85 data contains characters from the Ascii85 alphabet in groups
of five (except for the final group, which may have from two to five
characters). Each group encodes 32 bits of binary data in the range from
``0`` to ``2 ** 32 - 1``, inclusive.... | trusted_official_docs | CPython Docs | Convert Ascii85 data back to binary and return the binary data.
Valid Ascii85 data contains characters from the Ascii85 alphabet in groups
of five (except for the final group, which may have from two to five
characters). Each group encodes 32 bits of binary data in the range from
``0`` to ``2 ** 32 - 1``, inclusive.... | Convert Ascii85 data back to binary and return the binary data.
Valid Ascii85 data contains characters from the Ascii85 alphabet in groups
of five (except for the final group, which may have from two to five
characters). Each group encodes 32 bits of binary data in the range from
``0`` to ``2 ** 32 - 1``, inclusive.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
48f83c29-3aa4-4141-bec4-5d5abb2ee18a | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,127 | supabase-export-v2 | ee37d07e952884b9 | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input. This should only contain whitespace characters.
If *canonical* is true, non-canonical encodings are rejected with
:exc:`binascii.Error`. Here "canonical" means the encoding that
:func:`b2a_ascii85` would produce: the `... | trusted_official_docs | CPython Docs | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input. This should only contain whitespace characters.
If *canonical* is true, non-canonical encodings are rejected with
:exc:`binascii.Error`. Here "canonical" means the encoding that
:func:`b2a_ascii85` would produce: the `... | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input. This should only contain whitespace characters.
If *canonical* is true, non-canonical encodings are rejected with
:exc:`binascii.Error`. Here "canonical" means the encoding that
:func:`b2a_ascii85` would produce: the `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4af83ef3-93ba-4140-ac59-8ed3a1def04e | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,143 | supabase-export-v2 | b54298933a4a4427 | are rejected with :exc:`binascii.Error`. Here "canonical" means the encoding that :func:`b2a_base85` would produce: partial final groups must use the same padding digits as the encoder.
Invalid Base85 data will raise :exc:`binascii.Error`. | trusted_official_docs | CPython Docs | are rejected with :exc:`binascii.Error`. Here "canonical" means the encoding that :func:`b2a_base85` would produce: partial final groups must use the same padding digits as the encoder.
Invalid Base85 data will raise :exc:`binascii.Error`. | are rejected with :exc:`binascii.Error`. Here "canonical" means the encoding that :func:`b2a_base85` would produce: partial final groups must use the same padding digits as the encoder.
Invalid Base85 data will raise :exc:`binascii.Error`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6798f87a-bc3c-42d2-8c5d-68e99f6d89c4 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,117 | supabase-export-v2 | e009a870fbb69162 | (default), pad the encoded data with the '=' character to a size multiple of 4. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | trusted_official_docs | CPython Docs | (default), pad the encoded data with the '=' character to a size multiple of 4. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | (default), pad the encoded data with the '=' character to a size multiple of 4. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7021c60e-1ade-4ea1-b6d3-c50e7786d378 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,093 | supabase-export-v2 | 9b59f477b5e98db7 | --------------
The :mod:`!binascii` module contains a number of methods to convert between
binary and various ASCII-encoded binary representations. Normally, you will not
use these functions directly but use wrapper modules like
:mod:`base64` instead. The :mod:`!binascii` module contains
low-level functions written in ... | trusted_official_docs | CPython Docs | --------------
The :mod:`!binascii` module contains a number of methods to convert between
binary and various ASCII-encoded binary representations. Normally, you will not
use these functions directly but use wrapper modules like
:mod:`base64` instead. The :mod:`!binascii` module contains
low-level functions written in ... | --------------
The :mod:`!binascii` module contains a number of methods to convert between
binary and various ASCII-encoded binary representations. Normally, you will not
use these functions directly but use wrapper modules like
:mod:`base64` instead. The :mod:`!binascii` module contains
low-level functions written in ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71843f80-db5d-4926-84bd-63221993171f | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,099 | supabase-export-v2 | 63ccb9fdd7692476 | .. function:: a2b_uu(string)
Convert a single line of uuencoded data back to binary and return the binary
data. Lines normally contain 45 (binary) bytes, except for the last line. Line
data may be followed by whitespace. | trusted_official_docs | CPython Docs | .. function:: a2b_uu(string)
Convert a single line of uuencoded data back to binary and return the binary
data. Lines normally contain 45 (binary) bytes, except for the last line. Line
data may be followed by whitespace. | .. function:: a2b_uu(string)
Convert a single line of uuencoded data back to binary and return the binary
data. Lines normally contain 45 (binary) bytes, except for the last line. Line
data may be followed by whitespace. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
749be001-003d-4278-8381-5b63dcfbd93e | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,165 | supabase-export-v2 | e7a30505ac044480 | (default), pad the encoded data with the '=' character to a size multiple of 8. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | trusted_official_docs | CPython Docs | (default), pad the encoded data with the '=' character to a size multiple of 8. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | (default), pad the encoded data with the '=' character to a size multiple of 8. If *padded* is false, do not add the pad characters.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
853b2e96-35bc-4d15-86af-49295259547a | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,134 | supabase-export-v2 | 7e10e25403a84623 | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. Note that the ``btoa`` implementation alway... | trusted_official_docs | CPython Docs | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. Note that the ``btoa`` implementation alway... | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. Note that the ``btoa`` implementation alway... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8cef71aa-16ef-47f6-9d67-811386644689 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,154 | supabase-export-v2 | 3d31dd13344149c6 | to eight characters with ``=``). Each group encodes 40 bits of binary data in the range from ``0`` to ``2 ** 40 - 1``, inclusive.
.. note::
This function does not map lowercase characters (which are invalid in
standard base32) to their uppercase counterparts, nor does it
contextually map ``0`` to ``O`` and ``1`` to ... | trusted_official_docs | CPython Docs | to eight characters with ``=``). Each group encodes 40 bits of binary data in the range from ``0`` to ``2 ** 40 - 1``, inclusive.
.. note::
This function does not map lowercase characters (which are invalid in
standard base32) to their uppercase counterparts, nor does it
contextually map ``0`` to ``O`` and ``1`` to ... | to eight characters with ``=``). Each group encodes 40 bits of binary data in the range from ``0`` to ``2 ** 40 - 1``, inclusive.
.. note::
This function does not map lowercase characters (which are invalid in
standard base32) to their uppercase counterparts, nor does it
contextually map ``0`` to ``O`` and ``1`` to ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8ebbaefc-ae85-4b32-8480-1d7d52908d17 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,185 | supabase-export-v2 | 6d820a60b5d9dee0 | inverse of :func:`b2a_hex`. *hexstr* must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an :exc:`Error` exception is raised.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | trusted_official_docs | CPython Docs | inverse of :func:`b2a_hex`. *hexstr* must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an :exc:`Error` exception is raised.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | inverse of :func:`b2a_hex`. *hexstr* must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an :exc:`Error` exception is raised.
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9192aa9c-228a-4138-a176-16c1df3033c1 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,164 | supabase-export-v2 | 7306a4ebc48d4681 | Optional *alphabet* must be a :term:`bytes-like object` of length 32 which specifies an alternative alphabet.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 8. If *padded* is false, do not add the pad characters. | trusted_official_docs | CPython Docs | Optional *alphabet* must be a :term:`bytes-like object` of length 32 which specifies an alternative alphabet.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 8. If *padded* is false, do not add the pad characters. | Optional *alphabet* must be a :term:`bytes-like object` of length 32 which specifies an alternative alphabet.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 8. If *padded* is false, do not add the pad characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
93d81896-3200-4c23-bd8b-ae41bd171495 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,126 | supabase-export-v2 | b33a1437bcf66c43 | *adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. This should only contain whitespace characters. | trusted_official_docs | CPython Docs | *adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. This should only contain whitespace characters. | *adobe* controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. This should only contain whitespace characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
98fc1a21-5818-425c-aefb-9921474b890c | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,142 | supabase-export-v2 | 869f774f9b0aac24 | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
If *canonical* is true, non-canonical encodings are rejected with
:exc:`binascii.Error`. Here "canonical" means the encoding that
:func:`b2a_base85` would produce: partial final groups must use the
same padding digits... | trusted_official_docs | CPython Docs | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
If *canonical* is true, non-canonical encodings are rejected with
:exc:`binascii.Error`. Here "canonical" means the encoding that
:func:`b2a_base85` would produce: partial final groups must use the
same padding digits... | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
If *canonical* is true, non-canonical encodings are rejected with
:exc:`binascii.Error`. Here "canonical" means the encoding that
:func:`b2a_base85` would produce: partial final groups must use the
same padding digits... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
99a47e64-7d08-4b06-b8f5-7b53e7a5a448 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,095 | supabase-export-v2 | 5dd36e65552b277d | .. note::
``a2b_*`` functions accept Unicode strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as
:class:`bytes`, :class:`bytearray` and other objects that support the buffer
protocol). | trusted_official_docs | CPython Docs | .. note::
``a2b_*`` functions accept Unicode strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as
:class:`bytes`, :class:`bytearray` and other objects that support the buffer
protocol). | .. note::
``a2b_*`` functions accept Unicode strings containing only ASCII characters. Other functions only accept :term:`bytes-like objects <bytes-like object>` (such as
:class:`bytes`, :class:`bytearray` and other objects that support the buffer
protocol). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b9ee22b-a06c-4093-b5bd-4a821511b74b | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,149 | supabase-export-v2 | c4f18b3da8a07efd | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | trusted_official_docs | CPython Docs | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | If *wrapcol* is non-zero, insert a newline (``b'\n'``) character after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines.
If *pad* is true, the input is padded with ``b'\0'`` so its length is a
multiple of 4 bytes before encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9deec322-bd59-4b2d-8de8-56136d509d8e | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,100 | supabase-export-v2 | 4fc840e991500ea0 | to binary and return the binary data. Lines normally contain 45 (binary) bytes, except for the last line. Line data may be followed by whitespace.
.. function:: b2a_uu(data, *, backtick=False) | trusted_official_docs | CPython Docs | to binary and return the binary data. Lines normally contain 45 (binary) bytes, except for the last line. Line data may be followed by whitespace.
.. function:: b2a_uu(data, *, backtick=False) | to binary and return the binary data. Lines normally contain 45 (binary) bytes, except for the last line. Line data may be followed by whitespace.
.. function:: b2a_uu(data, *, backtick=False) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a59200ca-ad01-42be-b534-0c187cce5814 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,175 | supabase-export-v2 | 8c67cc6981dff64a | Since the algorithm is designed for use as a checksum algorithm, it is not suitable for use as a general hash algorithm. Use as follows::
print(binascii.crc32(b"hello world"))
# Or, in two pieces:
crc = binascii.crc32(b"hello")
crc = binascii.crc32(b" world", crc)
print('crc32 = {:#010x}'.format(crc)) | trusted_official_docs | CPython Docs | Since the algorithm is designed for use as a checksum algorithm, it is not suitable for use as a general hash algorithm. Use as follows::
print(binascii.crc32(b"hello world"))
# Or, in two pieces:
crc = binascii.crc32(b"hello")
crc = binascii.crc32(b" world", crc)
print('crc32 = {:#010x}'.format(crc)) | Since the algorithm is designed for use as a checksum algorithm, it is not suitable for use as a general hash algorithm. Use as follows::
print(binascii.crc32(b"hello world"))
# Or, in two pieces:
crc = binascii.crc32(b"hello")
crc = binascii.crc32(b" world", crc)
print('crc32 = {:#010x}'.format(crc)) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b96891b9-3539-4c01-9751-bdbb09cd8070 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,139 | supabase-export-v2 | 76d438c2ff680c48 | Convert Base85 data back to binary and return the binary data. More than one line may be passed at a time.
Valid Base85 data contains characters from the Base85 alphabet in groups
of five (except for the final group, which may have from two to five
characters). Each group encodes 32 bits of binary data in the range f... | trusted_official_docs | CPython Docs | Convert Base85 data back to binary and return the binary data. More than one line may be passed at a time.
Valid Base85 data contains characters from the Base85 alphabet in groups
of five (except for the final group, which may have from two to five
characters). Each group encodes 32 bits of binary data in the range f... | Convert Base85 data back to binary and return the binary data. More than one line may be passed at a time.
Valid Base85 data contains characters from the Base85 alphabet in groups
of five (except for the final group, which may have from two to five
characters). Each group encodes 32 bits of binary data in the range f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
baa2975d-0168-4d6b-879e-d6ca2cccf4de | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,116 | supabase-export-v2 | 3025379ec9962de1 | Convert binary data to a line(s) of ASCII characters in base64 coding, as specified in :rfc:`4648`.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 4. If *padded* is false, do not add the pad characters. | trusted_official_docs | CPython Docs | Convert binary data to a line(s) of ASCII characters in base64 coding, as specified in :rfc:`4648`.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 4. If *padded* is false, do not add the pad characters. | Convert binary data to a line(s) of ASCII characters in base64 coding, as specified in :rfc:`4648`.
If *padded* is true (default), pad the encoded data with the '='
character to a size multiple of 4. If *padded* is false, do not add the pad characters. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbd85846-9432-438f-ae36-0027e0753eee | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,170 | supabase-export-v2 | 657b2dde54d284a3 | .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False)
Convert binary data to a line(s) of ASCII characters in quoted-printable
encoding. The return value is the converted line(s). If the optional argument
*quotetabs* is present and true, all tabs and spaces will be encoded. If the
optional argument ... | trusted_official_docs | CPython Docs | .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False)
Convert binary data to a line(s) of ASCII characters in quoted-printable
encoding. The return value is the converted line(s). If the optional argument
*quotetabs* is present and true, all tabs and spaces will be encoded. If the
optional argument ... | .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False)
Convert binary data to a line(s) of ASCII characters in quoted-printable
encoding. The return value is the converted line(s). If the optional argument
*quotetabs* is present and true, all tabs and spaces will be encoded. If the
optional argument ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bdd6e5f0-4090-42b1-9092-6bf7fb407c45 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,157 | supabase-export-v2 | 06c9a366851129d3 | be padded with the '=' character. If *padded* is false, the '=' character is treated as other non-alphabet characters (depending on the value of *ignorechars*).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. If *ignorechars* contains the pad character ``'='``, the p... | trusted_official_docs | CPython Docs | be padded with the '=' character. If *padded* is false, the '=' character is treated as other non-alphabet characters (depending on the value of *ignorechars*).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. If *ignorechars* contains the pad character ``'='``, the p... | be padded with the '=' character. If *padded* is false, the '=' character is treated as other non-alphabet characters (depending on the value of *ignorechars*).
*ignorechars* should be a :term:`bytes-like object` containing characters
to ignore from the input. If *ignorechars* contains the pad character ``'='``, the p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c186a9c4-0a09-421d-896d-d82ee731c737 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,128 | supabase-export-v2 | ffe6ece3b8dc2cea | the ``z`` abbreviation must be used for all-zero groups (rather than ``!!!!!``), and partial final groups must use the same padding digits as the encoder.
Invalid Ascii85 data will raise :exc:`binascii.Error`. | trusted_official_docs | CPython Docs | the ``z`` abbreviation must be used for all-zero groups (rather than ``!!!!!``), and partial final groups must use the same padding digits as the encoder.
Invalid Ascii85 data will raise :exc:`binascii.Error`. | the ``z`` abbreviation must be used for all-zero groups (rather than ``!!!!!``), and partial final groups must use the same padding digits as the encoder.
Invalid Ascii85 data will raise :exc:`binascii.Error`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c6b1872c-a9f6-44e7-ab77-54b48f4ecff7 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,162 | supabase-export-v2 | 623fac484c6e9408 | .. function:: b2a_base32(data, /, *, padded=True, alphabet=BASE32_ALPHABET, wrapcol=0)
Convert binary data to a line of ASCII characters in base32 coding,
as specified in :rfc:`4648`. The return value is the converted line. | trusted_official_docs | CPython Docs | .. function:: b2a_base32(data, /, *, padded=True, alphabet=BASE32_ALPHABET, wrapcol=0)
Convert binary data to a line of ASCII characters in base32 coding,
as specified in :rfc:`4648`. The return value is the converted line. | .. function:: b2a_base32(data, /, *, padded=True, alphabet=BASE32_ALPHABET, wrapcol=0)
Convert binary data to a line of ASCII characters in base32 coding,
as specified in :rfc:`4648`. The return value is the converted line. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c8bac59b-125f-4b03-8a9b-60ac3806bcb2 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,140 | supabase-export-v2 | 1f219f8b926bec54 | binary data in the range from ``0`` to ``2 ** 32 - 1``, inclusive. A single-character final group is always rejected as an encoding violation.
Optional *alphabet* must be a :class:`bytes` object of length 85 which
specifies an alternative alphabet. | trusted_official_docs | CPython Docs | binary data in the range from ``0`` to ``2 ** 32 - 1``, inclusive. A single-character final group is always rejected as an encoding violation.
Optional *alphabet* must be a :class:`bytes` object of length 85 which
specifies an alternative alphabet. | binary data in the range from ``0`` to ``2 ** 32 - 1``, inclusive. A single-character final group is always rejected as an encoding violation.
Optional *alphabet* must be a :class:`bytes` object of length 85 which
specifies an alternative alphabet. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
caa01535-d82a-4945-8455-d62b5beefdea | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,135 | supabase-export-v2 | 34e4ab134dfe52f0 | true, the input is padded with ``b'\0'`` so its length is a multiple of 4 bytes before encoding. Note that the ``btoa`` implementation always pads.
*adobe* controls whether the encoded byte sequence is framed with ``<~``
and ``~>``, which is used by the Adobe implementation. | trusted_official_docs | CPython Docs | true, the input is padded with ``b'\0'`` so its length is a multiple of 4 bytes before encoding. Note that the ``btoa`` implementation always pads.
*adobe* controls whether the encoded byte sequence is framed with ``<~``
and ``~>``, which is used by the Adobe implementation. | true, the input is padded with ``b'\0'`` so its length is a multiple of 4 bytes before encoding. Note that the ``btoa`` implementation always pads.
*adobe* controls whether the encoded byte sequence is framed with ``<~``
and ``~>``, which is used by the Adobe implementation. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb698882-f087-4fa8-a3c2-4e132ef10d3c | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,156 | supabase-export-v2 | ec36f28f1902b311 | Optional *alphabet* must be a :class:`bytes` object of length 32 which specifies an alternative alphabet.
If *padded* is true, the last group of 8 base 32 alphabet characters must
be padded with the '=' character. If *padded* is false, the '=' character is treated as other non-alphabet
characters (depending on the va... | trusted_official_docs | CPython Docs | Optional *alphabet* must be a :class:`bytes` object of length 32 which specifies an alternative alphabet.
If *padded* is true, the last group of 8 base 32 alphabet characters must
be padded with the '=' character. If *padded* is false, the '=' character is treated as other non-alphabet
characters (depending on the va... | Optional *alphabet* must be a :class:`bytes` object of length 32 which specifies an alternative alphabet.
If *padded* is true, the last group of 8 base 32 alphabet characters must
be padded with the '=' character. If *padded* is false, the '=' character is treated as other non-alphabet
characters (depending on the va... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d2623b0e-9769-4ded-906e-d2acd7bda607 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,155 | supabase-export-v2 | 709f6aa798ae0e80 | (which are invalid in standard base32) to their uppercase counterparts, nor does it contextually map ``0`` to ``O`` and ``1`` to ``I``/``L`` as :rfc:`4648` allows.
Optional *alphabet* must be a :class:`bytes` object of length 32 which
specifies an alternative alphabet. | trusted_official_docs | CPython Docs | (which are invalid in standard base32) to their uppercase counterparts, nor does it contextually map ``0`` to ``O`` and ``1`` to ``I``/``L`` as :rfc:`4648` allows.
Optional *alphabet* must be a :class:`bytes` object of length 32 which
specifies an alternative alphabet. | (which are invalid in standard base32) to their uppercase counterparts, nor does it contextually map ``0`` to ``O`` and ``1`` to ``I``/``L`` as :rfc:`4648` allows.
Optional *alphabet* must be a :class:`bytes` object of length 32 which
specifies an alternative alphabet. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d2f89957-dcd3-46d9-8e5f-2ea739ffbbba | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,169 | supabase-export-v2 | b28a4a0d16202c13 | More than one line may be passed at a time. If the optional argument *header* is present and true, underscores will be decoded as spaces.
.. function:: b2a_qp(data, quotetabs=False, istext=True, header=False) | trusted_official_docs | CPython Docs | More than one line may be passed at a time. If the optional argument *header* is present and true, underscores will be decoded as spaces.
.. function:: b2a_qp(data, quotetabs=False, istext=True, header=False) | More than one line may be passed at a time. If the optional argument *header* is present and true, underscores will be decoded as spaces.
.. function:: b2a_qp(data, quotetabs=False, istext=True, header=False) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc1fdc8c-9948-4808-9cd8-c54b1da92420 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,124 | supabase-export-v2 | 06e53a3d633677e2 | as a short form of the group ``!!!!!``, which encodes four consecutive null bytes. A single-character final group is always rejected as an encoding violation.
*foldspaces* is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not ... | trusted_official_docs | CPython Docs | as a short form of the group ``!!!!!``, which encodes four consecutive null bytes. A single-character final group is always rejected as an encoding violation.
*foldspaces* is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not ... | as a short form of the group ``!!!!!``, which encodes four consecutive null bytes. A single-character final group is always rejected as an encoding violation.
*foldspaces* is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dee84563-d7e2-4dce-8dce-81a4cbf1c0fe | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,180 | supabase-export-v2 | 93c7a6ddc8f05c5b | Similar functionality (but returning a text string) is also conveniently accessible using the :meth:`bytes.hex` method.
If *sep* is specified, it must be a single character str or bytes object. It will be inserted in the output after every *bytes_per_sep* input bytes. Separator placement is counted from the right end o... | trusted_official_docs | CPython Docs | Similar functionality (but returning a text string) is also conveniently accessible using the :meth:`bytes.hex` method.
If *sep* is specified, it must be a single character str or bytes object. It will be inserted in the output after every *bytes_per_sep* input bytes. Separator placement is counted from the right end o... | Similar functionality (but returning a text string) is also conveniently accessible using the :meth:`bytes.hex` method.
If *sep* is specified, it must be a single character str or bytes object. It will be inserted in the output after every *bytes_per_sep* input bytes. Separator placement is counted from the right end o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e3533f34-65f6-4ab3-ac0c-ce2e64a0595c | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,108 | supabase-export-v2 | 50df055be54862ae | of the encoded data and the excess pad characters will be ignored. The default value of *strict_mode* is ``True`` if *ignorechars* is specified, ``False`` otherwise.
If *strict_mode* is true, only valid base64 data will be converted. Invalid base64
data will raise :exc:`binascii.Error`. | trusted_official_docs | CPython Docs | of the encoded data and the excess pad characters will be ignored. The default value of *strict_mode* is ``True`` if *ignorechars* is specified, ``False`` otherwise.
If *strict_mode* is true, only valid base64 data will be converted. Invalid base64
data will raise :exc:`binascii.Error`. | of the encoded data and the excess pad characters will be ignored. The default value of *strict_mode* is ``True`` if *ignorechars* is specified, ``False`` otherwise.
If *strict_mode* is true, only valid base64 data will be converted. Invalid base64
data will raise :exc:`binascii.Error`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e5f019f9-b35b-45ee-ac36-e04761f51c90 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,168 | supabase-export-v2 | 94ef61ffe4b79388 | .. function:: a2b_qp(data, header=False)
Convert a block of quoted-printable data back to binary and return the binary
data. More than one line may be passed at a time. If the optional argument
*header* is present and true, underscores will be decoded as spaces. | trusted_official_docs | CPython Docs | .. function:: a2b_qp(data, header=False)
Convert a block of quoted-printable data back to binary and return the binary
data. More than one line may be passed at a time. If the optional argument
*header* is present and true, underscores will be decoded as spaces. | .. function:: a2b_qp(data, header=False)
Convert a block of quoted-printable data back to binary and return the binary
data. More than one line may be passed at a time. If the optional argument
*header* is present and true, underscores will be decoded as spaces. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e855f8e5-a5e5-4478-9b88-f171253d55cc | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,148 | supabase-export-v2 | 8977096fb8e52be0 | Optional *alphabet* must be a :term:`bytes-like object` of length 85 which specifies an alternative alphabet.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | trusted_official_docs | CPython Docs | Optional *alphabet* must be a :term:`bytes-like object` of length 85 which specifies an alternative alphabet.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | Optional *alphabet* must be a :term:`bytes-like object` of length 85 which specifies an alternative alphabet.
If *wrapcol* is non-zero, insert a newline (``b'\n'``) character
after at most every *wrapcol* characters. If *wrapcol* is zero (default), do not insert any newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e9fdd69f-e072-4152-a774-926bcdec0993 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,174 | supabase-export-v2 | f35d60aa2f771ece | .. function:: crc32(data[, value])
Compute CRC-32, the unsigned 32-bit checksum of *data*, starting with an
initial CRC of *value*. The default initial CRC is zero. The algorithm
is consistent with the ZIP file checksum. Since the algorithm is designed for
use as a checksum algorithm, it is not suitable for use as a... | trusted_official_docs | CPython Docs | .. function:: crc32(data[, value])
Compute CRC-32, the unsigned 32-bit checksum of *data*, starting with an
initial CRC of *value*. The default initial CRC is zero. The algorithm
is consistent with the ZIP file checksum. Since the algorithm is designed for
use as a checksum algorithm, it is not suitable for use as a... | .. function:: crc32(data[, value])
Compute CRC-32, the unsigned 32-bit checksum of *data*, starting with an
initial CRC of *value*. The default initial CRC is zero. The algorithm
is consistent with the ZIP file checksum. Since the algorithm is designed for
use as a checksum algorithm, it is not suitable for use as a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0c0bb3b-354e-4c1e-87da-4f378481d5b1 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,101 | supabase-export-v2 | b76ab37839211f3f | .. function:: b2a_uu(data, *, backtick=False)
Convert binary data to a line of ASCII characters, the return value is the
converted line, including a newline char. The length of *data* should be at most
45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces. | trusted_official_docs | CPython Docs | .. function:: b2a_uu(data, *, backtick=False)
Convert binary data to a line of ASCII characters, the return value is the
converted line, including a newline char. The length of *data* should be at most
45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces. | .. function:: b2a_uu(data, *, backtick=False)
Convert binary data to a line of ASCII characters, the return value is the
converted line, including a newline char. The length of *data* should be at most
45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0fd76a4-8cfe-4089-8e9a-2be6c0b7f832 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,147 | supabase-export-v2 | c5de17fb4a3b12c1 | Convert binary data to a line of ASCII characters in Base85 coding. The return value is the converted line.
Optional *alphabet* must be a :term:`bytes-like object` of length 85 which
specifies an alternative alphabet. | trusted_official_docs | CPython Docs | Convert binary data to a line of ASCII characters in Base85 coding. The return value is the converted line.
Optional *alphabet* must be a :term:`bytes-like object` of length 85 which
specifies an alternative alphabet. | Convert binary data to a line of ASCII characters in Base85 coding. The return value is the converted line.
Optional *alphabet* must be a :term:`bytes-like object` of length 85 which
specifies an alternative alphabet. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f1460df7-e70e-40e0-8cbd-c14ccb1349f9 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,186 | supabase-export-v2 | b2093caeb658d90f | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
Similar functionality (accepting only text string arguments, but more
liberal towards whitespace) is also accessible using the
:meth:`bytes.fromhex` class method. | trusted_official_docs | CPython Docs | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
Similar functionality (accepting only text string arguments, but more
liberal towards whitespace) is also accessible using the
:meth:`bytes.fromhex` class method. | *ignorechars* should be a :term:`bytes-like object` containing characters to ignore from the input.
Similar functionality (accepting only text string arguments, but more
liberal towards whitespace) is also accessible using the
:meth:`bytes.fromhex` class method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f469f01c-a588-48a1-9a3f-63eef0c16bc0 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,106 | supabase-export-v2 | 61970dd947cf0b0a | Optional *alphabet* must be a :class:`bytes` object of length 64 which specifies an alternative alphabet.
If *padded* is true, the last group of 4 base 64 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither required nor recognized:
the '=' character is not treated as pa... | trusted_official_docs | CPython Docs | Optional *alphabet* must be a :class:`bytes` object of length 64 which specifies an alternative alphabet.
If *padded* is true, the last group of 4 base 64 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither required nor recognized:
the '=' character is not treated as pa... | Optional *alphabet* must be a :class:`bytes` object of length 64 which specifies an alternative alphabet.
If *padded* is true, the last group of 4 base 64 alphabet characters must
be padded with the '=' character. If *padded* is false, padding is neither required nor recognized:
the '=' character is not treated as pa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f685395c-fde4-4561-aac9-0102629c7b28 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,184 | supabase-export-v2 | 055e6d1f407567d1 | .. function:: a2b_hex(hexstr, *, ignorechars=b'') unhexlify(hexstr, *, ignorechars=b'')
Return the binary data represented by the hexadecimal string *hexstr*. This
function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
of hexadecimal digits (which can be upper or lower case), otherwise an
:... | trusted_official_docs | CPython Docs | .. function:: a2b_hex(hexstr, *, ignorechars=b'') unhexlify(hexstr, *, ignorechars=b'')
Return the binary data represented by the hexadecimal string *hexstr*. This
function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
of hexadecimal digits (which can be upper or lower case), otherwise an
:... | .. function:: a2b_hex(hexstr, *, ignorechars=b'') unhexlify(hexstr, *, ignorechars=b'')
Return the binary data represented by the hexadecimal string *hexstr*. This
function is the inverse of :func:`b2a_hex`. *hexstr* must contain an even number
of hexadecimal digits (which can be upper or lower case), otherwise an
:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f9f00767-f6e2-4bb1-9a46-4cbef93092d4 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,132 | supabase-export-v2 | aac2a44d8f551bcd | Convert binary data to a formatted sequence of ASCII characters in Ascii85 coding. The return value is the converted data.
*foldspaces* is an optional flag that uses the special short sequence 'y'
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Asci... | trusted_official_docs | CPython Docs | Convert binary data to a formatted sequence of ASCII characters in Ascii85 coding. The return value is the converted data.
*foldspaces* is an optional flag that uses the special short sequence 'y'
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Asci... | Convert binary data to a formatted sequence of ASCII characters in Ascii85 coding. The return value is the converted data.
*foldspaces* is an optional flag that uses the special short sequence 'y'
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Asci... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb8f9858-dfaa-4277-8308-df88af2a5a5e | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,102 | supabase-export-v2 | 12f4a6ab0d738f3c | including a newline char. The length of *data* should be at most 45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces.
.. versionchanged:: 3.7
Added the *backtick* parameter. | trusted_official_docs | CPython Docs | including a newline char. The length of *data* should be at most 45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces.
.. versionchanged:: 3.7
Added the *backtick* parameter. | including a newline char. The length of *data* should be at most 45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces.
.. versionchanged:: 3.7
Added the *backtick* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fd3f36f0-ebab-44e7-8d83-3330246be3b2 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,104 | supabase-export-v2 | a19a6a15b8771765 | .. function:: a2b_base64(string, /, *, padded=True, alphabet=BASE64_ALPHABET, strict_mode=False, canonical=False) a2b_base64(string, /, *, ignorechars, padded=True, alphabet=BASE64_ALPHABET, strict_mode=True, canonical=False)
Convert a block of base64 data back to binary and return the binary data. More
than one line ... | trusted_official_docs | CPython Docs | .. function:: a2b_base64(string, /, *, padded=True, alphabet=BASE64_ALPHABET, strict_mode=False, canonical=False) a2b_base64(string, /, *, ignorechars, padded=True, alphabet=BASE64_ALPHABET, strict_mode=True, canonical=False)
Convert a block of base64 data back to binary and return the binary data. More
than one line ... | .. function:: a2b_base64(string, /, *, padded=True, alphabet=BASE64_ALPHABET, strict_mode=False, canonical=False) a2b_base64(string, /, *, ignorechars, padded=True, alphabet=BASE64_ALPHABET, strict_mode=True, canonical=False)
Convert a block of base64 data back to binary and return the binary data. More
than one line ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ff272bb9-717c-4acc-9378-c1e1093c0ed5 | CPython Docs | file://datasets/cpython/Doc/library/binascii.rst | unknown | ec3d1aea-5e2c-4295-839c-4d363faf2891 | 15,153 | supabase-export-v2 | e3eaed86e4f92420 | Convert base32 data back to binary and return the binary data.
Valid base32 data contains characters from the base32 alphabet specified
in :rfc:`4648` in groups of eight (if necessary, the final group is padded
to eight characters with ``=``). Each group encodes 40 bits of binary data
in the range from ``0`` to ``2 ... | trusted_official_docs | CPython Docs | Convert base32 data back to binary and return the binary data.
Valid base32 data contains characters from the base32 alphabet specified
in :rfc:`4648` in groups of eight (if necessary, the final group is padded
to eight characters with ``=``). Each group encodes 40 bits of binary data
in the range from ``0`` to ``2 ... | Convert base32 data back to binary and return the binary data.
Valid base32 data contains characters from the base32 alphabet specified
in :rfc:`4648` in groups of eight (if necessary, the final group is padded
to eight characters with ``=``). Each group encodes 40 bits of binary data
in the range from ``0`` to ``2 ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
01f14926-15ec-4ba5-8179-cf5c5e575353 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,232 | supabase-export-v2 | 83da40fc6771d502 | .. note::
In the Python 2.x series, this module contained ``camelCase`` names
for some methods and functions. These are deprecated as of Python 3.10,
but they are still supported for compatibility with Python 2.5 and lower. | trusted_official_docs | CPython Docs | .. note::
In the Python 2.x series, this module contained ``camelCase`` names
for some methods and functions. These are deprecated as of Python 3.10,
but they are still supported for compatibility with Python 2.5 and lower. | .. note::
In the Python 2.x series, this module contained ``camelCase`` names
for some methods and functions. These are deprecated as of Python 3.10,
but they are still supported for compatibility with Python 2.5 and lower. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05f68672-7377-40b5-ab1e-923fe51c2a56 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,408 | supabase-export-v2 | 4fb32255a8c9c947 | proceeds when a :meth:`~Lock.release` call resets the state to unlocked; which one of the waiting threads proceeds is not defined, and may vary across implementations.
All methods are executed atomically. | trusted_official_docs | CPython Docs | proceeds when a :meth:`~Lock.release` call resets the state to unlocked; which one of the waiting threads proceeds is not defined, and may vary across implementations.
All methods are executed atomically. | proceeds when a :meth:`~Lock.release` call resets the state to unlocked; which one of the waiting threads proceeds is not defined, and may vary across implementations.
All methods are executed atomically. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
061927b3-811b-4b9c-b8ce-40a2f8cd6e14 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,564 | supabase-export-v2 | 7f031462ba896bd9 | .. versionadded:: 3.2
This class provides a simple synchronization primitive for use by a fixed number
of threads that need to wait for each other. Each of the threads tries to pass
the barrier by calling the :meth:`~Barrier.wait` method and will block until
all of the threads have made their :meth:`~Barrier.wait` call... | trusted_official_docs | CPython Docs | .. versionadded:: 3.2
This class provides a simple synchronization primitive for use by a fixed number
of threads that need to wait for each other. Each of the threads tries to pass
the barrier by calling the :meth:`~Barrier.wait` method and will block until
all of the threads have made their :meth:`~Barrier.wait` call... | .. versionadded:: 3.2
This class provides a simple synchronization primitive for use by a fixed number
of threads that need to wait for each other. Each of the threads tries to pass
the barrier by calling the :meth:`~Barrier.wait` method and will block until
all of the threads have made their :meth:`~Barrier.wait` call... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
064b6ba6-6205-4b52-be8f-314cf55533c4 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,342 | supabase-export-v2 | 70b30957ddb6e84c | A thread has a name. The name can be passed to the constructor, and read or changed through the :attr:`~Thread.name` attribute.
If the :meth:`~Thread.run` method raises an exception,
:func:`threading.excepthook` is called to handle it. By default,
:func:`threading.excepthook` ignores silently :exc:`SystemExit`. | trusted_official_docs | CPython Docs | A thread has a name. The name can be passed to the constructor, and read or changed through the :attr:`~Thread.name` attribute.
If the :meth:`~Thread.run` method raises an exception,
:func:`threading.excepthook` is called to handle it. By default,
:func:`threading.excepthook` ignores silently :exc:`SystemExit`. | A thread has a name. The name can be passed to the constructor, and read or changed through the :attr:`~Thread.name` attribute.
If the :meth:`~Thread.run` method raises an exception,
:func:`threading.excepthook` is called to handle it. By default,
:func:`threading.excepthook` ignores silently :exc:`SystemExit`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a588500-409c-4714-9ada-f1b948823ff6 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,405 | supabase-export-v2 | 2a664b43927a4237 | owned by a particular thread when locked. In Python, it is currently the lowest level synchronization primitive available, implemented directly by the :mod:`_thread` extension module.
A primitive lock is in one of two states, "locked" or "unlocked". It is created
in the unlocked state. It has two basic methods, :meth:`... | trusted_official_docs | CPython Docs | owned by a particular thread when locked. In Python, it is currently the lowest level synchronization primitive available, implemented directly by the :mod:`_thread` extension module.
A primitive lock is in one of two states, "locked" or "unlocked". It is created
in the unlocked state. It has two basic methods, :meth:`... | owned by a particular thread when locked. In Python, it is currently the lowest level synchronization primitive available, implemented directly by the :mod:`_thread` extension module.
A primitive lock is in one of two states, "locked" or "unlocked". It is created
in the unlocked state. It has two basic methods, :meth:`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c4e6c9d-351a-47ee-ab8e-ea6788341cf3 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,457 | supabase-export-v2 | d8a713e9310796c2 | call this method when the calling thread owns the lock. A :exc:`RuntimeError` is raised if this method is called when the lock is not acquired.
There is no return value. | trusted_official_docs | CPython Docs | call this method when the calling thread owns the lock. A :exc:`RuntimeError` is raised if this method is called when the lock is not acquired.
There is no return value. | call this method when the calling thread owns the lock. A :exc:`RuntimeError` is raised if this method is called when the lock is not acquired.
There is no return value. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c84a023-9c11-4e16-b6a8-7d0c58012a06 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,552 | supabase-export-v2 | 26f96a153e25b989 | Timer objects ^^^^^^^^^^^^^
This class represents an action that should be run only after a certain amount
of time has passed --- a timer. :class:`Timer` is a subclass of :class:`Thread`
and as such also functions as an example of creating custom threads. | trusted_official_docs | CPython Docs | Timer objects ^^^^^^^^^^^^^
This class represents an action that should be run only after a certain amount
of time has passed --- a timer. :class:`Timer` is a subclass of :class:`Thread`
and as such also functions as an example of creating custom threads. | Timer objects ^^^^^^^^^^^^^
This class represents an action that should be run only after a certain amount
of time has passed --- a timer. :class:`Timer` is a subclass of :class:`Thread`
and as such also functions as an example of creating custom threads. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0d7045c7-d601-405e-89bf-b4819aae0a87 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,362 | supabase-export-v2 | 98fc547ca1f3c6e8 | must be called at most once per thread object. It arranges for the object's :meth:`~Thread.run` method to be invoked in a separate thread of control.
This method will raise a :exc:`RuntimeError` if called more than once
on the same thread object. | trusted_official_docs | CPython Docs | must be called at most once per thread object. It arranges for the object's :meth:`~Thread.run` method to be invoked in a separate thread of control.
This method will raise a :exc:`RuntimeError` if called more than once
on the same thread object. | must be called at most once per thread object. It arranges for the object's :meth:`~Thread.run` method to be invoked in a separate thread of control.
This method will raise a :exc:`RuntimeError` if called more than once
on the same thread object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
115fac85-a278-4dce-8f45-c53991edc544 | CPython Docs | file://datasets/cpython/Doc/library/threading.rst | unknown | 803f0533-1359-49ee-b5f5-632bde546d27 | 15,406 | supabase-export-v2 | b7cd928850be5dc6 | state; it changes the state to unlocked and returns immediately. If an attempt is made to release an unlocked lock, a :exc:`RuntimeError` will be raised.
Locks also support the :ref:`context management protocol <with-locks>`. | trusted_official_docs | CPython Docs | state; it changes the state to unlocked and returns immediately. If an attempt is made to release an unlocked lock, a :exc:`RuntimeError` will be raised.
Locks also support the :ref:`context management protocol <with-locks>`. | state; it changes the state to unlocked and returns immediately. If an attempt is made to release an unlocked lock, a :exc:`RuntimeError` will be raised.
Locks also support the :ref:`context management protocol <with-locks>`. | 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.