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
cb130d9a-f93e-4317-bccc-c7c265d9f54f
CPython Docs
file://datasets/cpython/Doc/library/contextvars.rst
unknown
2e318c60-48da-41de-a24d-537f6bd55e94
34,540
supabase-export-v2
751b7a4240ab8db0
def render_goodbye(): # The address of the currently handled client can be accessed # without passing it explicitly to this function. client_addr = client_addr_var.get() return f'Good bye, client @ {client_addr}\r\n'.encode()
trusted_official_docs
CPython Docs
def render_goodbye(): # The address of the currently handled client can be accessed # without passing it explicitly to this function. client_addr = client_addr_var.get() return f'Good bye, client @ {client_addr}\r\n'.encode()
def render_goodbye(): # The address of the currently handled client can be accessed # without passing it explicitly to this function. client_addr = client_addr_var.get() return f'Good bye, client @ {client_addr}\r\n'.encode()
python, official-docs, cpython, P0
Local_Trusted_Corpus
d90eed21-1cfc-4fcd-8965-b18802e71fc4
CPython Docs
file://datasets/cpython/Doc/library/contextvars.rst
unknown
2e318c60-48da-41de-a24d-537f6bd55e94
34,498
supabase-export-v2
6e81e570edccdba4
be done by calling its :meth:`~Context.run` method, makes the context the current context by pushing it onto the top of the current thread's context stack. *Exiting* from the current context, which can be done by returning from the callback passed to the :meth:`~Context.run` method, restores the current context to wh...
trusted_official_docs
CPython Docs
be done by calling its :meth:`~Context.run` method, makes the context the current context by pushing it onto the top of the current thread's context stack. *Exiting* from the current context, which can be done by returning from the callback passed to the :meth:`~Context.run` method, restores the current context to wh...
be done by calling its :meth:`~Context.run` method, makes the context the current context by pushing it onto the top of the current thread's context stack. *Exiting* from the current context, which can be done by returning from the callback passed to the :meth:`~Context.run` method, restores the current context to wh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9ea4c63-42a7-4f83-9343-c61047e9cee9
CPython Docs
file://datasets/cpython/Doc/library/contextvars.rst
unknown
2e318c60-48da-41de-a24d-537f6bd55e94
34,543
supabase-export-v2
7697b5326db2ef80
# In any code that we call, it is now possible to get the # client's address by calling 'client_addr_var.get()'. while True: line = await reader.readline() print(line) if not line.strip(): break
trusted_official_docs
CPython Docs
# In any code that we call, it is now possible to get the # client's address by calling 'client_addr_var.get()'. while True: line = await reader.readline() print(line) if not line.strip(): break
# In any code that we call, it is now possible to get the # client's address by calling 'client_addr_var.get()'. while True: line = await reader.readline() print(line) if not line.strip(): break
python, official-docs, cpython, P0
Local_Trusted_Corpus
ec5becbd-7750-41b2-b8e7-e06e90977c73
CPython Docs
file://datasets/cpython/Doc/library/contextvars.rst
unknown
2e318c60-48da-41de-a24d-537f6bd55e94
34,477
supabase-export-v2
8617b22448c3a002
.. class:: Token *Token* objects are returned by the :meth:`ContextVar.set` method. They can be passed to the :meth:`ContextVar.reset` method to revert the value of the variable to what it was before the corresponding *set*. A single token cannot reset a context variable more than once.
trusted_official_docs
CPython Docs
.. class:: Token *Token* objects are returned by the :meth:`ContextVar.set` method. They can be passed to the :meth:`ContextVar.reset` method to revert the value of the variable to what it was before the corresponding *set*. A single token cannot reset a context variable more than once.
.. class:: Token *Token* objects are returned by the :meth:`ContextVar.set` method. They can be passed to the :meth:`ContextVar.reset` method to revert the value of the variable to what it was before the corresponding *set*. A single token cannot reset a context variable more than once.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fae63609-70e4-4d79-9001-778a8f2aae93
CPython Docs
file://datasets/cpython/Doc/library/contextvars.rst
unknown
2e318c60-48da-41de-a24d-537f6bd55e94
34,478
supabase-export-v2
491fd04210bde7bd
revert the value of the variable to what it was before the corresponding *set*. A single token cannot reset a context variable more than once. Tokens support the :ref:`context manager protocol <context-managers>` to automatically reset context variables. See :meth:`ContextVar.set`.
trusted_official_docs
CPython Docs
revert the value of the variable to what it was before the corresponding *set*. A single token cannot reset a context variable more than once. Tokens support the :ref:`context manager protocol <context-managers>` to automatically reset context variables. See :meth:`ContextVar.set`.
revert the value of the variable to what it was before the corresponding *set*. A single token cannot reset a context variable more than once. Tokens support the :ref:`context manager protocol <context-managers>` to automatically reset context variables. See :meth:`ContextVar.set`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe8d6599-1327-49f9-a0c9-0fa5b07488a3
CPython Docs
file://datasets/cpython/Doc/library/contextvars.rst
unknown
2e318c60-48da-41de-a24d-537f6bd55e94
34,459
supabase-export-v2
71f804fa7b8cba33
The required *value* argument is the new value for the context variable. Returns a :class:`~contextvars.Token` object that can be used to restore the variable to its previous value via the :meth:`ContextVar.reset` method.
trusted_official_docs
CPython Docs
The required *value* argument is the new value for the context variable. Returns a :class:`~contextvars.Token` object that can be used to restore the variable to its previous value via the :meth:`ContextVar.reset` method.
The required *value* argument is the new value for the context variable. Returns a :class:`~contextvars.Token` object that can be used to restore the variable to its previous value via the :meth:`ContextVar.reset` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d03a27f1-a108-420f-b5cd-6f131dd02fde
CPython Docs
file://datasets/cpython/Doc/library/internet.rst
unknown
59d5b204-b49e-45bf-ae44-498112663506
34,552
supabase-export-v2
521597cb19915bd8
.. index:: pair: module; socket The modules described in this chapter implement internet protocols and support for related technology. They are all implemented in Python. Most of these modules require the presence of the system-dependent module :mod:`socket`, which is currently supported on most popular platforms. Here...
trusted_official_docs
CPython Docs
.. index:: pair: module; socket The modules described in this chapter implement internet protocols and support for related technology. They are all implemented in Python. Most of these modules require the presence of the system-dependent module :mod:`socket`, which is currently supported on most popular platforms. Here...
.. index:: pair: module; socket The modules described in this chapter implement internet protocols and support for related technology. They are all implemented in Python. Most of these modules require the presence of the system-dependent module :mod:`socket`, which is currently supported on most popular platforms. Here...
python, official-docs, cpython, P0
Local_Trusted_Corpus
082c6bf1-23b9-4664-b58b-73109dc70c8b
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,564
supabase-export-v2
a1e811434ede24aa
*convert_charrefs* is true (the default), all character references (except the ones in elements like ``script`` and ``style``) are automatically converted to the corresponding Unicode characters. If *scripting* is false (the default), the content of the ``noscript`` element is parsed normally; if it's true, it's retur...
trusted_official_docs
CPython Docs
*convert_charrefs* is true (the default), all character references (except the ones in elements like ``script`` and ``style``) are automatically converted to the corresponding Unicode characters. If *scripting* is false (the default), the content of the ``noscript`` element is parsed normally; if it's true, it's retur...
*convert_charrefs* is true (the default), all character references (except the ones in elements like ``script`` and ``style``) are automatically converted to the corresponding Unicode characters. If *scripting* is false (the default), the content of the ``noscript`` element is parsed normally; if it's true, it's retur...
python, official-docs, cpython, P0
Local_Trusted_Corpus
09162886-0abc-49f0-b221-368e0d873bfb
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,656
supabase-export-v2
7c838c4dd8fd9acb
.. doctest:: >>> parser.feed('<p><a class=link href=#main>tag soup</p ></a>') Start tag: p Start tag: a attr: ('class', 'link') attr: ('href', '#main') Data : tag soup End tag : p End tag : a
trusted_official_docs
CPython Docs
.. doctest:: >>> parser.feed('<p><a class=link href=#main>tag soup</p ></a>') Start tag: p Start tag: a attr: ('class', 'link') attr: ('href', '#main') Data : tag soup End tag : p End tag : a
.. doctest:: >>> parser.feed('<p><a class=link href=#main>tag soup</p ></a>') Start tag: p Start tag: a attr: ('class', 'link') attr: ('href', '#main') Data : tag soup End tag : p End tag : a
python, official-docs, cpython, P0
Local_Trusted_Corpus
0babc084-8b6a-4141-8a2d-94f07c7c1f7f
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,563
supabase-export-v2
1c659a9419fb0258
Create a parser instance able to parse invalid markup. If *convert_charrefs* is true (the default), all character references (except the ones in elements like ``script`` and ``style``) are automatically converted to the corresponding Unicode characters.
trusted_official_docs
CPython Docs
Create a parser instance able to parse invalid markup. If *convert_charrefs* is true (the default), all character references (except the ones in elements like ``script`` and ``style``) are automatically converted to the corresponding Unicode characters.
Create a parser instance able to parse invalid markup. If *convert_charrefs* is true (the default), all character references (except the ones in elements like ``script`` and ``style``) are automatically converted to the corresponding Unicode characters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0d417707-bee3-48be-81f1-87f68ce99dea
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,618
supabase-export-v2
dc85311f65187aaf
.. note:: The :class:`HTMLParser` class uses the SGML syntactic rules for processing instructions. An XHTML processing instruction using the trailing ``'?'`` will cause the ``'?'`` to be included in *data*.
trusted_official_docs
CPython Docs
.. note:: The :class:`HTMLParser` class uses the SGML syntactic rules for processing instructions. An XHTML processing instruction using the trailing ``'?'`` will cause the ``'?'`` to be included in *data*.
.. note:: The :class:`HTMLParser` class uses the SGML syntactic rules for processing instructions. An XHTML processing instruction using the trailing ``'?'`` will cause the ``'?'`` to be included in *data*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e2c69c7-21d7-4084-8494-88704c92dc74
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,653
supabase-export-v2
0b0707ab60dece06
.. doctest:: >>> for chunk in ['<sp', 'an>buff', 'ered', ' text</s', 'pan>']: ... parser.feed(chunk) ... Start tag: span Data : buff Data : ered Data : text End tag : span
trusted_official_docs
CPython Docs
.. doctest:: >>> for chunk in ['<sp', 'an>buff', 'ered', ' text</s', 'pan>']: ... parser.feed(chunk) ... Start tag: span Data : buff Data : ered Data : text End tag : span
.. doctest:: >>> for chunk in ['<sp', 'an>buff', 'ered', ' text</s', 'pan>']: ... parser.feed(chunk) ... Start tag: span Data : buff Data : ered Data : text End tag : span
python, official-docs, cpython, P0
Local_Trusted_Corpus
15351336-86e3-4170-a2fb-cd6cf6a655de
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,637
supabase-export-v2
63afdd616cab2cb3
.. doctest:: >>> parser.feed('<img src="python-logo.png" alt="The Python logo">') Start tag: img attr: ('src', 'python-logo.png') attr: ('alt', 'The Python logo') >>> >>> parser.feed('<h1>Python</h1>') Start tag: h1 Data : Python End tag : h1
trusted_official_docs
CPython Docs
.. doctest:: >>> parser.feed('<img src="python-logo.png" alt="The Python logo">') Start tag: img attr: ('src', 'python-logo.png') attr: ('alt', 'The Python logo') >>> >>> parser.feed('<h1>Python</h1>') Start tag: h1 Data : Python End tag : h1
.. doctest:: >>> parser.feed('<img src="python-logo.png" alt="The Python logo">') Start tag: img attr: ('src', 'python-logo.png') attr: ('alt', 'The Python logo') >>> >>> parser.feed('<h1>Python</h1>') Start tag: h1 Data : Python End tag : h1
python, official-docs, cpython, P0
Local_Trusted_Corpus
172698e5-b69c-453a-a731-e8f723996236
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,610
supabase-export-v2
03b38ad7f2f2dfd3
This method is called when a comment is encountered (e.g. ``<!--comment-->``). For example, the comment ``<!-- comment -->`` will cause this method to be called with the argument ``' comment '``.
trusted_official_docs
CPython Docs
This method is called when a comment is encountered (e.g. ``<!--comment-->``). For example, the comment ``<!-- comment -->`` will cause this method to be called with the argument ``' comment '``.
This method is called when a comment is encountered (e.g. ``<!--comment-->``). For example, the comment ``<!-- comment -->`` will cause this method to be called with the argument ``' comment '``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b799c3a-c8a6-4514-9b10-071232a037e4
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,638
supabase-export-v2
a615b0d498d75345
logo">') Start tag: img attr: ('src', 'python-logo.png') attr: ('alt', 'The Python logo') >>> >>> parser.feed('<h1>Python</h1>') Start tag: h1 Data : Python End tag : h1 The content of elements like ``script`` and ``style`` is returned as is, without further parsing:
trusted_official_docs
CPython Docs
logo">') Start tag: img attr: ('src', 'python-logo.png') attr: ('alt', 'The Python logo') >>> >>> parser.feed('<h1>Python</h1>') Start tag: h1 Data : Python End tag : h1 The content of elements like ``script`` and ``style`` is returned as is, without further parsing:
logo">') Start tag: img attr: ('src', 'python-logo.png') attr: ('alt', 'The Python logo') >>> >>> parser.feed('<h1>Python</h1>') Start tag: h1 Data : Python End tag : h1 The content of elements like ``script`` and ``style`` is returned as is, without further parsing:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2e0893e9-ac8b-4bf2-a403-933d87421c04
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,595
supabase-export-v2
6ae894e134d0758f
to lower case, and quotes in the *value* have been removed, and character and entity references have been replaced. For empty attributes, *value* is ``None``. For instance, for the tag ``<A HREF="https://www.cwi.nl/">``, this method would be called as ``handle_starttag('a', [('href', 'https://www.cwi.nl/')])``.
trusted_official_docs
CPython Docs
to lower case, and quotes in the *value* have been removed, and character and entity references have been replaced. For empty attributes, *value* is ``None``. For instance, for the tag ``<A HREF="https://www.cwi.nl/">``, this method would be called as ``handle_starttag('a', [('href', 'https://www.cwi.nl/')])``.
to lower case, and quotes in the *value* have been removed, and character and entity references have been replaced. For empty attributes, *value* is ``None``. For instance, for the tag ``<A HREF="https://www.cwi.nl/">``, this method would be called as ``handle_starttag('a', [('href', 'https://www.cwi.nl/')])``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3594f561-019a-4cc7-900b-40ccc6bfca22
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,567
supabase-export-v2
3a2104af3f210500
does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing an outer element. .. versionchanged:: 3.4 *convert_charrefs* keyword argument added.
trusted_official_docs
CPython Docs
does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing an outer element. .. versionchanged:: 3.4 *convert_charrefs* keyword argument added.
does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing an outer element. .. versionchanged:: 3.4 *convert_charrefs* keyword argument added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a3dfdb7-5afd-44ec-a1cf-e138f2bc35df
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,647
supabase-export-v2
57cca54744ebce37
>>> parser.feed('<!--a comment-->' ... '<!--[if IE 9]>IE-specific content<![endif]-->') Comment : a comment Comment : [if IE 9]>IE-specific content<![endif] Parsing named and numeric character references and converting them to the correct char (note: these 3 references are all equivalent to ``'>'``):
trusted_official_docs
CPython Docs
>>> parser.feed('<!--a comment-->' ... '<!--[if IE 9]>IE-specific content<![endif]-->') Comment : a comment Comment : [if IE 9]>IE-specific content<![endif] Parsing named and numeric character references and converting them to the correct char (note: these 3 references are all equivalent to ``'>'``):
>>> parser.feed('<!--a comment-->' ... '<!--[if IE 9]>IE-specific content<![endif]-->') Comment : a comment Comment : [if IE 9]>IE-specific content<![endif] Parsing named and numeric character references and converting them to the correct char (note: these 3 references are all equivalent to ``'>'``):
python, official-docs, cpython, P0
Local_Trusted_Corpus
53c205a9-2079-4d78-b36c-5e7f8cbc8583
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,654
supabase-export-v2
b443ffd8dbf846a1
['<sp', 'an>buff', 'ered', ' text</s', 'pan>']: ... parser.feed(chunk) ... Start tag: span Data : buff Data : ered Data : text End tag : span Parsing invalid HTML (e.g. unquoted attributes) also works:
trusted_official_docs
CPython Docs
['<sp', 'an>buff', 'ered', ' text</s', 'pan>']: ... parser.feed(chunk) ... Start tag: span Data : buff Data : ered Data : text End tag : span Parsing invalid HTML (e.g. unquoted attributes) also works:
['<sp', 'an>buff', 'ered', ' text</s', 'pan>']: ... parser.feed(chunk) ... Start tag: span Data : buff Data : ered Data : text End tag : span Parsing invalid HTML (e.g. unquoted attributes) also works:
python, official-docs, cpython, P0
Local_Trusted_Corpus
558138fc-9396-41d5-af86-f946dd641bf3
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,582
supabase-export-v2
fb64b716ed57bcf9
.. method:: HTMLParser.feed(data) Feed some text to the parser. It is processed insofar as it consists of complete elements; incomplete data is buffered until more data is fed or :meth:`close` is called. *data* must be :class:`str`.
trusted_official_docs
CPython Docs
.. method:: HTMLParser.feed(data) Feed some text to the parser. It is processed insofar as it consists of complete elements; incomplete data is buffered until more data is fed or :meth:`close` is called. *data* must be :class:`str`.
.. method:: HTMLParser.feed(data) Feed some text to the parser. It is processed insofar as it consists of complete elements; incomplete data is buffered until more data is fed or :meth:`close` is called. *data* must be :class:`str`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
585a9cbb-99e9-41db-9c27-0f8fd56ca47d
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,614
supabase-export-v2
5970254fe6df93a5
This method is called to handle an HTML doctype declaration (e.g. ``<!DOCTYPE html>``). The *decl* parameter will be the entire contents of the declaration inside the ``<!...>`` markup (e.g. ``'DOCTYPE html'``).
trusted_official_docs
CPython Docs
This method is called to handle an HTML doctype declaration (e.g. ``<!DOCTYPE html>``). The *decl* parameter will be the entire contents of the declaration inside the ``<!...>`` markup (e.g. ``'DOCTYPE html'``).
This method is called to handle an HTML doctype declaration (e.g. ``<!DOCTYPE html>``). The *decl* parameter will be the entire contents of the declaration inside the ``<!...>`` markup (e.g. ``'DOCTYPE html'``).
python, official-docs, cpython, P0
Local_Trusted_Corpus
75f72b71-a327-4046-94dd-6e2531271483
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,566
supabase-export-v2
b94b6f352a3932ed
tags, end tags, text, comments, and other markup elements are encountered. The user should subclass :class:`.HTMLParser` and override its methods to implement the desired behavior. This parser does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing ...
trusted_official_docs
CPython Docs
tags, end tags, text, comments, and other markup elements are encountered. The user should subclass :class:`.HTMLParser` and override its methods to implement the desired behavior. This parser does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing ...
tags, end tags, text, comments, and other markup elements are encountered. The user should subclass :class:`.HTMLParser` and override its methods to implement the desired behavior. This parser does not check that end tags match start tags or call the end-tag handler for elements which are closed implicitly by closing ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
85bcbe58-a66f-4918-bcc8-637b7b297c74
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,605
supabase-export-v2
c2217be28e077f20
.. method:: HTMLParser.handle_entityref(name) This method is called to process a named character reference of the form ``&name;`` (e.g. ``&gt;``), where *name* is a general entity reference (e.g. ``'gt'``). This method is only called if *convert_charrefs* is false.
trusted_official_docs
CPython Docs
.. method:: HTMLParser.handle_entityref(name) This method is called to process a named character reference of the form ``&name;`` (e.g. ``&gt;``), where *name* is a general entity reference (e.g. ``'gt'``). This method is only called if *convert_charrefs* is false.
.. method:: HTMLParser.handle_entityref(name) This method is called to process a named character reference of the form ``&name;`` (e.g. ``&gt;``), where *name* is a general entity reference (e.g. ``'gt'``). This method is only called if *convert_charrefs* is false.
python, official-docs, cpython, P0
Local_Trusted_Corpus
85f74ebc-2108-4076-9219-e34080d53c62
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,642
supabase-export-v2
92b84f54f3e1eb01
>>> parser.feed('<script type="text/javascript">' ... 'alert("<strong>hello! &#9786;</strong>");</script>') Start tag: script attr: ('type', 'text/javascript') Data : alert("<strong>hello! &#9786;</strong>"); End tag : script Attribute names are converted to lowercase, quotes from attribute values removed, and ``None``...
trusted_official_docs
CPython Docs
>>> parser.feed('<script type="text/javascript">' ... 'alert("<strong>hello! &#9786;</strong>");</script>') Start tag: script attr: ('type', 'text/javascript') Data : alert("<strong>hello! &#9786;</strong>"); End tag : script Attribute names are converted to lowercase, quotes from attribute values removed, and ``None``...
>>> parser.feed('<script type="text/javascript">' ... 'alert("<strong>hello! &#9786;</strong>");</script>') Start tag: script attr: ('type', 'text/javascript') Data : alert("<strong>hello! &#9786;</strong>"); End tag : script Attribute names are converted to lowercase, quotes from attribute values removed, and ``None``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
889fe704-47b6-400c-8351-8a72ed27dd8e
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,590
supabase-export-v2
c92ddb7a59f0eaad
.. method:: HTMLParser.get_starttag_text() Return the text of the most recently opened start tag. This should not normally be needed for structured processing, but may be useful in dealing with HTML "as deployed" or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.).
trusted_official_docs
CPython Docs
.. method:: HTMLParser.get_starttag_text() Return the text of the most recently opened start tag. This should not normally be needed for structured processing, but may be useful in dealing with HTML "as deployed" or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.).
.. method:: HTMLParser.get_starttag_text() Return the text of the most recently opened start tag. This should not normally be needed for structured processing, but may be useful in dealing with HTML "as deployed" or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.).
python, official-docs, cpython, P0
Local_Trusted_Corpus
8bff9be0-52bb-4556-82f9-615762c74ed7
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,616
supabase-export-v2
3395dd94be7a167d
.. method:: HTMLParser.handle_pi(data) Method called when a processing instruction is encountered. The *data* parameter will contain the entire processing instruction. For example, for the processing instruction ``<?proc color='red'>``, this method would be called as ``handle_pi("proc color='red'")``. It is intended...
trusted_official_docs
CPython Docs
.. method:: HTMLParser.handle_pi(data) Method called when a processing instruction is encountered. The *data* parameter will contain the entire processing instruction. For example, for the processing instruction ``<?proc color='red'>``, this method would be called as ``handle_pi("proc color='red'")``. It is intended...
.. method:: HTMLParser.handle_pi(data) Method called when a processing instruction is encountered. The *data* parameter will contain the entire processing instruction. For example, for the processing instruction ``<?proc color='red'>``, this method would be called as ``handle_pi("proc color='red'")``. It is intended...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a097bf59-fd51-4165-9fc8-5fddaa1fc7b8
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,641
supabase-export-v2
7ccdea86073e99ff
>>> parser.feed('<style type="text/css">#python { color: green }</style>') Start tag: style attr: ('type', 'text/css') Data : #python { color: green } End tag : style >>> parser.feed('<script type="text/javascript">' ... 'alert("<strong>hello! &#9786;</strong>");</script>') Start tag: script attr: ('type', 'text/jav...
trusted_official_docs
CPython Docs
>>> parser.feed('<style type="text/css">#python { color: green }</style>') Start tag: style attr: ('type', 'text/css') Data : #python { color: green } End tag : style >>> parser.feed('<script type="text/javascript">' ... 'alert("<strong>hello! &#9786;</strong>");</script>') Start tag: script attr: ('type', 'text/jav...
>>> parser.feed('<style type="text/css">#python { color: green }</style>') Start tag: style attr: ('type', 'text/css') Data : #python { color: green } End tag : style >>> parser.feed('<script type="text/javascript">' ... 'alert("<strong>hello! &#9786;</strong>");</script>') Start tag: script attr: ('type', 'text/jav...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b154ce31-2da8-4ec8-a833-f08ce0f21276
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,584
supabase-export-v2
2b23abd4446d35f7
.. method:: HTMLParser.close() Force processing of all buffered data as if it were followed by an end-of-file mark. This method may be redefined by a derived class to define additional processing at the end of the input, but the redefined version should always call the :class:`HTMLParser` base class method :meth:`cl...
trusted_official_docs
CPython Docs
.. method:: HTMLParser.close() Force processing of all buffered data as if it were followed by an end-of-file mark. This method may be redefined by a derived class to define additional processing at the end of the input, but the redefined version should always call the :class:`HTMLParser` base class method :meth:`cl...
.. method:: HTMLParser.close() Force processing of all buffered data as if it were followed by an end-of-file mark. This method may be redefined by a derived class to define additional processing at the end of the input, but the redefined version should always call the :class:`HTMLParser` base class method :meth:`cl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b845a71b-aba9-4b40-9492-216168200ba7
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,571
supabase-export-v2
935e5f76cc0b3319
Example HTML Parser Application ------------------------------- As a basic example, below is a simple HTML parser that uses the :class:`HTMLParser` class to print out start tags, end tags, and data as they are encountered:
trusted_official_docs
CPython Docs
Example HTML Parser Application ------------------------------- As a basic example, below is a simple HTML parser that uses the :class:`HTMLParser` class to print out start tags, end tags, and data as they are encountered:
Example HTML Parser Application ------------------------------- As a basic example, below is a simple HTML parser that uses the :class:`HTMLParser` class to print out start tags, end tags, and data as they are encountered:
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd358f31-8dda-4f65-a1cf-60b0f0b38222
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,651
supabase-export-v2
064ca6ca40dc72d0
>>> parser = MyHTMLParser(convert_charrefs=False) >>> parser.feed('&gt;&#62;&#x3E;') Named ent: > Num ent : > Num ent : > Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but :meth:`~HTMLParser.handle_data` might be called more than once if *convert_charrefs* is false:
trusted_official_docs
CPython Docs
>>> parser = MyHTMLParser(convert_charrefs=False) >>> parser.feed('&gt;&#62;&#x3E;') Named ent: > Num ent : > Num ent : > Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but :meth:`~HTMLParser.handle_data` might be called more than once if *convert_charrefs* is false:
>>> parser = MyHTMLParser(convert_charrefs=False) >>> parser.feed('&gt;&#62;&#x3E;') Named ent: > Num ent : > Num ent : > Feeding incomplete chunks to :meth:`~HTMLParser.feed` works, but :meth:`~HTMLParser.handle_data` might be called more than once if *convert_charrefs* is false:
python, official-docs, cpython, P0
Local_Trusted_Corpus
c51738a7-6ce5-40dc-a37c-0b87a1dbb7eb
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,611
supabase-export-v2
7e400b70de51adb1
For example, the comment ``<!-- comment -->`` will cause this method to be called with the argument ``' comment '``. The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for ``<!--[if IE 9]>IE9-specific content<![endif]-->``, this method will receive ``'[if IE 9]>IE9-...
trusted_official_docs
CPython Docs
For example, the comment ``<!-- comment -->`` will cause this method to be called with the argument ``' comment '``. The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for ``<!--[if IE 9]>IE9-specific content<![endif]-->``, this method will receive ``'[if IE 9]>IE9-...
For example, the comment ``<!-- comment -->`` will cause this method to be called with the argument ``' comment '``. The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for ``<!--[if IE 9]>IE9-specific content<![endif]-->``, this method will receive ``'[if IE 9]>IE9-...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb8dafc5-7d6d-4b05-be5c-726259d1ff5f
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,601
supabase-export-v2
01bafc15262d3acc
.. method:: HTMLParser.handle_startendtag(tag, attrs) Similar to :meth:`handle_starttag`, but called when the parser encounters an XHTML-style empty tag (``<img ... />``). This method may be overridden by subclasses which require this particular lexical information; the default implementation simply calls :meth:`han...
trusted_official_docs
CPython Docs
.. method:: HTMLParser.handle_startendtag(tag, attrs) Similar to :meth:`handle_starttag`, but called when the parser encounters an XHTML-style empty tag (``<img ... />``). This method may be overridden by subclasses which require this particular lexical information; the default implementation simply calls :meth:`han...
.. method:: HTMLParser.handle_startendtag(tag, attrs) Similar to :meth:`handle_starttag`, but called when the parser encounters an XHTML-style empty tag (``<img ... />``). This method may be overridden by subclasses which require this particular lexical information; the default implementation simply calls :meth:`han...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dc77db50-c866-46ad-928a-2ee8fade9618
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,607
supabase-export-v2
a1d1c9c691a0e975
.. method:: HTMLParser.handle_charref(name) This method is called to process decimal and hexadecimal numeric character references of the form :samp:`&#{NNN};` and :samp:`&#x{NNN};`. For example, the decimal equivalent for ``&gt;`` is ``&#62;``, whereas the hexadecimal is ``&#x3E;``; in this case the method will rece...
trusted_official_docs
CPython Docs
.. method:: HTMLParser.handle_charref(name) This method is called to process decimal and hexadecimal numeric character references of the form :samp:`&#{NNN};` and :samp:`&#x{NNN};`. For example, the decimal equivalent for ``&gt;`` is ``&#62;``, whereas the hexadecimal is ``&#x3E;``; in this case the method will rece...
.. method:: HTMLParser.handle_charref(name) This method is called to process decimal and hexadecimal numeric character references of the form :samp:`&#{NNN};` and :samp:`&#x{NNN};`. For example, the decimal equivalent for ``&gt;`` is ``&#62;``, whereas the hexadecimal is ``&#x3E;``; in this case the method will rece...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e140949f-76f3-4b31-a123-7587e7f5cb54
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,565
supabase-export-v2
62eb8e97ab9b54c3
If *scripting* is false (the default), the content of the ``noscript`` element is parsed normally; if it's true, it's returned as is without being parsed. An :class:`.HTMLParser` instance is fed HTML data and calls handler methods when start tags, end tags, text, comments, and other markup elements are encountered. T...
trusted_official_docs
CPython Docs
If *scripting* is false (the default), the content of the ``noscript`` element is parsed normally; if it's true, it's returned as is without being parsed. An :class:`.HTMLParser` instance is fed HTML data and calls handler methods when start tags, end tags, text, comments, and other markup elements are encountered. T...
If *scripting* is false (the default), the content of the ``noscript`` element is parsed normally; if it's true, it's returned as is without being parsed. An :class:`.HTMLParser` instance is fed HTML data and calls handler methods when start tags, end tags, text, comments, and other markup elements are encountered. T...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e31d2004-8fe0-43d6-b730-8a3110592f5d
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,591
supabase-export-v2
8a7dbb0cc1166473
processing, but may be useful in dealing with HTML "as deployed" or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.). The following methods are called when data or markup elements are encountered and they are meant to be overridden in a subclass. The base class impleme...
trusted_official_docs
CPython Docs
processing, but may be useful in dealing with HTML "as deployed" or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.). The following methods are called when data or markup elements are encountered and they are meant to be overridden in a subclass. The base class impleme...
processing, but may be useful in dealing with HTML "as deployed" or for re-generating input with minimal changes (whitespace between attributes can be preserved, etc.). The following methods are called when data or markup elements are encountered and they are meant to be overridden in a subclass. The base class impleme...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f55717af-9f98-424d-b2dd-f9fd8eea71a5
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,621
supabase-export-v2
ff2c134a96889bd6
This method is called when an unrecognized declaration is read by the parser. The *data* parameter will be the entire contents of the declaration inside the ``<![...]>`` markup. It is sometimes useful to be overridden by a derived class. The base class implementation does nothing.
trusted_official_docs
CPython Docs
This method is called when an unrecognized declaration is read by the parser. The *data* parameter will be the entire contents of the declaration inside the ``<![...]>`` markup. It is sometimes useful to be overridden by a derived class. The base class implementation does nothing.
This method is called when an unrecognized declaration is read by the parser. The *data* parameter will be the entire contents of the declaration inside the ``<![...]>`` markup. It is sometimes useful to be overridden by a derived class. The base class implementation does nothing.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f87feabd-63f6-47fe-b4ea-3d6ad2c8ada2
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,594
supabase-export-v2
82cb1903711c8693
This method is called to handle the start tag of an element (e.g. ``<div id="main">``). The *tag* argument is the name of the tag converted to lower case. The *attrs* argument is a list of ``(name, value)`` pairs containing the attributes found inside the tag's ``<>`` brackets. The *name* will be translated to lower ...
trusted_official_docs
CPython Docs
This method is called to handle the start tag of an element (e.g. ``<div id="main">``). The *tag* argument is the name of the tag converted to lower case. The *attrs* argument is a list of ``(name, value)`` pairs containing the attributes found inside the tag's ``<>`` brackets. The *name* will be translated to lower ...
This method is called to handle the start tag of an element (e.g. ``<div id="main">``). The *tag* argument is the name of the tag converted to lower case. The *attrs* argument is a list of ``(name, value)`` pairs containing the attributes found inside the tag's ``<>`` brackets. The *name* will be translated to lower ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ff500330-57de-41da-a83e-57f0677f2b9b
CPython Docs
file://datasets/cpython/Doc/library/html.parser.rst
unknown
8ef7d5c2-4827-4fc6-aebf-655ce56f9bd4
34,578
supabase-export-v2
961c9503636861e2
.. testoutput:: Encountered a start tag: html Encountered a start tag: head Encountered a start tag: title Encountered some data : Test Encountered an end tag : title Encountered an end tag : head Encountered a start tag: body Encountered a start tag: h1 Encountered some data : Parse me! Encountered an end tag ...
trusted_official_docs
CPython Docs
.. testoutput:: Encountered a start tag: html Encountered a start tag: head Encountered a start tag: title Encountered some data : Test Encountered an end tag : title Encountered an end tag : head Encountered a start tag: body Encountered a start tag: h1 Encountered some data : Parse me! Encountered an end tag ...
.. testoutput:: Encountered a start tag: html Encountered a start tag: head Encountered a start tag: title Encountered some data : Test Encountered an end tag : title Encountered an end tag : head Encountered a start tag: body Encountered a start tag: h1 Encountered some data : Parse me! Encountered an end tag ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
47565a59-8be6-4f54-8a80-6b703fcb0fb4
CPython Docs
file://datasets/cpython/Doc/library/keyword.rst
unknown
2cc995c6-e77d-41c9-926c-84f0f5c36a69
34,665
supabase-export-v2
a1f5bb7440cc0a1d
.. data:: kwlist Sequence containing all the :ref:`keywords <keywords>` defined for the interpreter. If any keywords are defined to only be active when particular :mod:`__future__` statements are in effect, these will be included as well.
trusted_official_docs
CPython Docs
.. data:: kwlist Sequence containing all the :ref:`keywords <keywords>` defined for the interpreter. If any keywords are defined to only be active when particular :mod:`__future__` statements are in effect, these will be included as well.
.. data:: kwlist Sequence containing all the :ref:`keywords <keywords>` defined for the interpreter. If any keywords are defined to only be active when particular :mod:`__future__` statements are in effect, these will be included as well.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d6ae04fa-9679-4015-8f73-b3e1c620ffb9
CPython Docs
file://datasets/cpython/Doc/library/keyword.rst
unknown
2cc995c6-e77d-41c9-926c-84f0f5c36a69
34,669
supabase-export-v2
b66bf1e47bb455b6
.. data:: softkwlist Sequence containing all the :ref:`soft keywords <soft-keywords>` defined for the interpreter. If any soft keywords are defined to only be active when particular :mod:`__future__` statements are in effect, these will be included as well.
trusted_official_docs
CPython Docs
.. data:: softkwlist Sequence containing all the :ref:`soft keywords <soft-keywords>` defined for the interpreter. If any soft keywords are defined to only be active when particular :mod:`__future__` statements are in effect, these will be included as well.
.. data:: softkwlist Sequence containing all the :ref:`soft keywords <soft-keywords>` defined for the interpreter. If any soft keywords are defined to only be active when particular :mod:`__future__` statements are in effect, these will be included as well.
python, official-docs, cpython, P0
Local_Trusted_Corpus
004b15cc-875e-453c-b3c2-d58fcde75b80
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,696
supabase-export-v2
fc21b509bcbf3a97
If no module name is specified, all top level finders are produced. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than relying on the package internal :pep:`302` import emulation.
trusted_official_docs
CPython Docs
If no module name is specified, all top level finders are produced. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than relying on the package internal :pep:`302` import emulation.
If no module name is specified, all top level finders are produced. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than relying on the package internal :pep:`302` import emulation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
06656aa3-d73c-4ef1-b86e-cc602e83c707
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,682
supabase-export-v2
78f6f34b35faca9a
from pkgutil import extend_path __path__ = extend_path(__path__, __name__) For each directory on :data:`sys.path` that has a subdirectory that matches the package name, add the subdirectory to the package's :attr:`~module.__path__`. This is useful if one wants to distribute different parts of a single logical packag...
trusted_official_docs
CPython Docs
from pkgutil import extend_path __path__ = extend_path(__path__, __name__) For each directory on :data:`sys.path` that has a subdirectory that matches the package name, add the subdirectory to the package's :attr:`~module.__path__`. This is useful if one wants to distribute different parts of a single logical packag...
from pkgutil import extend_path __path__ = extend_path(__path__, __name__) For each directory on :data:`sys.path` that has a subdirectory that matches the package name, add the subdirectory to the package's :attr:`~module.__path__`. This is useful if one wants to distribute different parts of a single logical packag...
python, official-docs, cpython, P0
Local_Trusted_Corpus
07a9d662-bd81-4d2a-811d-64fa4e9020b5
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,732
supabase-export-v2
1d71bf115469b6e2
Resolve a name to an object. This functionality is used in numerous places in the standard library (see :issue:`12915`) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid.
trusted_official_docs
CPython Docs
Resolve a name to an object. This functionality is used in numerous places in the standard library (see :issue:`12915`) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid.
Resolve a name to an object. This functionality is used in numerous places in the standard library (see :issue:`12915`) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid.
python, official-docs, cpython, P0
Local_Trusted_Corpus
149f0772-568a-4246-81f4-4c13c3aef927
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,706
supabase-export-v2
1a9b5ad6f26c23e6
Yields :class:`ModuleInfo` for all modules recursively on *path*, or, if *path* is ``None``, all accessible modules. *path* should be either ``None`` or a list of paths to look for modules in.
trusted_official_docs
CPython Docs
Yields :class:`ModuleInfo` for all modules recursively on *path*, or, if *path* is ``None``, all accessible modules. *path* should be either ``None`` or a list of paths to look for modules in.
Yields :class:`ModuleInfo` for all modules recursively on *path*, or, if *path* is ``None``, all accessible modules. *path* should be either ``None`` or a list of paths to look for modules in.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2577cc2b-11c7-4b34-a28c-47f5b344c83c
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,695
supabase-export-v2
3c010d1cd57b9b02
If the named module is in a package, that package is imported as a side effect of invoking this function. If no module name is specified, all top level finders are produced.
trusted_official_docs
CPython Docs
If the named module is in a package, that package is imported as a side effect of invoking this function. If no module name is specified, all top level finders are produced.
If the named module is in a package, that package is imported as a side effect of invoking this function. If no module name is specified, all top level finders are produced.
python, official-docs, cpython, P0
Local_Trusted_Corpus
277bfa3e-7909-4b56-a54d-4856837c5741
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,700
supabase-export-v2
f6cd9eaeb94d49e6
*path* should be either ``None`` or a list of paths to look for modules in. *prefix* is a string to output on the front of every module name on output.
trusted_official_docs
CPython Docs
*path* should be either ``None`` or a list of paths to look for modules in. *prefix* is a string to output on the front of every module name on output.
*path* should be either ``None`` or a list of paths to look for modules in. *prefix* is a string to output on the front of every module name on output.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ff32fa3-9117-48aa-8325-d540e023398a
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,684
supabase-export-v2
f0fab4ddb7de62bb
comments, all entries found in a :file:`\*.pkg` file are added to the path, regardless of whether they exist on the filesystem (this is a feature). If the input path is not a list (as is the case for frozen packages) it is returned unchanged. The input path is not modified; an extended copy is returned. Items are onl...
trusted_official_docs
CPython Docs
comments, all entries found in a :file:`\*.pkg` file are added to the path, regardless of whether they exist on the filesystem (this is a feature). If the input path is not a list (as is the case for frozen packages) it is returned unchanged. The input path is not modified; an extended copy is returned. Items are onl...
comments, all entries found in a :file:`\*.pkg` file are added to the path, regardless of whether they exist on the filesystem (this is a feature). If the input path is not a list (as is the case for frozen packages) it is returned unchanged. The input path is not modified; an extended copy is returned. Items are onl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
39677ff9-4a0a-4aa4-b4ed-a6d62dcb7bcd
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,739
supabase-export-v2
753c362b8f29b44d
The third form requires both the module name and callable, separated by a colon. Only this form is accepted when ``strict=True``. The function will return an object (which might be a module), or raise one of the following exceptions:
trusted_official_docs
CPython Docs
The third form requires both the module name and callable, separated by a colon. Only this form is accepted when ``strict=True``. The function will return an object (which might be a module), or raise one of the following exceptions:
The third form requires both the module name and callable, separated by a colon. Only this form is accepted when ``strict=True``. The function will return an object (which might be a module), or raise one of the following exceptions:
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c0b19f3-543b-4b1b-9023-34852984079a
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,726
supabase-export-v2
807a25899777bad7
This function is intended for trusted input. It does not verify that *resource* "belongs" to *package*. If you use a user-provided *resource* path, consider verifying it. For example, require an alphanumeric filename with a known extension, or install and check a list of known resources.
trusted_official_docs
CPython Docs
This function is intended for trusted input. It does not verify that *resource* "belongs" to *package*. If you use a user-provided *resource* path, consider verifying it. For example, require an alphanumeric filename with a known extension, or install and check a list of known resources.
This function is intended for trusted input. It does not verify that *resource* "belongs" to *package*. If you use a user-provided *resource* path, consider verifying it. For example, require an alphanumeric filename with a known extension, or install and check a list of known resources.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bf78ef6-cec2-444f-967e-fb0801748668
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,734
supabase-export-v2
e7c67876b5ecdd6e
in one of the following formats, where W is shorthand for a valid Python identifier and dot stands for a literal period in these pseudo-regexes: * ``W(.W)*`` * ``W(.W)*:(W(.W)*)?`` * ``W(.W)*:(W(.W)*)``
trusted_official_docs
CPython Docs
in one of the following formats, where W is shorthand for a valid Python identifier and dot stands for a literal period in these pseudo-regexes: * ``W(.W)*`` * ``W(.W)*:(W(.W)*)?`` * ``W(.W)*:(W(.W)*)``
in one of the following formats, where W is shorthand for a valid Python identifier and dot stands for a literal period in these pseudo-regexes: * ``W(.W)*`` * ``W(.W)*:(W(.W)*)?`` * ``W(.W)*:(W(.W)*)``
python, official-docs, cpython, P0
Local_Trusted_Corpus
6073cdb9-fa1f-4096-abd2-f909cb627353
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,685
supabase-export-v2
5522e76cb8e25692
it is returned unchanged. The input path is not modified; an extended copy is returned. Items are only appended to the copy at the end. It is assumed that :data:`sys.path` is a sequence. Items of :data:`sys.path` that are not strings referring to existing directories are ignored. Unicode items on :data:`sys.path` tha...
trusted_official_docs
CPython Docs
it is returned unchanged. The input path is not modified; an extended copy is returned. Items are only appended to the copy at the end. It is assumed that :data:`sys.path` is a sequence. Items of :data:`sys.path` that are not strings referring to existing directories are ignored. Unicode items on :data:`sys.path` tha...
it is returned unchanged. The input path is not modified; an extended copy is returned. Items are only appended to the copy at the end. It is assumed that :data:`sys.path` is a sequence. Items of :data:`sys.path` that are not strings referring to existing directories are ignored. Unicode items on :data:`sys.path` tha...
python, official-docs, cpython, P0
Local_Trusted_Corpus
63ab6bba-86e7-4999-bdc7-d32f26a66744
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,718
supabase-export-v2
99c803d3f5d8fa2e
Get a resource from a package. This is a wrapper for the :term:`loader` :meth:`get_data <importlib.abc.ResourceLoader.get_data>` API. The *package* argument should be the name of a package, in standard module format (``foo.bar``). The *resource* argument should be in the form of a relative filename, using ``/`` as ...
trusted_official_docs
CPython Docs
Get a resource from a package. This is a wrapper for the :term:`loader` :meth:`get_data <importlib.abc.ResourceLoader.get_data>` API. The *package* argument should be the name of a package, in standard module format (``foo.bar``). The *resource* argument should be in the form of a relative filename, using ``/`` as ...
Get a resource from a package. This is a wrapper for the :term:`loader` :meth:`get_data <importlib.abc.ResourceLoader.get_data>` API. The *package* argument should be the name of a package, in standard module format (``foo.bar``). The *resource* argument should be in the form of a relative filename, using ``/`` as ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
65f04b4e-839d-43f5-a9c8-b055a1700d4f
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,733
supabase-export-v2
0fc067fb7bcdeb77
numerous places in the standard library (see :issue:`12915`) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid. It is expected that *name* will be a string in one of the following formats, where W is shorthand for a valid Python identifier and dot stands ...
trusted_official_docs
CPython Docs
numerous places in the standard library (see :issue:`12915`) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid. It is expected that *name* will be a string in one of the following formats, where W is shorthand for a valid Python identifier and dot stands ...
numerous places in the standard library (see :issue:`12915`) - and equivalent functionality is also in widely used third-party packages such as setuptools, Django and Pyramid. It is expected that *name* will be a string in one of the following formats, where W is shorthand for a valid Python identifier and dot stands ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
677e0ea9-0f28-4498-b953-f4b520973fe1
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,693
supabase-export-v2
bec25aa6921ba042
Yield :term:`finder` objects for the given module name. If *fullname* contains a ``'.'``, the finders will be for the package containing *fullname*, otherwise they will be all registered top level finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
trusted_official_docs
CPython Docs
Yield :term:`finder` objects for the given module name. If *fullname* contains a ``'.'``, the finders will be for the package containing *fullname*, otherwise they will be all registered top level finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
Yield :term:`finder` objects for the given module name. If *fullname* contains a ``'.'``, the finders will be for the package containing *fullname*, otherwise they will be all registered top level finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a99fa60-7537-4613-a4bb-e07cb4e40f0b
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,689
supabase-export-v2
1c7638559dd0bfa6
The returned finder is cached in :data:`sys.path_importer_cache` if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a rescan of :data:`sys.path_hooks` is necessary.
trusted_official_docs
CPython Docs
The returned finder is cached in :data:`sys.path_importer_cache` if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a rescan of :data:`sys.path_hooks` is necessary.
The returned finder is cached in :data:`sys.path_importer_cache` if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a rescan of :data:`sys.path_hooks` is necessary.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f5d1caa-26f4-43b7-b651-ef4b8f38a291
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,742
supabase-export-v2
062a39b777917b0b
:exc:`ImportError` -- if an import failed when it shouldn't have. :exc:`AttributeError` -- If a failure occurred when traversing the object hierarchy within the imported package to get to the desired object.
trusted_official_docs
CPython Docs
:exc:`ImportError` -- if an import failed when it shouldn't have. :exc:`AttributeError` -- If a failure occurred when traversing the object hierarchy within the imported package to get to the desired object.
:exc:`ImportError` -- if an import failed when it shouldn't have. :exc:`AttributeError` -- If a failure occurred when traversing the object hierarchy within the imported package to get to the desired object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
71cf86e5-f0e3-495b-baaf-b3212cdc1261
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,735
supabase-export-v2
544e315dcae9db0c
* ``W(.W)*`` * ``W(.W)*:(W(.W)*)?`` * ``W(.W)*:(W(.W)*)`` The first form is intended for backward compatibility only. It assumes that some part of the dotted name is a package, and the rest is an object somewhere within that package, possibly nested inside other objects. Because the place where the package stops and ...
trusted_official_docs
CPython Docs
* ``W(.W)*`` * ``W(.W)*:(W(.W)*)?`` * ``W(.W)*:(W(.W)*)`` The first form is intended for backward compatibility only. It assumes that some part of the dotted name is a package, and the rest is an object somewhere within that package, possibly nested inside other objects. Because the place where the package stops and ...
* ``W(.W)*`` * ``W(.W)*:(W(.W)*)?`` * ``W(.W)*:(W(.W)*)`` The first form is intended for backward compatibility only. It assumes that some part of the dotted name is a package, and the rest is an object somewhere within that package, possibly nested inside other objects. Because the place where the package stops and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7ea9b8bb-4f51-42ae-9d38-de788cc54b6e
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,719
supabase-export-v2
6cb1846bf534293f
a package, in standard module format (``foo.bar``). The *resource* argument should be in the form of a relative filename, using ``/`` as the path separator. The function returns a binary string that is the contents of the specified resource.
trusted_official_docs
CPython Docs
a package, in standard module format (``foo.bar``). The *resource* argument should be in the form of a relative filename, using ``/`` as the path separator. The function returns a binary string that is the contents of the specified resource.
a package, in standard module format (``foo.bar``). The *resource* argument should be in the form of a relative filename, using ``/`` as the path separator. The function returns a binary string that is the contents of the specified resource.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7eba3d02-56a2-4eba-8379-f57226eaa22a
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,721
supabase-export-v2
b9dcfcfc02cd5854
This function uses the :term:`loader` method :func:`~importlib.abc.FileLoader.get_data` to support modules installed in the filesystem, but also in zip files, databases, or elsewhere. For packages located in the filesystem, which have already been imported, this is the rough equivalent of::
trusted_official_docs
CPython Docs
This function uses the :term:`loader` method :func:`~importlib.abc.FileLoader.get_data` to support modules installed in the filesystem, but also in zip files, databases, or elsewhere. For packages located in the filesystem, which have already been imported, this is the rough equivalent of::
This function uses the :term:`loader` method :func:`~importlib.abc.FileLoader.get_data` to support modules installed in the filesystem, but also in zip files, databases, or elsewhere. For packages located in the filesystem, which have already been imported, this is the rough equivalent of::
python, official-docs, cpython, P0
Local_Trusted_Corpus
881f0321-6330-4f09-85fe-5605869e6ce0
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,738
supabase-export-v2
acaf976e664f8fc1
The first two forms are accepted when ``strict=False`` (the default). The third form requires both the module name and callable, separated by a colon. Only this form is accepted when ``strict=True``.
trusted_official_docs
CPython Docs
The first two forms are accepted when ``strict=False`` (the default). The third form requires both the module name and callable, separated by a colon. Only this form is accepted when ``strict=True``.
The first two forms are accepted when ``strict=False`` (the default). The third form requires both the module name and callable, separated by a colon. Only this form is accepted when ``strict=True``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c0e543d-ab28-490d-9389-1a548ba5f38b
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,699
supabase-export-v2
f19f8805c4c07440
Yields :class:`ModuleInfo` for all submodules on *path*, or, if *path* is ``None``, all top-level modules on :data:`sys.path`. *path* should be either ``None`` or a list of paths to look for modules in.
trusted_official_docs
CPython Docs
Yields :class:`ModuleInfo` for all submodules on *path*, or, if *path* is ``None``, all top-level modules on :data:`sys.path`. *path* should be either ``None`` or a list of paths to look for modules in.
Yields :class:`ModuleInfo` for all submodules on *path*, or, if *path* is ``None``, all top-level modules on :data:`sys.path`. *path* should be either ``None`` or a list of paths to look for modules in.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e137b28-d210-40a9-8d7c-5c3e963ac546
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,694
supabase-export-v2
bbc013eaebb6bcf7
the finders will be for the package containing *fullname*, otherwise they will be all registered top level finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`). If the named module is in a package, that package is imported as a side effect of invoking this function.
trusted_official_docs
CPython Docs
the finders will be for the package containing *fullname*, otherwise they will be all registered top level finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`). If the named module is in a package, that package is imported as a side effect of invoking this function.
the finders will be for the package containing *fullname*, otherwise they will be all registered top level finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`). If the named module is in a package, that package is imported as a side effect of invoking this function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
acb95f99-63bd-4f2e-9e03-7e471acf0f17
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,709
supabase-export-v2
8b5f5d3da99d9a91
Note that this function must import all *packages* (*not* all modules!) on the given *path*, in order to access the ``__path__`` attribute to find submodules. *onerror* is a function which gets called with one argument (the name of the package which was being imported) if any exception occurs while trying to import a...
trusted_official_docs
CPython Docs
Note that this function must import all *packages* (*not* all modules!) on the given *path*, in order to access the ``__path__`` attribute to find submodules. *onerror* is a function which gets called with one argument (the name of the package which was being imported) if any exception occurs while trying to import a...
Note that this function must import all *packages* (*not* all modules!) on the given *path*, in order to access the ``__path__`` attribute to find submodules. *onerror* is a function which gets called with one argument (the name of the package which was being imported) if any exception occurs while trying to import a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b13dd857-483e-4945-adc6-ded0ad9418be
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,703
supabase-export-v2
9ca61c04cd38b08a
Only works for a :term:`finder` which defines an ``iter_modules()`` method. This interface is non-standard, so the module also provides implementations for :class:`importlib.machinery.FileFinder` and :class:`zipimport.zipimporter`. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than re...
trusted_official_docs
CPython Docs
Only works for a :term:`finder` which defines an ``iter_modules()`` method. This interface is non-standard, so the module also provides implementations for :class:`importlib.machinery.FileFinder` and :class:`zipimport.zipimporter`. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than re...
Only works for a :term:`finder` which defines an ``iter_modules()`` method. This interface is non-standard, so the module also provides implementations for :class:`importlib.machinery.FileFinder` and :class:`zipimport.zipimporter`. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than re...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b42fc27f-bca4-435d-b89d-c83e8b35025e
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,720
supabase-export-v2
17698dc5bbd57fb2
The function returns a binary string that is the contents of the specified resource. This function uses the :term:`loader` method :func:`~importlib.abc.FileLoader.get_data` to support modules installed in the filesystem, but also in zip files, databases, or elsewhere.
trusted_official_docs
CPython Docs
The function returns a binary string that is the contents of the specified resource. This function uses the :term:`loader` method :func:`~importlib.abc.FileLoader.get_data` to support modules installed in the filesystem, but also in zip files, databases, or elsewhere.
The function returns a binary string that is the contents of the specified resource. This function uses the :term:`loader` method :func:`~importlib.abc.FileLoader.get_data` to support modules installed in the filesystem, but also in zip files, databases, or elsewhere.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b642b76c-b80c-4a39-9330-f5311b5f2ba9
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,736
supabase-export-v2
705839adb71fd630
place where the package stops and the object hierarchy starts can't be inferred by inspection, repeated attempts to import must be done with this form. In the second form, the caller makes the division point clear through the provision of a single colon: the dotted name to the left of the colon is a package to be imp...
trusted_official_docs
CPython Docs
place where the package stops and the object hierarchy starts can't be inferred by inspection, repeated attempts to import must be done with this form. In the second form, the caller makes the division point clear through the provision of a single colon: the dotted name to the left of the colon is a package to be imp...
place where the package stops and the object hierarchy starts can't be inferred by inspection, repeated attempts to import must be done with this form. In the second form, the caller makes the division point clear through the provision of a single colon: the dotted name to the left of the colon is a package to be imp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c55d1070-045c-4ca5-b60b-2ca0ca74c5ab
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,681
supabase-export-v2
985948106994721b
Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package's :file:`__init__.py`:: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
trusted_official_docs
CPython Docs
Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package's :file:`__init__.py`:: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package's :file:`__init__.py`:: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
python, official-docs, cpython, P0
Local_Trusted_Corpus
ccce758f-deb3-4ac1-93e8-a5c084d92179
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,737
supabase-export-v2
2ffc4a1f7032e416
object hierarchy within that package. Only one import is needed in this form. If it ends with the colon, then a module object is returned. The first two forms are accepted when ``strict=False`` (the default).
trusted_official_docs
CPython Docs
object hierarchy within that package. Only one import is needed in this form. If it ends with the colon, then a module object is returned. The first two forms are accepted when ``strict=False`` (the default).
object hierarchy within that package. Only one import is needed in this form. If it ends with the colon, then a module object is returned. The first two forms are accepted when ``strict=False`` (the default).
python, official-docs, cpython, P0
Local_Trusted_Corpus
db270d24-2d08-4a8d-94c4-f348200bc30c
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,690
supabase-export-v2
7f0767a06a2b7d73
The cache (or part of it) can be cleared manually if a rescan of :data:`sys.path_hooks` is necessary. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than relying on the package internal :pep:`302` import emulation.
trusted_official_docs
CPython Docs
The cache (or part of it) can be cleared manually if a rescan of :data:`sys.path_hooks` is necessary. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than relying on the package internal :pep:`302` import emulation.
The cache (or part of it) can be cleared manually if a rescan of :data:`sys.path_hooks` is necessary. .. versionchanged:: 3.3 Updated to be based directly on :mod:`importlib` rather than relying on the package internal :pep:`302` import emulation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb760ddf-fdf1-4fdc-a8a5-93423fad9d1d
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,723
supabase-export-v2
746f9827e5338ddd
d = os.path.dirname(sys.modules[package].__file__) data = open(os.path.join(d, resource), 'rb').read() Like the :func:`open` function, :func:`!get_data` can follow parent directories (``../``) and absolute paths (starting with ``/`` or ``C:/``, for example). It can open compilation/installation artifacts like ``.py``...
trusted_official_docs
CPython Docs
d = os.path.dirname(sys.modules[package].__file__) data = open(os.path.join(d, resource), 'rb').read() Like the :func:`open` function, :func:`!get_data` can follow parent directories (``../``) and absolute paths (starting with ``/`` or ``C:/``, for example). It can open compilation/installation artifacts like ``.py``...
d = os.path.dirname(sys.modules[package].__file__) data = open(os.path.join(d, resource), 'rb').read() Like the :func:`open` function, :func:`!get_data` can follow parent directories (``../``) and absolute paths (starting with ``/`` or ``C:/``, for example). It can open compilation/installation artifacts like ``.py``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ebef7f5f-4455-419c-97bf-eb21f134aba6
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,683
supabase-export-v2
81ad484c6dca6f6f
add the subdirectory to the package's :attr:`~module.__path__`. This is useful if one wants to distribute different parts of a single logical package as multiple directories. It also looks for :file:`\*.pkg` files beginning where ``*`` matches the *name* argument. This feature is similar to :file:`\*.pth` files (see t...
trusted_official_docs
CPython Docs
add the subdirectory to the package's :attr:`~module.__path__`. This is useful if one wants to distribute different parts of a single logical package as multiple directories. It also looks for :file:`\*.pkg` files beginning where ``*`` matches the *name* argument. This feature is similar to :file:`\*.pth` files (see t...
add the subdirectory to the package's :attr:`~module.__path__`. This is useful if one wants to distribute different parts of a single logical package as multiple directories. It also looks for :file:`\*.pkg` files beginning where ``*`` matches the *name* argument. This feature is similar to :file:`\*.pth` files (see t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eda97150-4ace-4c24-abb0-6364d6b26d00
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,708
supabase-export-v2
1052a954a15daf76
*prefix* is a string to output on the front of every module name on output. Note that this function must import all *packages* (*not* all modules!) on the given *path*, in order to access the ``__path__`` attribute to find submodules.
trusted_official_docs
CPython Docs
*prefix* is a string to output on the front of every module name on output. Note that this function must import all *packages* (*not* all modules!) on the given *path*, in order to access the ``__path__`` attribute to find submodules.
*prefix* is a string to output on the front of every module name on output. Note that this function must import all *packages* (*not* all modules!) on the given *path*, in order to access the ``__path__`` attribute to find submodules.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f56856e5-7980-4980-baea-bc1ce56090c8
CPython Docs
file://datasets/cpython/Doc/library/pkgutil.rst
unknown
47de66a5-1de0-43a8-aa53-86b2b95f31b8
34,727
supabase-export-v2
02c65468492fc6f4
user-provided *resource* path, consider verifying it. For example, require an alphanumeric filename with a known extension, or install and check a list of known resources. If the package cannot be located or loaded, or it uses a :term:`loader` which does not support :meth:`get_data <importlib.abc.ResourceLoader.get_da...
trusted_official_docs
CPython Docs
user-provided *resource* path, consider verifying it. For example, require an alphanumeric filename with a known extension, or install and check a list of known resources. If the package cannot be located or loaded, or it uses a :term:`loader` which does not support :meth:`get_data <importlib.abc.ResourceLoader.get_da...
user-provided *resource* path, consider verifying it. For example, require an alphanumeric filename with a known extension, or install and check a list of known resources. If the package cannot be located or loaded, or it uses a :term:`loader` which does not support :meth:`get_data <importlib.abc.ResourceLoader.get_da...
python, official-docs, cpython, P0
Local_Trusted_Corpus
012f2081-cdd3-46a1-bfab-70b2e553f120
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,850
supabase-export-v2
946e639c9a9ec503
.. method:: Logger.filter(record) Apply this logger's filters to the record and return ``True`` if the record is to be processed. The filters are consulted in turn, until one of them returns a false value. If none of them return a false value, the record will be processed (passed to handlers). If one returns a false...
trusted_official_docs
CPython Docs
.. method:: Logger.filter(record) Apply this logger's filters to the record and return ``True`` if the record is to be processed. The filters are consulted in turn, until one of them returns a false value. If none of them return a false value, the record will be processed (passed to handlers). If one returns a false...
.. method:: Logger.filter(record) Apply this logger's filters to the record and return ``True`` if the record is to be processed. The filters are consulted in turn, until one of them returns a false value. If none of them return a false value, the record will be processed (passed to handlers). If one returns a false...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0193521e-b4f2-43eb-b1ae-57df417de3b8
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,095
supabase-export-v2
f4686973c0fa35f9
.. function:: setLoggerClass(klass) Tells the logging system to use the class *klass* when instantiating a logger. The class should define :meth:`!__init__` such that only a name argument is required, and the :meth:`!__init__` should call :meth:`!Logger.__init__`. This function is typically called before any loggers ...
trusted_official_docs
CPython Docs
.. function:: setLoggerClass(klass) Tells the logging system to use the class *klass* when instantiating a logger. The class should define :meth:`!__init__` such that only a name argument is required, and the :meth:`!__init__` should call :meth:`!Logger.__init__`. This function is typically called before any loggers ...
.. function:: setLoggerClass(klass) Tells the logging system to use the class *klass* when instantiating a logger. The class should define :meth:`!__init__` such that only a name argument is required, and the :meth:`!__init__` should call :meth:`!Logger.__init__`. This function is typically called before any loggers ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
02a26bd2-92e6-47cf-889d-5ffd9467e61d
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,782
supabase-export-v2
71af7af58f148a34
.. attribute:: Logger.propagate If this attribute evaluates to true, events logged to this logger will be passed to the handlers of higher level (ancestor) loggers, in addition to any handlers attached to this logger. Messages are passed directly to the ancestor loggers' handlers - neither the level nor filters of t...
trusted_official_docs
CPython Docs
.. attribute:: Logger.propagate If this attribute evaluates to true, events logged to this logger will be passed to the handlers of higher level (ancestor) loggers, in addition to any handlers attached to this logger. Messages are passed directly to the ancestor loggers' handlers - neither the level nor filters of t...
.. attribute:: Logger.propagate If this attribute evaluates to true, events logged to this logger will be passed to the handlers of higher level (ancestor) loggers, in addition to any handlers attached to this logger. Messages are passed directly to the ancestor loggers' handlers - neither the level nor filters of t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
06ce2ded-2dde-4726-885b-5f9901865ada
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,764
supabase-export-v2
d7daa6e51d5b127d
INFO:__main__:Started INFO:mylib:Doing something INFO:__main__:Finished The key feature of this idiomatic usage is that the majority of code is simply creating a module level logger with ``getLogger(__name__)``, and using that logger to do any needed logging. This is concise, while allowing downstream code fine-grained...
trusted_official_docs
CPython Docs
INFO:__main__:Started INFO:mylib:Doing something INFO:__main__:Finished The key feature of this idiomatic usage is that the majority of code is simply creating a module level logger with ``getLogger(__name__)``, and using that logger to do any needed logging. This is concise, while allowing downstream code fine-grained...
INFO:__main__:Started INFO:mylib:Doing something INFO:__main__:Finished The key feature of this idiomatic usage is that the majority of code is simply creating a module level logger with ``getLogger(__name__)``, and using that logger to do any needed logging. This is concise, while allowing downstream code fine-grained...
python, official-docs, cpython, P0
Local_Trusted_Corpus
07e1c423-1a6b-4cee-a048-cc6a68e1780c
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,076
supabase-export-v2
38736a844b8c9606
This function does nothing if the root logger already has handlers configured, unless the keyword argument *force* is set to ``True``. .. note:: This function should be called from the main thread before other threads are started. In versions of Python prior to 2.7.1 and 3.2, if this function is called from multiple ...
trusted_official_docs
CPython Docs
This function does nothing if the root logger already has handlers configured, unless the keyword argument *force* is set to ``True``. .. note:: This function should be called from the main thread before other threads are started. In versions of Python prior to 2.7.1 and 3.2, if this function is called from multiple ...
This function does nothing if the root logger already has handlers configured, unless the keyword argument *force* is set to ``True``. .. note:: This function should be called from the main thread before other threads are started. In versions of Python prior to 2.7.1 and 3.2, if this function is called from multiple ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0809037c-82a1-4225-8bfb-fd7c35101350
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,909
supabase-export-v2
ac0711aabc886503
* Logging configuration APIs acquire the module-level lock, and then individual handler-level locks as those handlers are configured. * Many logging APIs lock the module-level lock. If such an API is called from this method, it could cause a deadlock if a configuration call is made on another thread, because that thr...
trusted_official_docs
CPython Docs
* Logging configuration APIs acquire the module-level lock, and then individual handler-level locks as those handlers are configured. * Many logging APIs lock the module-level lock. If such an API is called from this method, it could cause a deadlock if a configuration call is made on another thread, because that thr...
* Logging configuration APIs acquire the module-level lock, and then individual handler-level locks as those handlers are configured. * Many logging APIs lock the module-level lock. If such an API is called from this method, it could cause a deadlock if a configuration call is made on another thread, because that thr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0951868c-7dcf-4424-ae30-61a5f03ac613
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,075
supabase-export-v2
fca34c080cbdb5a3
to the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :func:`critical` will call :func:`basicConfig` automatically if no handlers are defined for the root logger. This function does nothing if the root logger already has handlers configured, unless the keyword argument *forc...
trusted_official_docs
CPython Docs
to the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :func:`critical` will call :func:`basicConfig` automatically if no handlers are defined for the root logger. This function does nothing if the root logger already has handlers configured, unless the keyword argument *forc...
to the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :func:`critical` will call :func:`basicConfig` automatically if no handlers are defined for the root logger. This function does nothing if the root logger already has handlers configured, unless the keyword argument *forc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a07f055-eded-4174-abfb-fe90fd80d06a
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,965
supabase-export-v2
1ab85c1b8a95169f
:param pathname: The full string path of the source file where the logging call was made. :type pathname: str :param lineno: The line number in the source file where the logging call was made. :type lineno: int
trusted_official_docs
CPython Docs
:param pathname: The full string path of the source file where the logging call was made. :type pathname: str :param lineno: The line number in the source file where the logging call was made. :type lineno: int
:param pathname: The full string path of the source file where the logging call was made. :type pathname: str :param lineno: The line number in the source file where the logging call was made. :type lineno: int
python, official-docs, cpython, P0
Local_Trusted_Corpus
0baf9b66-0167-4dc1-bd46-2d7148374f6c
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,872
supabase-export-v2
fefeffd4ecdf67e8
Handler Objects --------------- Handlers have the following attributes and methods. Note that :class:`Handler` is never instantiated directly; this class acts as a base for more useful subclasses. However, the :meth:`!__init__` method in subclasses needs to call :meth:`Handler.__init__`.
trusted_official_docs
CPython Docs
Handler Objects --------------- Handlers have the following attributes and methods. Note that :class:`Handler` is never instantiated directly; this class acts as a base for more useful subclasses. However, the :meth:`!__init__` method in subclasses needs to call :meth:`Handler.__init__`.
Handler Objects --------------- Handlers have the following attributes and methods. Note that :class:`Handler` is never instantiated directly; this class acts as a base for more useful subclasses. However, the :meth:`!__init__` method in subclasses needs to call :meth:`Handler.__init__`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ef504ed-5bb0-41dc-bc52-aebbb8b737c8
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,826
supabase-export-v2
a259b99ac000ec81
with the keys used by the logging system. (See the section on :ref:`logrecord-attributes` for more information on which keys are used by the logging system.) If you choose to use these attributes in logged messages, you need to exercise some care. In the above example, for instance, the :class:`Formatter` has been se...
trusted_official_docs
CPython Docs
with the keys used by the logging system. (See the section on :ref:`logrecord-attributes` for more information on which keys are used by the logging system.) If you choose to use these attributes in logged messages, you need to exercise some care. In the above example, for instance, the :class:`Formatter` has been se...
with the keys used by the logging system. (See the section on :ref:`logrecord-attributes` for more information on which keys are used by the logging system.) If you choose to use these attributes in logged messages, you need to exercise some care. In the above example, for instance, the :class:`Formatter` has been se...
python, official-docs, cpython, P0
Local_Trusted_Corpus
104aec23-823e-4144-af9a-400641d83478
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,114
supabase-export-v2
5af641936b8fb257
This function is used to turn the capture of warnings by logging on and off. If *capture* is ``True``, warnings issued by the :mod:`warnings` module will be redirected to the logging system. Specifically, a warning will be formatted using :func:`warnings.formatwarning` and the resulting string logged to a logger nam...
trusted_official_docs
CPython Docs
This function is used to turn the capture of warnings by logging on and off. If *capture* is ``True``, warnings issued by the :mod:`warnings` module will be redirected to the logging system. Specifically, a warning will be formatted using :func:`warnings.formatwarning` and the resulting string logged to a logger nam...
This function is used to turn the capture of warnings by logging on and off. If *capture* is ``True``, warnings issued by the :mod:`warnings` module will be redirected to the logging system. Specifically, a warning will be formatted using :func:`warnings.formatwarning` and the resulting string logged to a logger nam...
python, official-docs, cpython, P0
Local_Trusted_Corpus
10a3a86b-eb96-488b-8753-e231510726bc
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,857
supabase-export-v2
e45f1223de05a7b6
Returns the filename, line number, function name and stack information as a 4-element tuple. The stack information is returned as ``None`` unless *stack_info* is ``True``. The *stacklevel* parameter is passed from code calling the :meth:`debug` and other APIs. If greater than 1, the excess is used to skip stack frames...
trusted_official_docs
CPython Docs
Returns the filename, line number, function name and stack information as a 4-element tuple. The stack information is returned as ``None`` unless *stack_info* is ``True``. The *stacklevel* parameter is passed from code calling the :meth:`debug` and other APIs. If greater than 1, the excess is used to skip stack frames...
Returns the filename, line number, function name and stack information as a 4-element tuple. The stack information is returned as ``None`` unless *stack_info* is ``True``. The *stacklevel* parameter is passed from code calling the :meth:`debug` and other APIs. If greater than 1, the excess is used to skip stack frames...
python, official-docs, cpython, P0
Local_Trusted_Corpus
116ce233-7461-4384-b210-3aa0ecaebc5e
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,973
supabase-export-v2
9d3b1f0cf8cae990
convert it to a string. This allows use of user-defined classes as messages, whose ``__str__`` method can return the actual format string to be used. .. versionchanged:: 3.2 The creation of a :class:`LogRecord` has been made more configurable by providing a factory which is used to create the record. The factory can ...
trusted_official_docs
CPython Docs
convert it to a string. This allows use of user-defined classes as messages, whose ``__str__`` method can return the actual format string to be used. .. versionchanged:: 3.2 The creation of a :class:`LogRecord` has been made more configurable by providing a factory which is used to create the record. The factory can ...
convert it to a string. This allows use of user-defined classes as messages, whose ``__str__`` method can return the actual format string to be used. .. versionchanged:: 3.2 The creation of a :class:`LogRecord` has been made more configurable by providing a factory which is used to create the record. The factory can ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
131720fd-8601-4d8d-a44b-97a43bfa3cd2
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,958
supabase-export-v2
c953c5d7f2d36dbc
LogRecord Objects ----------------- :class:`LogRecord` instances are created automatically by the :class:`Logger` every time something is logged, and can be created manually via :func:`makeLogRecord` (for example, from a pickled event received over the wire).
trusted_official_docs
CPython Docs
LogRecord Objects ----------------- :class:`LogRecord` instances are created automatically by the :class:`Logger` every time something is logged, and can be created manually via :func:`makeLogRecord` (for example, from a pickled event received over the wire).
LogRecord Objects ----------------- :class:`LogRecord` instances are created automatically by the :class:`Logger` every time something is logged, and can be created manually via :func:`makeLogRecord` (for example, from a pickled event received over the wire).
python, official-docs, cpython, P0
Local_Trusted_Corpus
138a4a2b-37f6-48f0-b2af-86b65ca4a3bf
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,032
supabase-export-v2
3af3620b30ed519f
.. function:: debug(msg, *args, **kwargs) This is a convenience function that calls :meth:`Logger.debug`, on the root logger. The handling of the arguments is in every way identical to what is described in that method.
trusted_official_docs
CPython Docs
.. function:: debug(msg, *args, **kwargs) This is a convenience function that calls :meth:`Logger.debug`, on the root logger. The handling of the arguments is in every way identical to what is described in that method.
.. function:: debug(msg, *args, **kwargs) This is a convenience function that calls :meth:`Logger.debug`, on the root logger. The handling of the arguments is in every way identical to what is described in that method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
174c63a0-0f24-4043-9ecb-9700286fc93b
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,053
supabase-export-v2
8f40bc0a217fa342
.. function:: addLevelName(level, levelName) Associates level *level* with text *levelName* in an internal dictionary, which is used to map numeric levels to a textual representation, for example when a :class:`Formatter` formats a message. This function can also be used to define your own levels. The only constrain...
trusted_official_docs
CPython Docs
.. function:: addLevelName(level, levelName) Associates level *level* with text *levelName* in an internal dictionary, which is used to map numeric levels to a textual representation, for example when a :class:`Formatter` formats a message. This function can also be used to define your own levels. The only constrain...
.. function:: addLevelName(level, levelName) Associates level *level* with text *levelName* in an internal dictionary, which is used to map numeric levels to a textual representation, for example when a :class:`Formatter` formats a message. This function can also be used to define your own levels. The only constrain...
python, official-docs, cpython, P0
Local_Trusted_Corpus
176c1d7b-6b21-4ffd-9bab-bc83648a4466
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,755
supabase-export-v2
b98e1c98046cb761
module is that all Python modules can participate in logging, so your application log can include your own messages integrated with messages from third-party modules. Here's a simple example of idiomatic usage: ::
trusted_official_docs
CPython Docs
module is that all Python modules can participate in logging, so your application log can include your own messages integrated with messages from third-party modules. Here's a simple example of idiomatic usage: ::
module is that all Python modules can participate in logging, so your application log can include your own messages integrated with messages from third-party modules. Here's a simple example of idiomatic usage: ::
python, official-docs, cpython, P0
Local_Trusted_Corpus
1962d5a1-21d6-47dc-9bb1-850e3f0fed75
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,837
supabase-export-v2
a8f02e786d83b456
There is an obsolete method ``warn`` which is functionally identical to ``warning``. As ``warn`` is deprecated, please do not use it - use ``warning`` instead. .. method:: Logger.error(msg, *args, **kwargs)
trusted_official_docs
CPython Docs
There is an obsolete method ``warn`` which is functionally identical to ``warning``. As ``warn`` is deprecated, please do not use it - use ``warning`` instead. .. method:: Logger.error(msg, *args, **kwargs)
There is an obsolete method ``warn`` which is functionally identical to ``warning``. As ``warn`` is deprecated, please do not use it - use ``warning`` instead. .. method:: Logger.error(msg, *args, **kwargs)
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a0e7427-8650-4be3-a5fa-0e4a9958667c
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,785
supabase-export-v2
07afd13a994d46e8
``propagate`` attribute set to false, then that is the last logger whose handlers are offered the event to handle, and propagation stops at that point. The constructor sets this attribute to ``True``.
trusted_official_docs
CPython Docs
``propagate`` attribute set to false, then that is the last logger whose handlers are offered the event to handle, and propagation stops at that point. The constructor sets this attribute to ``True``.
``propagate`` attribute set to false, then that is the last logger whose handlers are offered the event to handle, and propagation stops at that point. The constructor sets this attribute to ``True``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a1bf679-51c5-4dd7-b85f-0ba71c197bab
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,944
supabase-export-v2
50ebf69c71247345
.. method:: format(records) Return formatted text for a list of *records*. The base implementation just returns the empty string if there are no records; otherwise, it returns the concatenation of the header, each record formatted with the line formatter, and the footer.
trusted_official_docs
CPython Docs
.. method:: format(records) Return formatted text for a list of *records*. The base implementation just returns the empty string if there are no records; otherwise, it returns the concatenation of the header, each record formatted with the line formatter, and the footer.
.. method:: format(records) Return formatted text for a list of *records*. The base implementation just returns the empty string if there are no records; otherwise, it returns the concatenation of the header, each record formatted with the line formatter, and the footer.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b0eca94-7cf0-4b0a-a407-fe0648a8a77f
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,074
supabase-export-v2
13743025280d3685
.. function:: basicConfig(**kwargs) Does basic configuration for the logging system by either creating a :class:`StreamHandler` with a default :class:`Formatter` or using the given *formatter* instance, and adding it to the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :...
trusted_official_docs
CPython Docs
.. function:: basicConfig(**kwargs) Does basic configuration for the logging system by either creating a :class:`StreamHandler` with a default :class:`Formatter` or using the given *formatter* instance, and adding it to the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :...
.. function:: basicConfig(**kwargs) Does basic configuration for the logging system by either creating a :class:`StreamHandler` with a default :class:`Formatter` or using the given *formatter* instance, and adding it to the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`, :func:`error` and :...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c137def-48de-4758-b378-aa4db32b8ec0
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,954
supabase-export-v2
f96d7dd6e37b72bd
it's assumed to be a callable and called with the record as the single parameter. The returned value should conform to that returned by :meth:`~Filter.filter`. .. versionchanged:: 3.12 You can now return a :class:`LogRecord` instance from filters to replace the log record rather than modifying it in place. This allow...
trusted_official_docs
CPython Docs
it's assumed to be a callable and called with the record as the single parameter. The returned value should conform to that returned by :meth:`~Filter.filter`. .. versionchanged:: 3.12 You can now return a :class:`LogRecord` instance from filters to replace the log record rather than modifying it in place. This allow...
it's assumed to be a callable and called with the record as the single parameter. The returned value should conform to that returned by :meth:`~Filter.filter`. .. versionchanged:: 3.12 You can now return a :class:`LogRecord` instance from filters to replace the log record rather than modifying it in place. This allow...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c3bb445-1d55-416d-b9d2-80ddfdacfa9b
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,768
supabase-export-v2
e8d1c8030af2e09a
The basic classes defined by the module, together with their attributes and methods, are listed in the sections below. * Loggers expose the interface that application code directly uses. * Handlers send the log records (created by loggers) to the appropriate destination. * Filters provide a finer grained facility for ...
trusted_official_docs
CPython Docs
The basic classes defined by the module, together with their attributes and methods, are listed in the sections below. * Loggers expose the interface that application code directly uses. * Handlers send the log records (created by loggers) to the appropriate destination. * Filters provide a finer grained facility for ...
The basic classes defined by the module, together with their attributes and methods, are listed in the sections below. * Loggers expose the interface that application code directly uses. * Handlers send the log records (created by loggers) to the appropriate destination. * Filters provide a finer grained facility for ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c929dbc-2e2a-4679-8cb9-b00a941ff7e4
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,063
supabase-export-v2
be0de6037d14e27d
If no matching numeric or string value is passed in, the string 'Level %s' % level is returned. .. note:: Levels are internally integers (as they need to be compared in the logging logic). This function is used to convert between an integer level and the level name displayed in the formatted log output by means of th...
trusted_official_docs
CPython Docs
If no matching numeric or string value is passed in, the string 'Level %s' % level is returned. .. note:: Levels are internally integers (as they need to be compared in the logging logic). This function is used to convert between an integer level and the level name displayed in the formatted log output by means of th...
If no matching numeric or string value is passed in, the string 'Level %s' % level is returned. .. note:: Levels are internally integers (as they need to be compared in the logging logic). This function is used to convert between an integer level and the level name displayed in the formatted log output by means of th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e55e511-6800-4b09-8bc1-b34ec694086a
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,034
supabase-export-v2
9ffa2ccbd8e4f1df
The only difference is that if the root logger has no handlers, then :func:`basicConfig` is called, prior to calling ``debug`` on the root logger. For very short scripts or quick demonstrations of ``logging`` facilities, ``debug`` and the other module-level functions may be convenient. However, most programs will wan...
trusted_official_docs
CPython Docs
The only difference is that if the root logger has no handlers, then :func:`basicConfig` is called, prior to calling ``debug`` on the root logger. For very short scripts or quick demonstrations of ``logging`` facilities, ``debug`` and the other module-level functions may be convenient. However, most programs will wan...
The only difference is that if the root logger has no handlers, then :func:`basicConfig` is called, prior to calling ``debug`` on the root logger. For very short scripts or quick demonstrations of ``logging`` facilities, ``debug`` and the other module-level functions may be convenient. However, most programs will wan...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2036ae95-9fc6-4e55-8d08-1b902d35d7d9
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
35,072
supabase-export-v2
94a2ff883516d6d5
.. function:: makeLogRecord(attrdict) Creates and returns a new :class:`LogRecord` instance whose attributes are defined by *attrdict*. This function is useful for taking a pickled :class:`LogRecord` attribute dictionary, sent over a socket, and reconstituting it as a :class:`LogRecord` instance at the receiving end...
trusted_official_docs
CPython Docs
.. function:: makeLogRecord(attrdict) Creates and returns a new :class:`LogRecord` instance whose attributes are defined by *attrdict*. This function is useful for taking a pickled :class:`LogRecord` attribute dictionary, sent over a socket, and reconstituting it as a :class:`LogRecord` instance at the receiving end...
.. function:: makeLogRecord(attrdict) Creates and returns a new :class:`LogRecord` instance whose attributes are defined by *attrdict*. This function is useful for taking a pickled :class:`LogRecord` attribute dictionary, sent over a socket, and reconstituting it as a :class:`LogRecord` instance at the receiving end...
python, official-docs, cpython, P0
Local_Trusted_Corpus
22961191-77ef-46c0-8599-698b55b76aff
CPython Docs
file://datasets/cpython/Doc/library/logging.rst
unknown
5841a24b-ddb2-4f1a-b487-0154a4ee3e9c
34,765
supabase-export-v2
b1e77961912a16ae
of loggers in higher-level modules, all the way up to the highest-level logger known as the root logger; this approach is known as hierarchical logging. For logging to be useful, it needs to be configured: setting the levels and destinations for each logger, potentially changing how specific modules log, often based on...
trusted_official_docs
CPython Docs
of loggers in higher-level modules, all the way up to the highest-level logger known as the root logger; this approach is known as hierarchical logging. For logging to be useful, it needs to be configured: setting the levels and destinations for each logger, potentially changing how specific modules log, often based on...
of loggers in higher-level modules, all the way up to the highest-level logger known as the root logger; this approach is known as hierarchical logging. For logging to be useful, it needs to be configured: setting the levels and destinations for each logger, potentially changing how specific modules log, often based on...
python, official-docs, cpython, P0
Local_Trusted_Corpus