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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80c3492a-7014-4b15-bc38-1d141a32ecbf | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,690 | supabase-export-v2 | 838cb7410b099df6 | commands for breakpoint number *bpnumber*. The commands themselves appear on the following lines. Type a line containing just ``end`` to terminate the commands. An example::
(Pdb) commands 1
(com) p some_variable
(com) end
(Pdb) | trusted_official_docs | CPython Docs | commands for breakpoint number *bpnumber*. The commands themselves appear on the following lines. Type a line containing just ``end`` to terminate the commands. An example::
(Pdb) commands 1
(com) p some_variable
(com) end
(Pdb) | commands for breakpoint number *bpnumber*. The commands themselves appear on the following lines. Type a line containing just ``end`` to terminate the commands. An example::
(Pdb) commands 1
(com) p some_variable
(com) end
(Pdb) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
874f4f07-e0c2-494a-94d1-c16d918efbe1 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,694 | supabase-export-v2 | b23d3b212ff47d2f | You can use breakpoint commands to start your program up again. Simply use the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that resumes execution.
Specifying any command resuming execution
(currently :pdbcmd:`continue`, :pdbcmd:`step`, :pdbcmd:`next`,
:pdbcmd:`return`, :pdbcmd:`until`, :pdbcmd... | trusted_official_docs | CPython Docs | You can use breakpoint commands to start your program up again. Simply use the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that resumes execution.
Specifying any command resuming execution
(currently :pdbcmd:`continue`, :pdbcmd:`step`, :pdbcmd:`next`,
:pdbcmd:`return`, :pdbcmd:`until`, :pdbcmd... | You can use breakpoint commands to start your program up again. Simply use the :pdbcmd:`continue` command, or :pdbcmd:`step`, or any other command that resumes execution.
Specifying any command resuming execution
(currently :pdbcmd:`continue`, :pdbcmd:`step`, :pdbcmd:`next`,
:pdbcmd:`return`, :pdbcmd:`until`, :pdbcmd... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
89977270-2e1e-4017-aa4d-7fe6916950b8 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,681 | supabase-export-v2 | 6b39e005c1555ed0 | .. pdbcommand:: disable bpnumber [bpnumber ...]
Disable the breakpoints given as a space separated list of breakpoint
numbers. Disabling a breakpoint means it cannot cause the program to stop
execution, but unlike clearing a breakpoint, it remains in the list of
breakpoints and can be (re-)enabled. | trusted_official_docs | CPython Docs | .. pdbcommand:: disable bpnumber [bpnumber ...]
Disable the breakpoints given as a space separated list of breakpoint
numbers. Disabling a breakpoint means it cannot cause the program to stop
execution, but unlike clearing a breakpoint, it remains in the list of
breakpoints and can be (re-)enabled. | .. pdbcommand:: disable bpnumber [bpnumber ...]
Disable the breakpoints given as a space separated list of breakpoint
numbers. Disabling a breakpoint means it cannot cause the program to stop
execution, but unlike clearing a breakpoint, it remains in the list of
breakpoints and can be (re-)enabled. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8ccd488f-561f-4141-9de8-b4e08b048594 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,647 | supabase-export-v2 | 9000e471459dedea | Entering a blank line repeats the last command entered. Exception: if the last command was a :pdbcmd:`list` command, the next 11 lines are listed.
Commands that the debugger doesn't recognize are assumed to be Python statements
and are executed in the context of the program being debugged. Python
statements can also be... | trusted_official_docs | CPython Docs | Entering a blank line repeats the last command entered. Exception: if the last command was a :pdbcmd:`list` command, the next 11 lines are listed.
Commands that the debugger doesn't recognize are assumed to be Python statements
and are executed in the context of the program being debugged. Python
statements can also be... | Entering a blank line repeats the last command entered. Exception: if the last command was a :pdbcmd:`list` command, the next 11 lines are listed.
Commands that the debugger doesn't recognize are assumed to be Python statements
and are executed in the context of the program being debugged. Python
statements can also be... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8ee0e6e0-e304-494e-a083-89368b09587d | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,652 | supabase-export-v2 | 9fd6cd1ba4147a40 | are cleared when the program resumes execution so it's less likely to interfere with your program compared to using normal variables like ``foo = 1``.
There are four preset *convenience variables*: | trusted_official_docs | CPython Docs | are cleared when the program resumes execution so it's less likely to interfere with your program compared to using normal variables like ``foo = 1``.
There are four preset *convenience variables*: | are cleared when the program resumes execution so it's less likely to interfere with your program compared to using normal variables like ``foo = 1``.
There are four preset *convenience variables*: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
911e6b44-7601-4e07-9f14-ea9acaf4700b | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,672 | supabase-export-v2 | d878dbf00e49d380 | another file (possibly one that hasn't been loaded yet). The file is searched on :data:`sys.path`. Acceptable forms of *filename* are ``/abspath/to/file.py``, ``relpath/file.py``, ``module`` and ``package.module``.
With a *function* argument, set a break at the first executable statement within
that function. *functio... | trusted_official_docs | CPython Docs | another file (possibly one that hasn't been loaded yet). The file is searched on :data:`sys.path`. Acceptable forms of *filename* are ``/abspath/to/file.py``, ``relpath/file.py``, ``module`` and ``package.module``.
With a *function* argument, set a break at the first executable statement within
that function. *functio... | another file (possibly one that hasn't been loaded yet). The file is searched on :data:`sys.path`. Acceptable forms of *filename* are ``/abspath/to/file.py``, ``relpath/file.py``, ``module`` and ``package.module``.
With a *function* argument, set a break at the first executable statement within
that function. *functio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
91c664f8-00c8-444a-8e90-c8ecb2058596 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,590 | supabase-export-v2 | efb174ba67de328d | 3.13 The implementation of :pep:`667` means that name assignments made via ``pdb`` will immediately affect the active scope, even when running inside an :term:`optimized scope`.
The module defines the following functions; each enters the debugger in a
slightly different way: | trusted_official_docs | CPython Docs | 3.13 The implementation of :pep:`667` means that name assignments made via ``pdb`` will immediately affect the active scope, even when running inside an :term:`optimized scope`.
The module defines the following functions; each enters the debugger in a
slightly different way: | 3.13 The implementation of :pep:`667` means that name assignments made via ``pdb`` will immediately affect the active scope, even when running inside an :term:`optimized scope`.
The module defines the following functions; each enters the debugger in a
slightly different way: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
98192aea-f701-4185-b0b4-09707c7d413a | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,741 | supabase-export-v2 | ddb5c92b720d7200 | You can do some tricks with copy mechanism to make it work::
> example.py(3)<module>()
-> pass
(Pdb) display lst[:]
display lst[:]: []
(Pdb) n
> example.py(4)<module>()
-> lst.append(1)
(Pdb) n
> example.py(5)<module>()
-> print(lst)
display lst[:]: [1] [old: []]
(Pdb) | trusted_official_docs | CPython Docs | You can do some tricks with copy mechanism to make it work::
> example.py(3)<module>()
-> pass
(Pdb) display lst[:]
display lst[:]: []
(Pdb) n
> example.py(4)<module>()
-> lst.append(1)
(Pdb) n
> example.py(5)<module>()
-> print(lst)
display lst[:]: [1] [old: []]
(Pdb) | You can do some tricks with copy mechanism to make it work::
> example.py(3)<module>()
-> pass
(Pdb) display lst[:]
display lst[:]: []
(Pdb) n
> example.py(4)<module>()
-> lst.append(1)
(Pdb) n
> example.py(5)<module>()
-> print(lst)
display lst[:]: [1] [old: []]
(Pdb) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9dc3156c-4eaa-4c1b-8cb9-2d1d67c98c12 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,561 | supabase-export-v2 | c9969f43072194e4 | and then run the program. You can then step through the code following this statement, and continue running without the debugger using the :pdbcmd:`continue` command.
.. versionchanged:: 3.7
The built-in :func:`breakpoint`, when called with defaults, can be used
instead of ``import pdb; pdb.set_trace()``. | trusted_official_docs | CPython Docs | and then run the program. You can then step through the code following this statement, and continue running without the debugger using the :pdbcmd:`continue` command.
.. versionchanged:: 3.7
The built-in :func:`breakpoint`, when called with defaults, can be used
instead of ``import pdb; pdb.set_trace()``. | and then run the program. You can then step through the code following this statement, and continue running without the debugger using the :pdbcmd:`continue` command.
.. versionchanged:: 3.7
The built-in :func:`breakpoint`, when called with defaults, can be used
instead of ``import pdb; pdb.set_trace()``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9dc8f830-bb5a-468a-8555-66b8a90c0f20 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,577 | supabase-export-v2 | fe4596fa9544e300 | .. option:: -m <module>
To execute modules similar to the way ``python -m`` does. As with a script,
the debugger will pause execution just before the first line of the module. | trusted_official_docs | CPython Docs | .. option:: -m <module>
To execute modules similar to the way ``python -m`` does. As with a script,
the debugger will pause execution just before the first line of the module. | .. option:: -m <module>
To execute modules similar to the way ``python -m`` does. As with a script,
the debugger will pause execution just before the first line of the module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9e325c64-05dc-43a3-a905-92b35c2cdb5d | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,660 | supabase-export-v2 | c128f87d355e82d4 | .. versionchanged:: 3.2 :file:`.pdbrc` can now contain commands that continue debugging, such as :pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no effect.
.. versionchanged:: 3.11
:file:`.pdbrc` is now read with ``'utf-8'`` encoding. Previously, it was read
with the system locale encoding. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.2 :file:`.pdbrc` can now contain commands that continue debugging, such as :pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no effect.
.. versionchanged:: 3.11
:file:`.pdbrc` is now read with ``'utf-8'`` encoding. Previously, it was read
with the system locale encoding. | .. versionchanged:: 3.2 :file:`.pdbrc` can now contain commands that continue debugging, such as :pdbcmd:`continue` or :pdbcmd:`next`. Previously, these commands had no effect.
.. versionchanged:: 3.11
:file:`.pdbrc` is now read with ``'utf-8'`` encoding. Previously, it was read
with the system locale encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a06334d3-ceaa-4e00-8c64-b6263e942587 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,578 | supabase-export-v2 | 1c083e8737336c62 | modules similar to the way ``python -m`` does. As with a script, the debugger will pause execution just before the first line of the module.
.. versionchanged:: 3.7
Added the ``-m`` option. | trusted_official_docs | CPython Docs | modules similar to the way ``python -m`` does. As with a script, the debugger will pause execution just before the first line of the module.
.. versionchanged:: 3.7
Added the ``-m`` option. | modules similar to the way ``python -m`` does. As with a script, the debugger will pause execution just before the first line of the module.
.. versionchanged:: 3.7
Added the ``-m`` option. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a43e3d23-78ec-45a0-9238-867678c45e9d | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,628 | supabase-export-v2 | 7b26ae19e5175a83 | The *readrc* argument defaults to true and controls whether Pdb will load .pdbrc files from the filesystem.
The *mode* argument specifies how the debugger was invoked. It impacts the workings of some debugger commands. Valid values are ``'inline'`` (used by the breakpoint() builtin),
``'cli'`` (used by the command lin... | trusted_official_docs | CPython Docs | The *readrc* argument defaults to true and controls whether Pdb will load .pdbrc files from the filesystem.
The *mode* argument specifies how the debugger was invoked. It impacts the workings of some debugger commands. Valid values are ``'inline'`` (used by the breakpoint() builtin),
``'cli'`` (used by the command lin... | The *readrc* argument defaults to true and controls whether Pdb will load .pdbrc files from the filesystem.
The *mode* argument specifies how the debugger was invoked. It impacts the workings of some debugger commands. Valid values are ``'inline'`` (used by the breakpoint() builtin),
``'cli'`` (used by the command lin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a88a6ead-e5c8-4218-a080-2052e033308c | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,680 | supabase-export-v2 | c01e28bf2c6f0a1f | the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation).
.. pdbcommand:: disable bpnumber [bpnumber ...] | trusted_official_docs | CPython Docs | the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation).
.. pdbcommand:: disable bpnumber [bpnumber ...] | the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation).
.. pdbcommand:: disable bpnumber [bpnumber ...] | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
acd3cb61-0051-403a-9974-0e0f7cf3010d | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,641 | supabase-export-v2 | 84c14be5de230858 | .. versionchanged:: 3.14 Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will always stop the program at calling frame, ignoring the *skip* pattern (if any).
.. method:: run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_t... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.14 Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will always stop the program at calling frame, ignoring the *skip* pattern (if any).
.. method:: run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_t... | .. versionchanged:: 3.14 Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will always stop the program at calling frame, ignoring the *skip* pattern (if any).
.. method:: run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)
set_t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b0760d0a-12ca-46d4-aeef-650235ecd054 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,640 | supabase-export-v2 | 37b812425015739f | .. versionadded:: 3.14 Added the *colorize* argument.
.. versionchanged:: 3.14
Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will
always stop the program at calling frame, ignoring the *skip* pattern (if any). | trusted_official_docs | CPython Docs | .. versionadded:: 3.14 Added the *colorize* argument.
.. versionchanged:: 3.14
Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will
always stop the program at calling frame, ignoring the *skip* pattern (if any). | .. versionadded:: 3.14 Added the *colorize* argument.
.. versionchanged:: 3.14
Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will
always stop the program at calling frame, ignoring the *skip* pattern (if any). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b08b6980-6f5f-4c29-822b-0956e090bab0 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,599 | supabase-export-v2 | 2cdbccdbe958ced5 | is printed to the console just before debugging begins. The *commands* argument, if given, is a list of commands to execute when the debugger starts.
.. versionchanged:: 3.7
The keyword-only argument *header*. | trusted_official_docs | CPython Docs | is printed to the console just before debugging begins. The *commands* argument, if given, is a list of commands to execute when the debugger starts.
.. versionchanged:: 3.7
The keyword-only argument *header*. | is printed to the console just before debugging begins. The *commands* argument, if given, is a list of commands to execute when the debugger starts.
.. versionchanged:: 3.7
The keyword-only argument *header*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b10048bd-8b61-47b6-b31f-06d2ec6c943b | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,714 | supabase-export-v2 | 939d0bf209b2913f | at that line. With two arguments, list the given range; if the second argument is less than the first, it is interpreted as a count.
The current line in the current frame is indicated by ``->``. If an
exception is being debugged, the line where the exception was originally
raised or propagated is indicated by ``>>``,... | trusted_official_docs | CPython Docs | at that line. With two arguments, list the given range; if the second argument is less than the first, it is interpreted as a count.
The current line in the current frame is indicated by ``->``. If an
exception is being debugged, the line where the exception was originally
raised or propagated is indicated by ``>>``,... | at that line. With two arguments, list the given range; if the second argument is less than the first, it is interpreted as a count.
The current line in the current frame is indicated by ``->``. If an
exception is being debugged, the line where the exception was originally
raised or propagated is indicated by ``>>``,... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b3a92bae-e2e9-4d01-9dcd-8981c261c654 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,761 | supabase-export-v2 | c564505a5bf71de6 | .. pdbcommand:: ! statement
Execute the (one-line) *statement* in the context of the current stack frame. The exclamation point can be omitted unless the first word of the statement
resembles a debugger command, e.g.: | trusted_official_docs | CPython Docs | .. pdbcommand:: ! statement
Execute the (one-line) *statement* in the context of the current stack frame. The exclamation point can be omitted unless the first word of the statement
resembles a debugger command, e.g.: | .. pdbcommand:: ! statement
Execute the (one-line) *statement* in the context of the current stack frame. The exclamation point can be omitted unless the first word of the statement
resembles a debugger command, e.g.: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b5806eb6-3ea5-4d87-a931-31f048e1682b | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,649 | supabase-export-v2 | 428c73dee2a45d2f | .. versionchanged:: 3.13 Expressions/Statements whose prefix is a pdb command are now correctly identified and executed.
The debugger supports :ref:`aliases <debugger-aliases>`. Aliases can have
parameters which allows one a certain level of adaptability to the context under
examination. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.13 Expressions/Statements whose prefix is a pdb command are now correctly identified and executed.
The debugger supports :ref:`aliases <debugger-aliases>`. Aliases can have
parameters which allows one a certain level of adaptability to the context under
examination. | .. versionchanged:: 3.13 Expressions/Statements whose prefix is a pdb command are now correctly identified and executed.
The debugger supports :ref:`aliases <debugger-aliases>`. Aliases can have
parameters which allows one a certain level of adaptability to the context under
examination. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b8c53095-11c1-46cf-87f7-74d16a8b6cf0 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,692 | supabase-export-v2 | dafcd1e5fcdcd6c7 | To remove all commands from a breakpoint, type ``commands`` and follow it immediately with ``end``; that is, give no commands.
With no *bpnumber* argument, ``commands`` refers to the most recently set
breakpoint that still exists. | trusted_official_docs | CPython Docs | To remove all commands from a breakpoint, type ``commands`` and follow it immediately with ``end``; that is, give no commands.
With no *bpnumber* argument, ``commands`` refers to the most recently set
breakpoint that still exists. | To remove all commands from a breakpoint, type ``commands`` and follow it immediately with ``end``; that is, give no commands.
With no *bpnumber* argument, ``commands`` refers to the most recently set
breakpoint that still exists. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c18c070d-2100-41f2-a1e3-b5de4a16bc21 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,700 | supabase-export-v2 | b2265b3546345f36 | .. pdbcommand:: n(ext)
Continue execution until the next line in the current function is reached or
it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is
that :pdbcmd:`step` stops inside a called function, while :pdbcmd:`next`
executes called functions at (nearly) full speed, only stopping at the ... | trusted_official_docs | CPython Docs | .. pdbcommand:: n(ext)
Continue execution until the next line in the current function is reached or
it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is
that :pdbcmd:`step` stops inside a called function, while :pdbcmd:`next`
executes called functions at (nearly) full speed, only stopping at the ... | .. pdbcommand:: n(ext)
Continue execution until the next line in the current function is reached or
it returns. (The difference between :pdbcmd:`next` and :pdbcmd:`step` is
that :pdbcmd:`step` stops inside a called function, while :pdbcmd:`next`
executes called functions at (nearly) full speed, only stopping at the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c615351f-a939-4c58-ac4a-c3a7f0b32909 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,598 | supabase-export-v2 | 60f67548adb29e4f | .. function:: set_trace(*, header=None, commands=None)
Enter the debugger at the calling stack frame. This is useful to hard-code
a breakpoint at a given point in a program, even if the code is not
otherwise being debugged (e.g. when an assertion fails). If given,
*header* is printed to the console just before debug... | trusted_official_docs | CPython Docs | .. function:: set_trace(*, header=None, commands=None)
Enter the debugger at the calling stack frame. This is useful to hard-code
a breakpoint at a given point in a program, even if the code is not
otherwise being debugged (e.g. when an assertion fails). If given,
*header* is printed to the console just before debug... | .. function:: set_trace(*, header=None, commands=None)
Enter the debugger at the calling stack frame. This is useful to hard-code
a breakpoint at a given point in a program, even if the code is not
otherwise being debugged (e.g. when an assertion fails). If given,
*header* is printed to the console just before debug... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca29bfcf-0383-4961-aa49-2b3f00f465a7 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,704 | supabase-export-v2 | f3d7cc98dc70a355 | continue execution until a line with a number greater or equal to *lineno* is reached. In both cases, also stop when the current frame returns.
.. versionchanged:: 3.2
Allow giving an explicit line number. | trusted_official_docs | CPython Docs | continue execution until a line with a number greater or equal to *lineno* is reached. In both cases, also stop when the current frame returns.
.. versionchanged:: 3.2
Allow giving an explicit line number. | continue execution until a line with a number greater or equal to *lineno* is reached. In both cases, also stop when the current frame returns.
.. versionchanged:: 3.2
Allow giving an explicit line number. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ccf9e3ea-16c0-475e-9914-df0d558d7ab3 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,679 | supabase-export-v2 | 9a8de92719036c2e | .. pdbcommand:: cl(ear) [filename:lineno | bpnumber ...]
With a *filename:lineno* argument, clear all the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). | trusted_official_docs | CPython Docs | .. pdbcommand:: cl(ear) [filename:lineno | bpnumber ...]
With a *filename:lineno* argument, clear all the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). | .. pdbcommand:: cl(ear) [filename:lineno | bpnumber ...]
With a *filename:lineno* argument, clear all the breakpoints at this line. With a space separated list of breakpoint numbers, clear those breakpoints. Without argument, clear all breaks (but first ask confirmation). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ceee8496-f0cb-4fea-a3be-28c460e2a222 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,566 | supabase-export-v2 | d98b0d5635213da2 | > ...(2)double() -> breakpoint() (Pdb) p x 3 (Pdb) continue 3 * 2 is 6
.. versionchanged:: 3.3
Tab-completion via the :mod:`readline` module is available for commands and
command arguments, e.g. the current global and local names are offered as
arguments of the ``p`` command. | trusted_official_docs | CPython Docs | > ...(2)double() -> breakpoint() (Pdb) p x 3 (Pdb) continue 3 * 2 is 6
.. versionchanged:: 3.3
Tab-completion via the :mod:`readline` module is available for commands and
command arguments, e.g. the current global and local names are offered as
arguments of the ``p`` command. | > ...(2)double() -> breakpoint() (Pdb) p x 3 (Pdb) continue 3 * 2 is 6
.. versionchanged:: 3.3
Tab-completion via the :mod:`readline` module is available for commands and
command arguments, e.g. the current global and local names are offered as
arguments of the ``p`` command. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cf5539bb-701b-4338-a7bf-116e2b300cd3 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,746 | supabase-export-v2 | a8f02df4529a4da2 | .. pdbcommand:: interact
Start an interactive interpreter (using the :mod:`code` module) in a new
global namespace initialised from the local and global namespaces for the
current scope. Use ``exit()`` or ``quit()`` to exit the interpreter and
return to the debugger. | trusted_official_docs | CPython Docs | .. pdbcommand:: interact
Start an interactive interpreter (using the :mod:`code` module) in a new
global namespace initialised from the local and global namespaces for the
current scope. Use ``exit()`` or ``quit()`` to exit the interpreter and
return to the debugger. | .. pdbcommand:: interact
Start an interactive interpreter (using the :mod:`code` module) in a new
global namespace initialised from the local and global namespaces for the
current scope. Use ``exit()`` or ``quit()`` to exit the interpreter and
return to the debugger. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d0fe6ac4-1449-47e6-ab16-f1615e435c3e | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,631 | supabase-export-v2 | 48c5910a2e745870 | *colorize* argument, if set to ``True``, will enable colorized output in the debugger, if color is supported. This will highlight source code displayed in pdb.
Example call to enable tracing with *skip*:: | trusted_official_docs | CPython Docs | *colorize* argument, if set to ``True``, will enable colorized output in the debugger, if color is supported. This will highlight source code displayed in pdb.
Example call to enable tracing with *skip*:: | *colorize* argument, if set to ``True``, will enable colorized output in the debugger, if color is supported. This will highlight source code displayed in pdb.
Example call to enable tracing with *skip*:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d5e1bf2a-236f-4bed-9598-79e3227e1c0a | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,597 | supabase-export-v2 | dd203312ccedc6d5 | with the given arguments. When :func:`runcall` returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered.
.. function:: set_trace(*, header=None, commands=None) | trusted_official_docs | CPython Docs | with the given arguments. When :func:`runcall` returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered.
.. function:: set_trace(*, header=None, commands=None) | with the given arguments. When :func:`runcall` returns, it returns whatever the function call returned. The debugger prompt appears as soon as the function is entered.
.. function:: set_trace(*, header=None, commands=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd1eca2e-ee10-4050-9b6f-d8bede12cb64 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,629 | supabase-export-v2 | 7f4c13bd1544a365 | (used by the breakpoint() builtin), ``'cli'`` (used by the command line invocation) or ``None`` (for backwards compatible behaviour, as before the *mode* argument was added).
The *backend* argument specifies the backend to use for the debugger. If ``None``
is passed, the default backend will be used. See :func:`set_de... | trusted_official_docs | CPython Docs | (used by the breakpoint() builtin), ``'cli'`` (used by the command line invocation) or ``None`` (for backwards compatible behaviour, as before the *mode* argument was added).
The *backend* argument specifies the backend to use for the debugger. If ``None``
is passed, the default backend will be used. See :func:`set_de... | (used by the breakpoint() builtin), ``'cli'`` (used by the command line invocation) or ``None`` (for backwards compatible behaviour, as before the *mode* argument was added).
The *backend* argument specifies the backend to use for the debugger. If ``None``
is passed, the default backend will be used. See :func:`set_de... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dddd7405-fd3a-4db5-bb1f-f7321fd9ddce | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,689 | supabase-export-v2 | 6ceb9611c00f3ebd | .. pdbcommand:: commands [bpnumber]
Specify a list of commands for breakpoint number *bpnumber*. The commands
themselves appear on the following lines. Type a line containing just
``end`` to terminate the commands. An example:: | trusted_official_docs | CPython Docs | .. pdbcommand:: commands [bpnumber]
Specify a list of commands for breakpoint number *bpnumber*. The commands
themselves appear on the following lines. Type a line containing just
``end`` to terminate the commands. An example:: | .. pdbcommand:: commands [bpnumber]
Specify a list of commands for breakpoint number *bpnumber*. The commands
themselves appear on the following lines. Type a line containing just
``end`` to terminate the commands. An example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e02141d0-0ac7-4b34-bfce-4385c01ae821 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,614 | supabase-export-v2 | fc460f300d545a6c | .. function:: set_default_backend(backend)
There are two supported backends for pdb: ``'settrace'`` and ``'monitoring'``. See :class:`bdb.Bdb` for details. The user can set the default backend to
use if none is specified when instantiating :class:`Pdb`. If no backend is
specified, the default is ``'settrace'``. | trusted_official_docs | CPython Docs | .. function:: set_default_backend(backend)
There are two supported backends for pdb: ``'settrace'`` and ``'monitoring'``. See :class:`bdb.Bdb` for details. The user can set the default backend to
use if none is specified when instantiating :class:`Pdb`. If no backend is
specified, the default is ``'settrace'``. | .. function:: set_default_backend(backend)
There are two supported backends for pdb: ``'settrace'`` and ``'monitoring'``. See :class:`bdb.Bdb` for details. The user can set the default backend to
use if none is specified when instantiating :class:`Pdb`. If no backend is
specified, the default is ``'settrace'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e1dd59f7-1ff7-4ebe-a09d-d2557c7c7d8c | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,653 | supabase-export-v2 | 97a9e873ac02bb16 | There are four preset *convenience variables*:
* ``$_frame``: the current frame you are debugging
* ``$_retval``: the return value if the frame is returning
* ``$_exception``: the exception if the frame is raising an exception
* ``$_asynctask``: the asyncio task if pdb stops in an async function | trusted_official_docs | CPython Docs | There are four preset *convenience variables*:
* ``$_frame``: the current frame you are debugging
* ``$_retval``: the return value if the frame is returning
* ``$_exception``: the exception if the frame is raising an exception
* ``$_asynctask``: the asyncio task if pdb stops in an async function | There are four preset *convenience variables*:
* ``$_frame``: the current frame you are debugging
* ``$_retval``: the return value if the frame is returning
* ``$_exception``: the exception if the frame is raising an exception
* ``$_asynctask``: the asyncio task if pdb stops in an async function | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e4062b6b-b1fb-498d-8a65-49b557ef3771 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,685 | supabase-export-v2 | 61315dd2e7dbdb11 | .. pdbcommand:: ignore bpnumber [count]
Set the ignore count for the given breakpoint number. If *count* is omitted,
the ignore count is set to 0. A breakpoint becomes active when the ignore
count is zero. When non-zero, the *count* is decremented each time the
breakpoint is reached and the breakpoint is not disable... | trusted_official_docs | CPython Docs | .. pdbcommand:: ignore bpnumber [count]
Set the ignore count for the given breakpoint number. If *count* is omitted,
the ignore count is set to 0. A breakpoint becomes active when the ignore
count is zero. When non-zero, the *count* is decremented each time the
breakpoint is reached and the breakpoint is not disable... | .. pdbcommand:: ignore bpnumber [count]
Set the ignore count for the given breakpoint number. If *count* is omitted,
the ignore count is set to 0. A breakpoint becomes active when the ignore
count is zero. When non-zero, the *count* is decremented each time the
breakpoint is reached and the breakpoint is not disable... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e61d5cde-ade6-499d-8644-16e4e52e4107 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,693 | supabase-export-v2 | c222a2c6f8fb2c7a | With no *bpnumber* argument, ``commands`` refers to the most recently set breakpoint that still exists.
You can use breakpoint commands to start your program up again. Simply use
the :pdbcmd:`continue` command, or :pdbcmd:`step`,
or any other command that resumes execution. | trusted_official_docs | CPython Docs | With no *bpnumber* argument, ``commands`` refers to the most recently set breakpoint that still exists.
You can use breakpoint commands to start your program up again. Simply use
the :pdbcmd:`continue` command, or :pdbcmd:`step`,
or any other command that resumes execution. | With no *bpnumber* argument, ``commands`` refers to the most recently set breakpoint that still exists.
You can use breakpoint commands to start your program up again. Simply use
the :pdbcmd:`continue` command, or :pdbcmd:`step`,
or any other command that resumes execution. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e7918a3e-6b0d-4bd1-be72-aad9201c1c40 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,585 | supabase-export-v2 | 8b1b1e5a43efe24c | in a system call or waiting for I/O will only work once the next bytecode instruction is executed or when the process receives a signal.
Typical usage to execute a statement under control of the debugger is:: | trusted_official_docs | CPython Docs | in a system call or waiting for I/O will only work once the next bytecode instruction is executed or when the process receives a signal.
Typical usage to execute a statement under control of the debugger is:: | in a system call or waiting for I/O will only work once the next bytecode instruction is executed or when the process receives a signal.
Typical usage to execute a statement under control of the debugger is:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e9176283-37bc-4d2c-942b-4ee0206fb7e2 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,772 | supabase-export-v2 | 776967db6ca8ee4b | A confirmation prompt will be shown if the debugger is invoked in ``'inline'`` mode. Either ``y``, ``Y``, ``<Enter>`` or ``EOF`` will confirm the quit.
.. versionchanged:: 3.14
A confirmation prompt will be shown if the debugger is invoked in
``'inline'`` mode. After the confirmation, the debugger will call
:func:`s... | trusted_official_docs | CPython Docs | A confirmation prompt will be shown if the debugger is invoked in ``'inline'`` mode. Either ``y``, ``Y``, ``<Enter>`` or ``EOF`` will confirm the quit.
.. versionchanged:: 3.14
A confirmation prompt will be shown if the debugger is invoked in
``'inline'`` mode. After the confirmation, the debugger will call
:func:`s... | A confirmation prompt will be shown if the debugger is invoked in ``'inline'`` mode. Either ``y``, ``Y``, ``<Enter>`` or ``EOF`` will confirm the quit.
.. versionchanged:: 3.14
A confirmation prompt will be shown if the debugger is invoked in
``'inline'`` mode. After the confirmation, the debugger will call
:func:`s... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6c73bf0-eaa4-4023-8304-26072b50aa28 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,767 | supabase-export-v2 | a9b5c2f47d63548c | .. pdbcommand:: run [args ...] restart [args ...]
Restart the debugged Python program. If *args* is supplied, it is split
with :mod:`shlex` and the result is used as the new :data:`sys.argv`. History, breakpoints, actions and debugger options are preserved. :pdbcmd:`restart` is an alias for :pdbcmd:`run`. | trusted_official_docs | CPython Docs | .. pdbcommand:: run [args ...] restart [args ...]
Restart the debugged Python program. If *args* is supplied, it is split
with :mod:`shlex` and the result is used as the new :data:`sys.argv`. History, breakpoints, actions and debugger options are preserved. :pdbcmd:`restart` is an alias for :pdbcmd:`run`. | .. pdbcommand:: run [args ...] restart [args ...]
Restart the debugged Python program. If *args* is supplied, it is split
with :mod:`shlex` and the result is used as the new :data:`sys.argv`. History, breakpoints, actions and debugger options are preserved. :pdbcmd:`restart` is an alias for :pdbcmd:`run`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fc724406-008e-4f14-ba24-759f5fcbd711 | CPython Docs | file://datasets/cpython/Doc/library/pdb.rst | unknown | ed25a592-6f4d-4c83-9421-7881c7b9269c | 33,768 | supabase-export-v2 | d5cf25fcf7ebad63 | with :mod:`shlex` and the result is used as the new :data:`sys.argv`. History, breakpoints, actions and debugger options are preserved. :pdbcmd:`restart` is an alias for :pdbcmd:`run`.
.. versionchanged:: 3.14
:pdbcmd:`run` and :pdbcmd:`restart` commands are disabled when the
debugger is invoked in ``'inline'`` mode. | trusted_official_docs | CPython Docs | with :mod:`shlex` and the result is used as the new :data:`sys.argv`. History, breakpoints, actions and debugger options are preserved. :pdbcmd:`restart` is an alias for :pdbcmd:`run`.
.. versionchanged:: 3.14
:pdbcmd:`run` and :pdbcmd:`restart` commands are disabled when the
debugger is invoked in ``'inline'`` mode. | with :mod:`shlex` and the result is used as the new :data:`sys.argv`. History, breakpoints, actions and debugger options are preserved. :pdbcmd:`restart` is an alias for :pdbcmd:`run`.
.. versionchanged:: 3.14
:pdbcmd:`run` and :pdbcmd:`restart` commands are disabled when the
debugger is invoked in ``'inline'`` mode. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1164b6a3-bce3-4ada-bf2d-a6e70643ef89 | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,795 | supabase-export-v2 | 522210c25342243a | --------------
The :mod:`!linecache` module allows one to get any line from a Python source file, while
attempting to optimize internally, using a cache, the common case where many
lines are read from a single file. This is used by the :mod:`traceback` module
to retrieve source lines for inclusion in the formatted trac... | trusted_official_docs | CPython Docs | --------------
The :mod:`!linecache` module allows one to get any line from a Python source file, while
attempting to optimize internally, using a cache, the common case where many
lines are read from a single file. This is used by the :mod:`traceback` module
to retrieve source lines for inclusion in the formatted trac... | --------------
The :mod:`!linecache` module allows one to get any line from a Python source file, while
attempting to optimize internally, using a cache, the common case where many
lines are read from a single file. This is used by the :mod:`traceback` module
to retrieve source lines for inclusion in the formatted trac... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c556c35-9b8d-4a2d-af5d-2f1cfd85446f | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,800 | supabase-export-v2 | f6c66d5c8bd9edae | function will never raise an exception --- it will return ``''`` on errors (the terminating newline character will be included for lines that are found).
.. index:: triple: module; search; path | trusted_official_docs | CPython Docs | function will never raise an exception --- it will return ``''`` on errors (the terminating newline character will be included for lines that are found).
.. index:: triple: module; search; path | function will never raise an exception --- it will return ``''`` on errors (the terminating newline character will be included for lines that are found).
.. index:: triple: module; search; path | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4103eb23-532c-4444-bbfb-9b7693e29298 | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,801 | supabase-export-v2 | db9e162deaee71cb | .. index:: triple: module; search; path
If *filename* indicates a frozen module (starting with ``'<frozen '``), the function
will attempt to get the real file name from ``module_globals['__file__']`` if
*module_globals* is not ``None``. | trusted_official_docs | CPython Docs | .. index:: triple: module; search; path
If *filename* indicates a frozen module (starting with ``'<frozen '``), the function
will attempt to get the real file name from ``module_globals['__file__']`` if
*module_globals* is not ``None``. | .. index:: triple: module; search; path
If *filename* indicates a frozen module (starting with ``'<frozen '``), the function
will attempt to get the real file name from ``module_globals['__file__']`` if
*module_globals* is not ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4b01873f-e9e3-4e2e-888d-4a6e469fa632 | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,802 | supabase-export-v2 | 6e4942c693ca6f99 | indicates a frozen module (starting with ``'<frozen '``), the function will attempt to get the real file name from ``module_globals['__file__']`` if *module_globals* is not ``None``.
If a file named *filename* is not found, the function first checks
for a :pep:`302` ``__loader__`` in *module_globals*. If there is such... | trusted_official_docs | CPython Docs | indicates a frozen module (starting with ``'<frozen '``), the function will attempt to get the real file name from ``module_globals['__file__']`` if *module_globals* is not ``None``.
If a file named *filename* is not found, the function first checks
for a :pep:`302` ``__loader__`` in *module_globals*. If there is such... | indicates a frozen module (starting with ``'<frozen '``), the function will attempt to get the real file name from ``module_globals['__file__']`` if *module_globals* is not ``None``.
If a file named *filename* is not found, the function first checks
for a :pep:`302` ``__loader__`` in *module_globals*. If there is such... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
76dd4fd8-6c2a-4e2e-b6a9-232ead58c644 | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,808 | supabase-export-v2 | e23e8303447a4861 | .. function:: checkcache(filename=None)
Check the cache for validity. Use this function if files in the cache may have
changed on disk, and you require the updated version. If *filename* is omitted,
it will check all the entries in the cache. | trusted_official_docs | CPython Docs | .. function:: checkcache(filename=None)
Check the cache for validity. Use this function if files in the cache may have
changed on disk, and you require the updated version. If *filename* is omitted,
it will check all the entries in the cache. | .. function:: checkcache(filename=None)
Check the cache for validity. Use this function if files in the cache may have
changed on disk, and you require the updated version. If *filename* is omitted,
it will check all the entries in the cache. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94099ccc-2b16-4b1e-ae42-d318277e0dad | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,797 | supabase-export-v2 | 28dd64017547a5de | files. This function uses :func:`tokenize.detect_encoding` to get the encoding of the file; in the absence of an encoding token, the file encoding defaults to UTF-8.
The :mod:`!linecache` module defines the following functions: | trusted_official_docs | CPython Docs | files. This function uses :func:`tokenize.detect_encoding` to get the encoding of the file; in the absence of an encoding token, the file encoding defaults to UTF-8.
The :mod:`!linecache` module defines the following functions: | files. This function uses :func:`tokenize.detect_encoding` to get the encoding of the file; in the absence of an encoding token, the file encoding defaults to UTF-8.
The :mod:`!linecache` module defines the following functions: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
986b6512-eb4f-4fec-bb7b-11781757f9e3 | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,810 | supabase-export-v2 | 24a4dc46f54aca0b | .. function:: lazycache(filename, module_globals)
Capture enough detail about a non-file-based module to permit getting its
lines later via :func:`getline` even if *module_globals* is ``None`` in the later
call. This avoids doing I/O until a line is actually needed, without having
to carry the module globals around ... | trusted_official_docs | CPython Docs | .. function:: lazycache(filename, module_globals)
Capture enough detail about a non-file-based module to permit getting its
lines later via :func:`getline` even if *module_globals* is ``None`` in the later
call. This avoids doing I/O until a line is actually needed, without having
to carry the module globals around ... | .. function:: lazycache(filename, module_globals)
Capture enough detail about a non-file-based module to permit getting its
lines later via :func:`getline` even if *module_globals* is ``None`` in the later
call. This avoids doing I/O until a line is actually needed, without having
to carry the module globals around ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d717bc18-8715-4d27-b9d7-6c34535e6472 | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,796 | supabase-export-v2 | a9f293f8e99652b5 | many lines are read from a single file. This is used by the :mod:`traceback` module to retrieve source lines for inclusion in the formatted traceback.
The :func:`tokenize.open` function is used to open files. This
function uses :func:`tokenize.detect_encoding` to get the encoding of the
file; in the absence of an encod... | trusted_official_docs | CPython Docs | many lines are read from a single file. This is used by the :mod:`traceback` module to retrieve source lines for inclusion in the formatted traceback.
The :func:`tokenize.open` function is used to open files. This
function uses :func:`tokenize.detect_encoding` to get the encoding of the
file; in the absence of an encod... | many lines are read from a single file. This is used by the :mod:`traceback` module to retrieve source lines for inclusion in the formatted traceback.
The :func:`tokenize.open` function is used to open files. This
function uses :func:`tokenize.detect_encoding` to get the encoding of the
file; in the absence of an encod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6b5a3d5-3186-4161-9cc0-380ba8fd896a | CPython Docs | file://datasets/cpython/Doc/library/linecache.rst | unknown | 6ce5dd21-2d57-476b-a844-a6b60f454876 | 33,799 | supabase-export-v2 | b95697fa142957c8 | .. function:: getline(filename, lineno, module_globals=None)
Get line *lineno* from file named *filename*. This function will never raise an
exception --- it will return ``''`` on errors (the terminating newline character
will be included for lines that are found). | trusted_official_docs | CPython Docs | .. function:: getline(filename, lineno, module_globals=None)
Get line *lineno* from file named *filename*. This function will never raise an
exception --- it will return ``''`` on errors (the terminating newline character
will be included for lines that are found). | .. function:: getline(filename, lineno, module_globals=None)
Get line *lineno* from file named *filename*. This function will never raise an
exception --- it will return ``''`` on errors (the terminating newline character
will be included for lines that are found). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05cd5e65-fe99-46f3-9470-076a83f7dc66 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,951 | supabase-export-v2 | 48c148c9e5fa8bef | * - ``callback`` :meth:`~SubprocessProtocol.pipe_data_received` - Called when the child process writes data into its *stdout* or *stderr* pipe.
* - ``callback`` :meth:`~SubprocessProtocol.pipe_connection_lost`
- Called when one of the pipes communicating with
the child process is closed. | trusted_official_docs | CPython Docs | * - ``callback`` :meth:`~SubprocessProtocol.pipe_data_received` - Called when the child process writes data into its *stdout* or *stderr* pipe.
* - ``callback`` :meth:`~SubprocessProtocol.pipe_connection_lost`
- Called when one of the pipes communicating with
the child process is closed. | * - ``callback`` :meth:`~SubprocessProtocol.pipe_data_received` - Called when the child process writes data into its *stdout* or *stderr* pipe.
* - ``callback`` :meth:`~SubprocessProtocol.pipe_connection_lost`
- Called when one of the pipes communicating with
the child process is closed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
097acd72-9e15-4f4e-864a-6081fc7f8b09 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,939 | supabase-export-v2 | 524f9024974bf5ae | * - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>` - Called when the transport's buffer drains below the low water mark.
.. rubric:: Streaming Protocols (TCP, Unix Sockets, Pipes)
.. list-table::
:widths: 50 50
:class: full-width-table | trusted_official_docs | CPython Docs | * - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>` - Called when the transport's buffer drains below the low water mark.
.. rubric:: Streaming Protocols (TCP, Unix Sockets, Pipes)
.. list-table::
:widths: 50 50
:class: full-width-table | * - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>` - Called when the transport's buffer drains below the low water mark.
.. rubric:: Streaming Protocols (TCP, Unix Sockets, Pipes)
.. list-table::
:widths: 50 50
:class: full-width-table | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1dfb2662-be3d-4c41-bde3-92f2050eeec1 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,955 | supabase-export-v2 | 5495597f4bc00e18 | Policies is a low-level mechanism to alter the behavior of functions like :func:`asyncio.get_event_loop`. See also the main :ref:`policies section <asyncio-policies>` for more details.
.. rubric:: Accessing Policies
.. list-table::
:widths: 50 50
:class: full-width-table | trusted_official_docs | CPython Docs | Policies is a low-level mechanism to alter the behavior of functions like :func:`asyncio.get_event_loop`. See also the main :ref:`policies section <asyncio-policies>` for more details.
.. rubric:: Accessing Policies
.. list-table::
:widths: 50 50
:class: full-width-table | Policies is a low-level mechanism to alter the behavior of functions like :func:`asyncio.get_event_loop`. See also the main :ref:`policies section <asyncio-policies>` for more details.
.. rubric:: Accessing Policies
.. list-table::
:widths: 50 50
:class: full-width-table | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2542e743-ad95-48b4-bb4e-0ed9f8e04faa | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,938 | supabase-export-v2 | 33c75c07b6d150e7 | * - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>` - Called when the transport's buffer goes over the high water mark.
* - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>`
- Called when the transport's buffer drains below the low water mark. | trusted_official_docs | CPython Docs | * - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>` - Called when the transport's buffer goes over the high water mark.
* - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>`
- Called when the transport's buffer drains below the low water mark. | * - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>` - Called when the transport's buffer goes over the high water mark.
* - ``callback`` :meth:`resume_writing() <BaseProtocol.resume_writing>`
- Called when the transport's buffer drains below the low water mark. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
30f5156b-859d-4267-8942-141b17de6c85 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,937 | supabase-export-v2 | ff1eeb3d828bd9f9 | * - ``callback`` :meth:`connection_lost() <BaseProtocol.connection_lost>` - Called when the connection is lost or closed.
* - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>`
- Called when the transport's buffer goes over the high water mark. | trusted_official_docs | CPython Docs | * - ``callback`` :meth:`connection_lost() <BaseProtocol.connection_lost>` - Called when the connection is lost or closed.
* - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>`
- Called when the transport's buffer goes over the high water mark. | * - ``callback`` :meth:`connection_lost() <BaseProtocol.connection_lost>` - Called when the connection is lost or closed.
* - ``callback`` :meth:`pause_writing() <BaseProtocol.pause_writing>`
- Called when the transport's buffer goes over the high water mark. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3b89991d-cd52-4bb3-83e7-772d59005220 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,918 | supabase-export-v2 | 874cc829a9ed50a4 | * - :meth:`transport.get_write_buffer_limits() <WriteTransport.get_write_buffer_limits>` - Return high and low water marks for write flow control.
* - :meth:`transport.set_write_buffer_limits()
<WriteTransport.set_write_buffer_limits>`
- Set new high and low water marks for write flow control. | trusted_official_docs | CPython Docs | * - :meth:`transport.get_write_buffer_limits() <WriteTransport.get_write_buffer_limits>` - Return high and low water marks for write flow control.
* - :meth:`transport.set_write_buffer_limits()
<WriteTransport.set_write_buffer_limits>`
- Set new high and low water marks for write flow control. | * - :meth:`transport.get_write_buffer_limits() <WriteTransport.get_write_buffer_limits>` - Return high and low water marks for write flow control.
* - :meth:`transport.set_write_buffer_limits()
<WriteTransport.set_write_buffer_limits>`
- Set new high and low water marks for write flow control. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55db997b-69ba-40b2-b295-0685c007ad10 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,819 | supabase-export-v2 | 401fee2a03a0132e | * - :func:`asyncio.get_event_loop` - Get an event loop instance (running or current via the current policy).
* - :func:`asyncio.set_event_loop`
- Set the event loop as current via the current policy. | trusted_official_docs | CPython Docs | * - :func:`asyncio.get_event_loop` - Get an event loop instance (running or current via the current policy).
* - :func:`asyncio.set_event_loop`
- Set the event loop as current via the current policy. | * - :func:`asyncio.get_event_loop` - Get an event loop instance (running or current via the current policy).
* - :func:`asyncio.set_event_loop`
- Set the event loop as current via the current policy. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7c2a67e7-20d1-4809-8fc1-c34f3fccb5e7 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,905 | supabase-export-v2 | 9cec0b83238f51d3 | Transports that can receive data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_read_pipe`, etc:
.. rubric:: Read Transports
.. list-table::
:widths: 50 50
:class: full-width-table | trusted_official_docs | CPython Docs | Transports that can receive data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_read_pipe`, etc:
.. rubric:: Read Transports
.. list-table::
:widths: 50 50
:class: full-width-table | Transports that can receive data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_read_pipe`, etc:
.. rubric:: Read Transports
.. list-table::
:widths: 50 50
:class: full-width-table | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7ccebb7a-ca0f-48f3-b7eb-dc203e1d50e2 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,862 | supabase-export-v2 | 94ca627dbb718f25 | * - ``await`` :meth:`loop.connect_read_pipe` - Wrap a read end of a pipe into a ``(transport, protocol)`` pair.
* - ``await`` :meth:`loop.connect_write_pipe`
- Wrap a write end of a pipe into a ``(transport, protocol)`` pair. | trusted_official_docs | CPython Docs | * - ``await`` :meth:`loop.connect_read_pipe` - Wrap a read end of a pipe into a ``(transport, protocol)`` pair.
* - ``await`` :meth:`loop.connect_write_pipe`
- Wrap a write end of a pipe into a ``(transport, protocol)`` pair. | * - ``await`` :meth:`loop.connect_read_pipe` - Wrap a read end of a pipe into a ``(transport, protocol)`` pair.
* - ``await`` :meth:`loop.connect_write_pipe`
- Wrap a write end of a pipe into a ``(transport, protocol)`` pair. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8e810894-24e6-48e4-a523-22f9fa5e0e6b | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,952 | supabase-export-v2 | 038ea7c62be4dec1 | * - ``callback`` :meth:`~SubprocessProtocol.pipe_connection_lost` - Called when one of the pipes communicating with the child process is closed.
* - ``callback`` :meth:`process_exited()
<SubprocessProtocol.process_exited>`
- Called when the child process has exited. It can be called before
:meth:`~SubprocessProtocol... | trusted_official_docs | CPython Docs | * - ``callback`` :meth:`~SubprocessProtocol.pipe_connection_lost` - Called when one of the pipes communicating with the child process is closed.
* - ``callback`` :meth:`process_exited()
<SubprocessProtocol.process_exited>`
- Called when the child process has exited. It can be called before
:meth:`~SubprocessProtocol... | * - ``callback`` :meth:`~SubprocessProtocol.pipe_connection_lost` - Called when one of the pipes communicating with the child process is closed.
* - ``callback`` :meth:`process_exited()
<SubprocessProtocol.process_exited>`
- Called when the child process has exited. It can be called before
:meth:`~SubprocessProtocol... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7c3ab0c-fd66-4f5d-bd2a-8daccb4f8dcf | CPython Docs | file://datasets/cpython/Doc/library/asyncio-llapi-index.rst | unknown | 6f785bc6-d093-406e-bc14-64e813271a66 | 33,910 | supabase-export-v2 | 4fe6987675e5a45b | Transports that can Send data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_write_pipe`, etc:
.. rubric:: Write Transports
.. list-table::
:widths: 50 50
:class: full-width-table | trusted_official_docs | CPython Docs | Transports that can Send data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_write_pipe`, etc:
.. rubric:: Write Transports
.. list-table::
:widths: 50 50
:class: full-width-table | Transports that can Send data (TCP and Unix connections, pipes, etc). Returned from methods like :meth:`loop.create_connection`, :meth:`loop.create_unix_connection`, :meth:`loop.connect_write_pipe`, etc:
.. rubric:: Write Transports
.. list-table::
:widths: 50 50
:class: full-width-table | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
043a8d06-9db4-47da-b34f-230f17cc3d86 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,050 | supabase-export-v2 | 35a790cd7579185f | .. method:: __call__(name, value)
Retrieves the specialized header associated with *name* from the
registry (using *default_class* if *name* does not appear in the
registry) and composes it with *base_class* to produce a class,
calls the constructed class's constructor, passing it the same
argument list, and finall... | trusted_official_docs | CPython Docs | .. method:: __call__(name, value)
Retrieves the specialized header associated with *name* from the
registry (using *default_class* if *name* does not appear in the
registry) and composes it with *base_class* to produce a class,
calls the constructed class's constructor, passing it the same
argument list, and finall... | .. method:: __call__(name, value)
Retrieves the specialized header associated with *name* from the
registry (using *default_class* if *name* does not appear in the
registry) and composes it with *base_class* to produce a class,
calls the constructed class's constructor, passing it the same
argument list, and finall... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
08ddfdfc-ad61-4c00-8b38-48a5553491b9 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,015 | supabase-export-v2 | da4ac38370307aa5 | .. class:: MIMEVersionHeader
There is really only one valid value for the :mailheader:`MIME-Version`
header, and that is ``1.0``. For future proofing, this header class
supports other valid version numbers. If a version number has a valid value
per :rfc:`2045`, then the header object will have non-``None`` values fo... | trusted_official_docs | CPython Docs | .. class:: MIMEVersionHeader
There is really only one valid value for the :mailheader:`MIME-Version`
header, and that is ``1.0``. For future proofing, this header class
supports other valid version numbers. If a version number has a valid value
per :rfc:`2045`, then the header object will have non-``None`` values fo... | .. class:: MIMEVersionHeader
There is really only one valid value for the :mailheader:`MIME-Version`
header, and that is ``1.0``. For future proofing, this header class
supports other valid version numbers. If a version number has a valid value
per :rfc:`2045`, then the header object will have non-``None`` values fo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
10f28779-dfca-488f-8599-ac61c15c7c8c | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,044 | supabase-export-v2 | 7def5e365d72cb7a | AddressHeader :cc: UniqueAddressHeader :resent-cc: AddressHeader :bcc: UniqueAddressHeader :resent-bcc: AddressHeader :from: UniqueAddressHeader :resent-from: AddressHeader :reply-to: UniqueAddressHeader :mime-version: MIMEVersionHeader :content-type: ContentTypeHeader :content-disposition: ContentDispositionHeader :co... | trusted_official_docs | CPython Docs | AddressHeader :cc: UniqueAddressHeader :resent-cc: AddressHeader :bcc: UniqueAddressHeader :resent-bcc: AddressHeader :from: UniqueAddressHeader :resent-from: AddressHeader :reply-to: UniqueAddressHeader :mime-version: MIMEVersionHeader :content-type: ContentTypeHeader :content-disposition: ContentDispositionHeader :co... | AddressHeader :cc: UniqueAddressHeader :resent-cc: AddressHeader :bcc: UniqueAddressHeader :resent-bcc: AddressHeader :from: UniqueAddressHeader :resent-from: AddressHeader :reply-to: UniqueAddressHeader :mime-version: MIMEVersionHeader :content-type: ContentTypeHeader :content-disposition: ContentDispositionHeader :co... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1cb5e473-58d1-4010-9f4b-e6e579b79870 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,975 | supabase-export-v2 | 269c9c413c960d45 | of ``None`` means unlimited. The ``BaseHeader`` value for this attribute is ``None``; it is expected that specialized header classes will override this value as needed.
``BaseHeader`` also provides the following method, which is called by the
email library code and should not in general be called by application
progr... | trusted_official_docs | CPython Docs | of ``None`` means unlimited. The ``BaseHeader`` value for this attribute is ``None``; it is expected that specialized header classes will override this value as needed.
``BaseHeader`` also provides the following method, which is called by the
email library code and should not in general be called by application
progr... | of ``None`` means unlimited. The ``BaseHeader`` value for this attribute is ``None``; it is expected that specialized header classes will override this value as needed.
``BaseHeader`` also provides the following method, which is called by the
email library code and should not in general be called by application
progr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
269a6c61-83b3-4751-ae60-07358bdaeb2a | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,965 | supabase-export-v2 | 9f13c7029f68c3c3 | of this is managed transparently for the typical application program, but interfaces are provided for modifying the default behavior for use by more complex applications.
The sections below first document the header base classes and their attributes,
followed by the API for modifying the behavior of :class:`.HeaderRegi... | trusted_official_docs | CPython Docs | of this is managed transparently for the typical application program, but interfaces are provided for modifying the default behavior for use by more complex applications.
The sections below first document the header base classes and their attributes,
followed by the API for modifying the behavior of :class:`.HeaderRegi... | of this is managed transparently for the typical application program, but interfaces are provided for modifying the default behavior for use by more complex applications.
The sections below first document the header base classes and their attributes,
followed by the API for modifying the behavior of :class:`.HeaderRegi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
345d940b-f068-4d33-b337-515f6885c3c8 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,052 | supabase-export-v2 | 287b7a5bbe7ee412 | represent data parsed from structured headers and can, in general, be used by an application program to construct structured values to assign to specific headers.
.. class:: Address(display_name='', username='', domain='', addr_spec=None) | trusted_official_docs | CPython Docs | represent data parsed from structured headers and can, in general, be used by an application program to construct structured values to assign to specific headers.
.. class:: Address(display_name='', username='', domain='', addr_spec=None) | represent data parsed from structured headers and can, in general, be used by an application program to construct structured values to assign to specific headers.
.. class:: Address(display_name='', username='', domain='', addr_spec=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
410804e6-aaae-47a2-a76c-898129d674ea | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,987 | supabase-export-v2 | 2828aec86f84686c | words. Defects are registered in such cases, as well as defects for issues such as invalid characters within the encoded words or the non-encoded text.
This header type provides no additional attributes. | trusted_official_docs | CPython Docs | words. Defects are registered in such cases, as well as defects for issues such as invalid characters within the encoded words or the non-encoded text.
This header type provides no additional attributes. | words. Defects are registered in such cases, as well as defects for issues such as invalid characters within the encoded words or the non-encoded text.
This header type provides no additional attributes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4129fab0-d5e3-48bc-bb34-478d7927029d | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,983 | supabase-export-v2 | 34266771c18f8ed4 | def init(self, /, *args, **kw): self._myattr = kw.pop('myattr') super().init(*args, **kw)
That is, anything extra that the specialized class puts in to the ``kwds``
dictionary should be removed and handled, and the remaining contents of
``kw`` (and ``args``) passed to the ``BaseHeader`` ``init`` method. | trusted_official_docs | CPython Docs | def init(self, /, *args, **kw): self._myattr = kw.pop('myattr') super().init(*args, **kw)
That is, anything extra that the specialized class puts in to the ``kwds``
dictionary should be removed and handled, and the remaining contents of
``kw`` (and ``args``) passed to the ``BaseHeader`` ``init`` method. | def init(self, /, *args, **kw): self._myattr = kw.pop('myattr') super().init(*args, **kw)
That is, anything extra that the specialized class puts in to the ``kwds``
dictionary should be removed and handled, and the remaining contents of
``kw`` (and ``args``) passed to the ``BaseHeader`` ``init`` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
429f333f-28ca-4668-8ff3-10d1d10eba65 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,970 | supabase-export-v2 | ac6e9e37906406dc | .. attribute:: name
The name of the header (the portion of the field before the ':'). This
is exactly the value passed in the
:attr:`~email.policy.EmailPolicy.header_factory` call for *name*; that
is, case is preserved. | trusted_official_docs | CPython Docs | .. attribute:: name
The name of the header (the portion of the field before the ':'). This
is exactly the value passed in the
:attr:`~email.policy.EmailPolicy.header_factory` call for *name*; that
is, case is preserved. | .. attribute:: name
The name of the header (the portion of the field before the ':'). This
is exactly the value passed in the
:attr:`~email.policy.EmailPolicy.header_factory` call for *name*; that
is, case is preserved. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
46ca9df5-ed1d-4609-8e2c-aa77e5387438 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,023 | supabase-export-v2 | ca8e4b60bd80073b | .. class:: ParameterizedMIMEHeader
MIME headers all start with the prefix 'Content-'. Each specific header has
a certain value, described under the class for that header. Some can
also take a list of supplemental parameters, which have a common format. This class serves as a base for all the MIME headers that take pa... | trusted_official_docs | CPython Docs | .. class:: ParameterizedMIMEHeader
MIME headers all start with the prefix 'Content-'. Each specific header has
a certain value, described under the class for that header. Some can
also take a list of supplemental parameters, which have a common format. This class serves as a base for all the MIME headers that take pa... | .. class:: ParameterizedMIMEHeader
MIME headers all start with the prefix 'Content-'. Each specific header has
a certain value, described under the class for that header. Some can
also take a list of supplemental parameters, which have a common format. This class serves as a base for all the MIME headers that take pa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4774e761-f2b9-4f51-98d8-d96bfb3877e1 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,071 | supabase-export-v2 | cf6acba49dc918bd | display_name: [address-list];
As a convenience for processing lists of addresses that consist of a mixture
of groups and single addresses, a ``Group`` may also be used to represent
single addresses that are not part of a group by setting *display_name* to
``None`` and providing a list of the single address as *addre... | trusted_official_docs | CPython Docs | display_name: [address-list];
As a convenience for processing lists of addresses that consist of a mixture
of groups and single addresses, a ``Group`` may also be used to represent
single addresses that are not part of a group by setting *display_name* to
``None`` and providing a list of the single address as *addre... | display_name: [address-list];
As a convenience for processing lists of addresses that consist of a mixture
of groups and single addresses, a ``Group`` may also be used to represent
single addresses that are not part of a group by setting *display_name* to
``None`` and providing a list of the single address as *addre... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4ad72c61-c723-4bdc-974b-0f6e2597ef35 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,997 | supabase-export-v2 | a381358be8f4d204 | msg['Date'] = datetime(2011, 7, 15, 21)
Because this is a naive ``datetime`` it will be interpreted as a UTC
timestamp, and the resulting value will have a timezone of ``-0000``. Much
more useful is to use the :func:`~email.utils.localtime` function from the
:mod:`~email.utils` module:: | trusted_official_docs | CPython Docs | msg['Date'] = datetime(2011, 7, 15, 21)
Because this is a naive ``datetime`` it will be interpreted as a UTC
timestamp, and the resulting value will have a timezone of ``-0000``. Much
more useful is to use the :func:`~email.utils.localtime` function from the
:mod:`~email.utils` module:: | msg['Date'] = datetime(2011, 7, 15, 21)
Because this is a naive ``datetime`` it will be interpreted as a UTC
timestamp, and the resulting value will have a timezone of ``-0000``. Much
more useful is to use the :func:`~email.utils.localtime` function from the
:mod:`~email.utils` module:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5636ebaf-9a00-40df-ab1b-25acff5f6ec9 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,056 | supabase-export-v2 | ee1553a1491a8650 | where each part must conform to specific syntax rules spelled out in :rfc:`5322`.
As a convenience *addr_spec* can be specified instead of *username* and
*domain*, in which case *username* and *domain* will be parsed from the
*addr_spec*. An *addr_spec* must be a properly RFC quoted string; if it is
not ``Address`` ... | trusted_official_docs | CPython Docs | where each part must conform to specific syntax rules spelled out in :rfc:`5322`.
As a convenience *addr_spec* can be specified instead of *username* and
*domain*, in which case *username* and *domain* will be parsed from the
*addr_spec*. An *addr_spec* must be a properly RFC quoted string; if it is
not ``Address`` ... | where each part must conform to specific syntax rules spelled out in :rfc:`5322`.
As a convenience *addr_spec* can be specified instead of *username* and
*domain*, in which case *username* and *domain* will be parsed from the
*addr_spec*. An *addr_spec* must be a properly RFC quoted string; if it is
not ``Address`` ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5b502f8b-7bf1-4bbc-8762-74f12d0b9c8c | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,978 | supabase-export-v2 | 649d01859273e90a | be treated as if it were ``7bit``, since headers may not contain arbitrary binary data. If :attr:`~email.policy.EmailPolicy.utf8` is ``False``, non-ASCII data will be :rfc:`2047` encoded.
``BaseHeader`` by itself cannot be used to create a header object. It
defines a protocol that each specialized header cooperates wi... | trusted_official_docs | CPython Docs | be treated as if it were ``7bit``, since headers may not contain arbitrary binary data. If :attr:`~email.policy.EmailPolicy.utf8` is ``False``, non-ASCII data will be :rfc:`2047` encoded.
``BaseHeader`` by itself cannot be used to create a header object. It
defines a protocol that each specialized header cooperates wi... | be treated as if it were ``7bit``, since headers may not contain arbitrary binary data. If :attr:`~email.policy.EmailPolicy.utf8` is ``False``, non-ASCII data will be :rfc:`2047` encoded.
``BaseHeader`` by itself cannot be used to create a header object. It
defines a protocol that each specialized header cooperates wi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d7f30aa-a57a-4de7-a10d-7569d24c7693 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,004 | supabase-export-v2 | 3f28a7ebaee5828c | .. attribute:: groups
A tuple of :class:`.Group` objects encoding the
addresses and groups found in the header value. Addresses that are
not part of a group are represented in this list as single-address
``Groups`` whose :attr:`~.Group.display_name` is ``None``. | trusted_official_docs | CPython Docs | .. attribute:: groups
A tuple of :class:`.Group` objects encoding the
addresses and groups found in the header value. Addresses that are
not part of a group are represented in this list as single-address
``Groups`` whose :attr:`~.Group.display_name` is ``None``. | .. attribute:: groups
A tuple of :class:`.Group` objects encoding the
addresses and groups found in the header value. Addresses that are
not part of a group are represented in this list as single-address
``Groups`` whose :attr:`~.Group.display_name` is ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
67d6c016-7932-468b-9fa0-99f3f34d13fb | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,002 | supabase-export-v2 | db7256ab697a39ec | Address headers are one of the most complex structured header types. The ``AddressHeader`` class provides a generic interface to any address header.
This header type provides the following additional attributes: | trusted_official_docs | CPython Docs | Address headers are one of the most complex structured header types. The ``AddressHeader`` class provides a generic interface to any address header.
This header type provides the following additional attributes: | Address headers are one of the most complex structured header types. The ``AddressHeader`` class provides a generic interface to any address header.
This header type provides the following additional attributes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
72848318-e5d9-47c9-a7df-d799f24cb93a | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,986 | supabase-export-v2 | ecca2c87cecd8301 | :rfc:`5322`. Any header that does not have a specified syntax is treated as unstructured. The classic example of an unstructured header is the :mailheader:`Subject` header.
In :rfc:`5322`, an unstructured header is a run of arbitrary text in the
ASCII character set. :rfc:`2047`, however, has an :rfc:`5322` compatible
... | trusted_official_docs | CPython Docs | :rfc:`5322`. Any header that does not have a specified syntax is treated as unstructured. The classic example of an unstructured header is the :mailheader:`Subject` header.
In :rfc:`5322`, an unstructured header is a run of arbitrary text in the
ASCII character set. :rfc:`2047`, however, has an :rfc:`5322` compatible
... | :rfc:`5322`. Any header that does not have a specified syntax is treated as unstructured. The classic example of an unstructured header is the :mailheader:`Subject` header.
In :rfc:`5322`, an unstructured header is a run of arbitrary text in the
ASCII character set. :rfc:`2047`, however, has an :rfc:`5322` compatible
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
749b22ba-f5bd-4286-a1e1-3e58d585ade7 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,977 | supabase-export-v2 | d340f39dfcd24534 | .. method:: fold(*, policy)
Return a string containing :attr:`~email.policy.Policy.linesep`
characters as required to correctly fold the header according to
*policy*. A :attr:`~email.policy.Policy.cte_type` of ``8bit`` will be
treated as if it were ``7bit``, since headers may not contain arbitrary
binary data. If :... | trusted_official_docs | CPython Docs | .. method:: fold(*, policy)
Return a string containing :attr:`~email.policy.Policy.linesep`
characters as required to correctly fold the header according to
*policy*. A :attr:`~email.policy.Policy.cte_type` of ``8bit`` will be
treated as if it were ``7bit``, since headers may not contain arbitrary
binary data. If :... | .. method:: fold(*, policy)
Return a string containing :attr:`~email.policy.Policy.linesep`
characters as required to correctly fold the header according to
*policy*. A :attr:`~email.policy.Policy.cte_type` of ``8bit`` will be
treated as if it were ``7bit``, since headers may not contain arbitrary
binary data. If :... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
764b223b-3c37-452d-9a74-dd8043056b77 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,013 | supabase-export-v2 | eeec9e213b0d1c3b | contains more than one address (which would be a violation of the RFC under the default :mod:`~email.policy`), accessing this attribute will result in a :exc:`ValueError`.
Many of the above classes also have a ``Unique`` variant (for example,
``UniqueUnstructuredHeader``). The only difference is that in the ``Unique``
... | trusted_official_docs | CPython Docs | contains more than one address (which would be a violation of the RFC under the default :mod:`~email.policy`), accessing this attribute will result in a :exc:`ValueError`.
Many of the above classes also have a ``Unique`` variant (for example,
``UniqueUnstructuredHeader``). The only difference is that in the ``Unique``
... | contains more than one address (which would be a violation of the RFC under the default :mod:`~email.policy`), accessing this attribute will result in a :exc:`ValueError`.
Many of the above classes also have a ``Unique`` variant (for example,
``UniqueUnstructuredHeader``). The only difference is that in the ``Unique``
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8039b6ee-138d-4a0e-b8fa-05ceef3addf4 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,058 | supabase-export-v2 | d9febf43e255f25d | .. attribute:: display_name
The display name portion of the address, if any, with all quoting
removed. If the address does not have a display name, this attribute
will be an empty string. | trusted_official_docs | CPython Docs | .. attribute:: display_name
The display name portion of the address, if any, with all quoting
removed. If the address does not have a display name, this attribute
will be an empty string. | .. attribute:: display_name
The display name portion of the address, if any, with all quoting
removed. If the address does not have a display name, this attribute
will be an empty string. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
88ee8cc0-b859-4bbb-ad27-2fdf402045eb | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,073 | supabase-export-v2 | bf50e4191acfb76d | .. attribute:: display_name
The ``display_name`` of the group. If it is ``None`` and there is
exactly one ``Address`` in ``addresses``, then the ``Group`` represents a
single address that is not in a group. | trusted_official_docs | CPython Docs | .. attribute:: display_name
The ``display_name`` of the group. If it is ``None`` and there is
exactly one ``Address`` in ``addresses``, then the ``Group`` represents a
single address that is not in a group. | .. attribute:: display_name
The ``display_name`` of the group. If it is ``None`` and there is
exactly one ``Address`` in ``addresses``, then the ``Group`` represents a
single address that is not in a group. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
93102ce4-c575-43f2-9ce6-0de8a66ed344 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,996 | supabase-export-v2 | 65fe529c9352b6fe | When creating a ``DateHeader``, *value* may be :class:`~datetime.datetime` instance. This means, for example, that the following code is valid and does what one would expect::
msg['Date'] = datetime(2011, 7, 15, 21) | trusted_official_docs | CPython Docs | When creating a ``DateHeader``, *value* may be :class:`~datetime.datetime` instance. This means, for example, that the following code is valid and does what one would expect::
msg['Date'] = datetime(2011, 7, 15, 21) | When creating a ``DateHeader``, *value* may be :class:`~datetime.datetime` instance. This means, for example, that the following code is valid and does what one would expect::
msg['Date'] = datetime(2011, 7, 15, 21) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a0ce0397-2f29-4adf-9bff-420c93719e54 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,985 | supabase-export-v2 | 50b2b1c407a29b9b | .. class:: UnstructuredHeader
An "unstructured" header is the default type of header in :rfc:`5322`. Any header that does not have a specified syntax is treated as
unstructured. The classic example of an unstructured header is the
:mailheader:`Subject` header. | trusted_official_docs | CPython Docs | .. class:: UnstructuredHeader
An "unstructured" header is the default type of header in :rfc:`5322`. Any header that does not have a specified syntax is treated as
unstructured. The classic example of an unstructured header is the
:mailheader:`Subject` header. | .. class:: UnstructuredHeader
An "unstructured" header is the default type of header in :rfc:`5322`. Any header that does not have a specified syntax is treated as
unstructured. The classic example of an unstructured header is the
:mailheader:`Subject` header. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6aa469d-73b5-48e7-8dc8-a4da259053bb | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,989 | supabase-export-v2 | 765b9d5d42f8ac80 | .. class:: DateHeader
:rfc:`5322` specifies a very specific format for dates within email headers. The ``DateHeader`` parser recognizes that date format, as well as
recognizing a number of variant forms that are sometimes found "in the
wild". | trusted_official_docs | CPython Docs | .. class:: DateHeader
:rfc:`5322` specifies a very specific format for dates within email headers. The ``DateHeader`` parser recognizes that date format, as well as
recognizing a number of variant forms that are sometimes found "in the
wild". | .. class:: DateHeader
:rfc:`5322` specifies a very specific format for dates within email headers. The ``DateHeader`` parser recognizes that date format, as well as
recognizing a number of variant forms that are sometimes found "in the
wild". | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6de42f0-f045-4873-b6e9-9ab83a1a54ae | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,992 | supabase-export-v2 | a7569ce047090a5b | .. attribute:: datetime
If the header value can be recognized as a valid date of one form or
another, this attribute will contain a :class:`~datetime.datetime`
instance representing that date. If the timezone of the input date is
specified as ``-0000`` (indicating it is in UTC but contains no
information about the ... | trusted_official_docs | CPython Docs | .. attribute:: datetime
If the header value can be recognized as a valid date of one form or
another, this attribute will contain a :class:`~datetime.datetime`
instance representing that date. If the timezone of the input date is
specified as ``-0000`` (indicating it is in UTC but contains no
information about the ... | .. attribute:: datetime
If the header value can be recognized as a valid date of one form or
another, this attribute will contain a :class:`~datetime.datetime`
instance representing that date. If the timezone of the input date is
specified as ``-0000`` (indicating it is in UTC but contains no
information about the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a9a4c9b7-4208-425a-b89d-6f683c4e8f80 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,968 | supabase-export-v2 | 0389ca5f3b6db469 | *name* and *value* are passed to ``BaseHeader`` from the :attr:`~email.policy.EmailPolicy.header_factory` call. The string value of any header object is the *value* fully decoded to unicode.
This base class defines the following read-only properties: | trusted_official_docs | CPython Docs | *name* and *value* are passed to ``BaseHeader`` from the :attr:`~email.policy.EmailPolicy.header_factory` call. The string value of any header object is the *value* fully decoded to unicode.
This base class defines the following read-only properties: | *name* and *value* are passed to ``BaseHeader`` from the :attr:`~email.policy.EmailPolicy.header_factory` call. The string value of any header object is the *value* fully decoded to unicode.
This base class defines the following read-only properties: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ad0fac11-4d1d-4797-bd6b-5d6edb343132 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,007 | supabase-export-v2 | 737b580eda1deb06 | the list at the point where the group occurs in the value (that is, the list of addresses is "flattened" into a one dimensional list).
The ``decoded`` value of the header will have all encoded words decoded to
unicode. :class:`~encodings.idna` encoded domain names are also decoded to
unicode. The ``decoded`` value is... | trusted_official_docs | CPython Docs | the list at the point where the group occurs in the value (that is, the list of addresses is "flattened" into a one dimensional list).
The ``decoded`` value of the header will have all encoded words decoded to
unicode. :class:`~encodings.idna` encoded domain names are also decoded to
unicode. The ``decoded`` value is... | the list at the point where the group occurs in the value (that is, the list of addresses is "flattened" into a one dimensional list).
The ``decoded`` value of the header will have all encoded words decoded to
unicode. :class:`~encodings.idna` encoded domain names are also decoded to
unicode. The ``decoded`` value is... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b0dc0bcf-d174-4864-a2fd-b5b9d0638ea9 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,008 | supabase-export-v2 | 68fdb9795ae86799 | also decoded to unicode. The ``decoded`` value is set by :ref:`joining <meth-str-join>` the :class:`str` value of the elements of the ``groups`` attribute with ``', '``.
A list of :class:`.Address` and :class:`.Group` objects in any combination
may be used to set the value of an address header. ``Group`` objects whose... | trusted_official_docs | CPython Docs | also decoded to unicode. The ``decoded`` value is set by :ref:`joining <meth-str-join>` the :class:`str` value of the elements of the ``groups`` attribute with ``', '``.
A list of :class:`.Address` and :class:`.Group` objects in any combination
may be used to set the value of an address header. ``Group`` objects whose... | also decoded to unicode. The ``decoded`` value is set by :ref:`joining <meth-str-join>` the :class:`str` value of the elements of the ``groups`` attribute with ``', '``.
A list of :class:`.Address` and :class:`.Group` objects in any combination
may be used to set the value of an address header. ``Group`` objects whose... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c437dbf5-7abb-4a3f-9538-302a9a861a26 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,980 | supabase-export-v2 | 0d8fbe774bbc1767 | parse(string, kwds)
``kwds`` is a dictionary containing one pre-initialized key, ``defects``. ``defects`` is an empty list. The parse method should append any detected
defects to this list. On return, the ``kwds`` dictionary *must* contain
values for at least the keys ``decoded`` and ``defects``. ``decoded``
should ... | trusted_official_docs | CPython Docs | parse(string, kwds)
``kwds`` is a dictionary containing one pre-initialized key, ``defects``. ``defects`` is an empty list. The parse method should append any detected
defects to this list. On return, the ``kwds`` dictionary *must* contain
values for at least the keys ``decoded`` and ``defects``. ``decoded``
should ... | parse(string, kwds)
``kwds`` is a dictionary containing one pre-initialized key, ``defects``. ``defects`` is an empty list. The parse method should append any detected
defects to this list. On return, the ``kwds`` dictionary *must* contain
values for at least the keys ``decoded`` and ``defects``. ``decoded``
should ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5407c5a-351f-4ba3-8da3-f680738c52e9 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,972 | supabase-export-v2 | 7c50aeacb60c252f | .. attribute:: defects
A tuple of :exc:`~email.errors.HeaderDefect` instances reporting any
RFC compliance problems found during parsing. The email package tries to
be complete about detecting compliance issues. See the :mod:`~email.errors`
module for a discussion of the types of defects that may be reported. | trusted_official_docs | CPython Docs | .. attribute:: defects
A tuple of :exc:`~email.errors.HeaderDefect` instances reporting any
RFC compliance problems found during parsing. The email package tries to
be complete about detecting compliance issues. See the :mod:`~email.errors`
module for a discussion of the types of defects that may be reported. | .. attribute:: defects
A tuple of :exc:`~email.errors.HeaderDefect` instances reporting any
RFC compliance problems found during parsing. The email package tries to
be complete about detecting compliance issues. See the :mod:`~email.errors`
module for a discussion of the types of defects that may be reported. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
caee3bda-9d2f-4c0c-932a-5cd51485e6b8 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,982 | supabase-export-v2 | bc16138986da1cf2 | provide an ``init`` method if it wishes to set additional attributes beyond those provided by ``BaseHeader`` itself. Such an ``init`` method should look like this::
def init(self, /, *args, **kw):
self._myattr = kw.pop('myattr')
super().init(*args, **kw) | trusted_official_docs | CPython Docs | provide an ``init`` method if it wishes to set additional attributes beyond those provided by ``BaseHeader`` itself. Such an ``init`` method should look like this::
def init(self, /, *args, **kw):
self._myattr = kw.pop('myattr')
super().init(*args, **kw) | provide an ``init`` method if it wishes to set additional attributes beyond those provided by ``BaseHeader`` itself. Such an ``init`` method should look like this::
def init(self, /, *args, **kw):
self._myattr = kw.pop('myattr')
super().init(*args, **kw) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb346af6-c891-4e85-b6bf-3143bfed330a | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,012 | supabase-export-v2 | d28a781896e5bf07 | .. attribute:: address
The single address encoded by the header value. If the header value
actually contains more than one address (which would be a violation of
the RFC under the default :mod:`~email.policy`), accessing this attribute
will result in a :exc:`ValueError`. | trusted_official_docs | CPython Docs | .. attribute:: address
The single address encoded by the header value. If the header value
actually contains more than one address (which would be a violation of
the RFC under the default :mod:`~email.policy`), accessing this attribute
will result in a :exc:`ValueError`. | .. attribute:: address
The single address encoded by the header value. If the header value
actually contains more than one address (which would be a violation of
the RFC under the default :mod:`~email.policy`), accessing this attribute
will result in a :exc:`ValueError`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d56e0902-f6cb-47fb-829b-18ff426b1192 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,041 | supabase-export-v2 | eb3a082b0e43ea9f | .. class:: HeaderRegistry(base_class=BaseHeader, \ default_class=UnstructuredHeader, \ use_default_map=True)
This is the factory used by :class:`~email.policy.EmailPolicy` by default. ``HeaderRegistry`` builds the class used to create a header instance
dynamically, using *base_class* and a specialized class retrieved ... | trusted_official_docs | CPython Docs | .. class:: HeaderRegistry(base_class=BaseHeader, \ default_class=UnstructuredHeader, \ use_default_map=True)
This is the factory used by :class:`~email.policy.EmailPolicy` by default. ``HeaderRegistry`` builds the class used to create a header instance
dynamically, using *base_class* and a specialized class retrieved ... | .. class:: HeaderRegistry(base_class=BaseHeader, \ default_class=UnstructuredHeader, \ use_default_map=True)
This is the factory used by :class:`~email.policy.EmailPolicy` by default. ``HeaderRegistry`` builds the class used to create a header instance
dynamically, using *base_class* and a specialized class retrieved ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d836d90c-5669-4d00-af31-94bf4258feee | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,974 | supabase-export-v2 | 8c4b150f049aede1 | .. attribute:: max_count
The maximum number of headers of this type that can have the same
``name``. A value of ``None`` means unlimited. The ``BaseHeader`` value
for this attribute is ``None``; it is expected that specialized header
classes will override this value as needed. | trusted_official_docs | CPython Docs | .. attribute:: max_count
The maximum number of headers of this type that can have the same
``name``. A value of ``None`` means unlimited. The ``BaseHeader`` value
for this attribute is ``None``; it is expected that specialized header
classes will override this value as needed. | .. attribute:: max_count
The maximum number of headers of this type that can have the same
``name``. A value of ``None`` means unlimited. The ``BaseHeader`` value
for this attribute is ``None``; it is expected that specialized header
classes will override this value as needed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
da7f90e1-b8b8-452e-a926-dc90b0c9462c | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,067 | supabase-export-v2 | 39839d891adf0a45 | The ``str`` value of the object is the address quoted according to :rfc:`5322` rules, but with no Content Transfer Encoding of any non-ASCII characters.
To support SMTP (:rfc:`5321`), ``Address`` handles one special case: if
``username`` and ``domain`` are both the empty string (or ``None``), then
the string value of... | trusted_official_docs | CPython Docs | The ``str`` value of the object is the address quoted according to :rfc:`5322` rules, but with no Content Transfer Encoding of any non-ASCII characters.
To support SMTP (:rfc:`5321`), ``Address`` handles one special case: if
``username`` and ``domain`` are both the empty string (or ``None``), then
the string value of... | The ``str`` value of the object is the address quoted according to :rfc:`5322` rules, but with no Content Transfer Encoding of any non-ASCII characters.
To support SMTP (:rfc:`5321`), ``Address`` handles one special case: if
``username`` and ``domain`` are both the empty string (or ``None``), then
the string value of... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
db9ea41f-f2ee-4440-afcb-f96921278514 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,077 | supabase-export-v2 | 3da9988ab8992fb0 | .. method:: __str__()
The ``str`` value of a ``Group`` is formatted according to :rfc:`5322`,
but with no Content Transfer Encoding of any non-ASCII characters. If
``display_name`` is none and there is a single ``Address`` in the
``addresses`` list, the ``str`` value will be the same as the ``str`` of
that single `... | trusted_official_docs | CPython Docs | .. method:: __str__()
The ``str`` value of a ``Group`` is formatted according to :rfc:`5322`,
but with no Content Transfer Encoding of any non-ASCII characters. If
``display_name`` is none and there is a single ``Address`` in the
``addresses`` list, the ``str`` value will be the same as the ``str`` of
that single `... | .. method:: __str__()
The ``str`` value of a ``Group`` is formatted according to :rfc:`5322`,
but with no Content Transfer Encoding of any non-ASCII characters. If
``display_name`` is none and there is a single ``Address`` in the
``addresses`` list, the ``str`` value will be the same as the ``str`` of
that single `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df764c30-9d75-4fe9-97f9-5a06b27a11ac | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,043 | supabase-export-v2 | cec76cf2564268ed | The default mappings are:
:subject: UniqueUnstructuredHeader
:date: UniqueDateHeader
:resent-date: DateHeader
:orig-date: UniqueDateHeader
:sender: UniqueSingleAddressHeader
:resent-sender: SingleAddressHeader
:to: UniqueAddressHeader
:resent-to: AddressHeader
:cc: UniqueAddressHeader
:resent-cc: AddressHeader... | trusted_official_docs | CPython Docs | The default mappings are:
:subject: UniqueUnstructuredHeader
:date: UniqueDateHeader
:resent-date: DateHeader
:orig-date: UniqueDateHeader
:sender: UniqueSingleAddressHeader
:resent-sender: SingleAddressHeader
:to: UniqueAddressHeader
:resent-to: AddressHeader
:cc: UniqueAddressHeader
:resent-cc: AddressHeader... | The default mappings are:
:subject: UniqueUnstructuredHeader
:date: UniqueDateHeader
:resent-date: DateHeader
:orig-date: UniqueDateHeader
:sender: UniqueSingleAddressHeader
:resent-sender: SingleAddressHeader
:to: UniqueAddressHeader
:resent-to: AddressHeader
:cc: UniqueAddressHeader
:resent-cc: AddressHeader... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e5c5a1b9-4bdc-4be5-9af2-1ae753ec4277 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,046 | supabase-export-v2 | d6e968ca9564619d | .. method:: map_to_type(self, name, cls)
*name* is the name of the header to be mapped. It will be converted to
lower case in the registry. *cls* is the specialized class to be used,
along with *base_class*, to create the class used to instantiate headers
that match *name*. | trusted_official_docs | CPython Docs | .. method:: map_to_type(self, name, cls)
*name* is the name of the header to be mapped. It will be converted to
lower case in the registry. *cls* is the specialized class to be used,
along with *base_class*, to create the class used to instantiate headers
that match *name*. | .. method:: map_to_type(self, name, cls)
*name* is the name of the header to be mapped. It will be converted to
lower case in the registry. *cls* is the specialized class to be used,
along with *base_class*, to create the class used to instantiate headers
that match *name*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6debdfb-e83d-42cb-910b-25cac203f0ad | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,006 | supabase-export-v2 | 4d26abe93fc078d9 | .. attribute:: addresses
A tuple of :class:`.Address` objects encoding all
of the individual addresses from the header value. If the header value
contains any groups, the individual addresses from the group are included
in the list at the point where the group occurs in the value (that is,
the list of addresses is ... | trusted_official_docs | CPython Docs | .. attribute:: addresses
A tuple of :class:`.Address` objects encoding all
of the individual addresses from the header value. If the header value
contains any groups, the individual addresses from the group are included
in the list at the point where the group occurs in the value (that is,
the list of addresses is ... | .. attribute:: addresses
A tuple of :class:`.Address` objects encoding all
of the individual addresses from the header value. If the header value
contains any groups, the individual addresses from the group are included
in the list at the point where the group occurs in the value (that is,
the list of addresses is ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e83695f7-1c1a-4c71-bacb-cce6f0f8950f | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 33,963 | supabase-export-v2 | 29bd323408b7a850 | .. versionadded:: 3.6 [1]_
Headers are represented by customized subclasses of :class:`str`. The
particular class used to represent a given header is determined by the
:attr:`~email.policy.EmailPolicy.header_factory` of the :mod:`~email.policy` in
effect when the headers are created. This section documents the particul... | trusted_official_docs | CPython Docs | .. versionadded:: 3.6 [1]_
Headers are represented by customized subclasses of :class:`str`. The
particular class used to represent a given header is determined by the
:attr:`~email.policy.EmailPolicy.header_factory` of the :mod:`~email.policy` in
effect when the headers are created. This section documents the particul... | .. versionadded:: 3.6 [1]_
Headers are represented by customized subclasses of :class:`str`. The
particular class used to represent a given header is determined by the
:attr:`~email.policy.EmailPolicy.header_factory` of the :mod:`~email.policy` in
effect when the headers are created. This section documents the particul... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8ece415-ffe9-4af7-9fb4-feb160072c51 | CPython Docs | file://datasets/cpython/Doc/library/email.headerregistry.rst | unknown | 5c691935-22e6-42e2-9bf8-a183751b9d22 | 34,051 | supabase-export-v2 | 36eec4aea9a10d45 | with *base_class* to produce a class, calls the constructed class's constructor, passing it the same argument list, and finally returns the class instance created thereby.
The following classes are the classes used to represent data parsed from
structured headers and can, in general, be used by an application program t... | trusted_official_docs | CPython Docs | with *base_class* to produce a class, calls the constructed class's constructor, passing it the same argument list, and finally returns the class instance created thereby.
The following classes are the classes used to represent data parsed from
structured headers and can, in general, be used by an application program t... | with *base_class* to produce a class, calls the constructed class's constructor, passing it the same argument list, and finally returns the class instance created thereby.
The following classes are the classes used to represent data parsed from
structured headers and can, in general, be used by an application program t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.