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
963434f0-f145-44c0-bceb-752265b4a68c
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,626
supabase-export-v2
db90c3d83b2b57a1
The optional *return_annotation* argument can be an arbitrary Python object. It represents the "return" annotation of the callable. :class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` or :func:`copy.replace` to make a modified copy.
trusted_official_docs
CPython Docs
The optional *return_annotation* argument can be an arbitrary Python object. It represents the "return" annotation of the callable. :class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` or :func:`copy.replace` to make a modified copy.
The optional *return_annotation* argument can be an arbitrary Python object. It represents the "return" annotation of the callable. :class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` or :func:`copy.replace` to make a modified copy.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9989f921-eb9e-43dc-8ca9-bab559e08aef
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,675
supabase-export-v2
87995226b9d71abb
.. tabularcolumns:: |l|L| +------------------------+----------------------------------------------+ | Name | Meaning | +========================+==============================================+ | *POSITIONAL_ONLY* | Value must be supplied as a positional | | | argument. Positional only parameters are | | | those wh...
trusted_official_docs
CPython Docs
.. tabularcolumns:: |l|L| +------------------------+----------------------------------------------+ | Name | Meaning | +========================+==============================================+ | *POSITIONAL_ONLY* | Value must be supplied as a positional | | | argument. Positional only parameters are | | | those wh...
.. tabularcolumns:: |l|L| +------------------------+----------------------------------------------+ | Name | Meaning | +========================+==============================================+ | *POSITIONAL_ONLY* | Value must be supplied as a positional | | | argument. Positional only parameters are | | | those wh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e731608-a330-4965-8e28-954e7f493105
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,638
supabase-export-v2
db4177c20a91bc35
.. method:: Signature.bind_partial(*args, **kwargs) Works the same way as :meth:`Signature.bind`, but allows the omission of some required arguments (mimics :func:`functools.partial` behavior.) Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed arguments do not match the signature.
trusted_official_docs
CPython Docs
.. method:: Signature.bind_partial(*args, **kwargs) Works the same way as :meth:`Signature.bind`, but allows the omission of some required arguments (mimics :func:`functools.partial` behavior.) Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed arguments do not match the signature.
.. method:: Signature.bind_partial(*args, **kwargs) Works the same way as :meth:`Signature.bind`, but allows the omission of some required arguments (mimics :func:`functools.partial` behavior.) Returns :class:`BoundArguments`, or raises a :exc:`TypeError` if the passed arguments do not match the signature.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3a9b9af-00ce-49cc-a9db-e78c1f674522
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,737
supabase-export-v2
b5c2746d0c464585
argument names. *varargs* and *keywords* are the names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals dictionary of the given frame. .. note:: This function was inadvertently marked as deprecated in Python 3.5.
trusted_official_docs
CPython Docs
argument names. *varargs* and *keywords* are the names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals dictionary of the given frame. .. note:: This function was inadvertently marked as deprecated in Python 3.5.
argument names. *varargs* and *keywords* are the names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals dictionary of the given frame. .. note:: This function was inadvertently marked as deprecated in Python 3.5.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a46a2ff2-2b23-451e-9a16-bbefcc84bde1
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,462
supabase-export-v2
c437feab57be3cc9
| suspended? | +-----------------+-------------------+---------------------------+ | | cr_code | code | +-----------------+-------------------+---------------------------+ | | cr_origin | where coroutine was | | | | created, or ``None``. See | | | | |coroutine-origin-link| | +-----------------+-------------------+-----...
trusted_official_docs
CPython Docs
| suspended? | +-----------------+-------------------+---------------------------+ | | cr_code | code | +-----------------+-------------------+---------------------------+ | | cr_origin | where coroutine was | | | | created, or ``None``. See | | | | |coroutine-origin-link| | +-----------------+-------------------+-----...
| suspended? | +-----------------+-------------------+---------------------------+ | | cr_code | code | +-----------------+-------------------+---------------------------+ | | cr_origin | where coroutine was | | | | created, or ``None``. See | | | | |coroutine-origin-link| | +-----------------+-------------------+-----...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a6af924f-9c42-4f09-aac9-4c188901b6f1
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,838
supabase-export-v2
f7a202f04c620e6c
slot_descriptor = type(_foo.foo) getset_descriptor = type(type(open(__file__)).name) wrapper_descriptor = type(str.__dict__['__add__']) descriptor_types = (slot_descriptor, getset_descriptor, wrapper_descriptor) result = getattr_static(some_object, 'foo') if type(result) in descriptor_types: try: result = result.__g...
trusted_official_docs
CPython Docs
slot_descriptor = type(_foo.foo) getset_descriptor = type(type(open(__file__)).name) wrapper_descriptor = type(str.__dict__['__add__']) descriptor_types = (slot_descriptor, getset_descriptor, wrapper_descriptor) result = getattr_static(some_object, 'foo') if type(result) in descriptor_types: try: result = result.__g...
slot_descriptor = type(_foo.foo) getset_descriptor = type(type(open(__file__)).name) wrapper_descriptor = type(str.__dict__['__add__']) descriptor_types = (slot_descriptor, getset_descriptor, wrapper_descriptor) result = getattr_static(some_object, 'foo') if type(result) in descriptor_types: try: result = result.__g...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a77c3f98-a2e3-45e3-aaa7-e4c48f76abc2
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,696
supabase-export-v2
6f55dd35d3b5efa0
:class:`Parameter` objects are also supported by the generic function :func:`copy.replace`. .. versionchanged:: 3.4 In Python 3.3 :class:`Parameter` objects were allowed to have ``name`` set to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer permitted.
trusted_official_docs
CPython Docs
:class:`Parameter` objects are also supported by the generic function :func:`copy.replace`. .. versionchanged:: 3.4 In Python 3.3 :class:`Parameter` objects were allowed to have ``name`` set to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer permitted.
:class:`Parameter` objects are also supported by the generic function :func:`copy.replace`. .. versionchanged:: 3.4 In Python 3.3 :class:`Parameter` objects were allowed to have ``name`` set to ``None`` if their ``kind`` was set to ``POSITIONAL_ONLY``. This is no longer permitted.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a849b5ba-1ccf-400a-9b55-fbae55964d9c
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,598
supabase-export-v2
3be87f9417888cbd
Clean up indentation from docstrings that are indented to line up with blocks of code. All leading whitespace is removed from the first line. Any leading whitespace that can be uniformly removed from the second line onwards is removed. Empty lines at the beginning and end are subsequently removed. Also, all tabs are ...
trusted_official_docs
CPython Docs
Clean up indentation from docstrings that are indented to line up with blocks of code. All leading whitespace is removed from the first line. Any leading whitespace that can be uniformly removed from the second line onwards is removed. Empty lines at the beginning and end are subsequently removed. Also, all tabs are ...
Clean up indentation from docstrings that are indented to line up with blocks of code. All leading whitespace is removed from the first line. Any leading whitespace that can be uniformly removed from the second line onwards is removed. Empty lines at the beginning and end are subsequently removed. Also, all tabs are ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a89c3ce2-4ca7-4a67-a99b-a146eaa3c752
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,800
supabase-export-v2
94616c6030857379
the cycle in a :keyword:`finally` clause. This is also important if the cycle detector was disabled when Python was compiled or using :func:`gc.disable`. For example:: def handle_stackframe_without_leak(): frame = inspect.currentframe() try: # do something with the frame finally: del frame
trusted_official_docs
CPython Docs
the cycle in a :keyword:`finally` clause. This is also important if the cycle detector was disabled when Python was compiled or using :func:`gc.disable`. For example:: def handle_stackframe_without_leak(): frame = inspect.currentframe() try: # do something with the frame finally: del frame
the cycle in a :keyword:`finally` clause. This is also important if the cycle detector was disabled when Python was compiled or using :func:`gc.disable`. For example:: def handle_stackframe_without_leak(): frame = inspect.currentframe() try: # do something with the frame finally: del frame
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9943c02-dea8-49b8-acf3-acf6a65681fa
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,807
supabase-export-v2
e29d142aad29ac7d
.. function:: getouterframes(frame, context=1) Get a list of :class:`FrameInfo` objects for a frame and all outer frames. These frames represent the calls that lead to the creation of *frame*. The first entry in the returned list represents *frame*; the last entry represents the outermost call on *frame*'s stack.
trusted_official_docs
CPython Docs
.. function:: getouterframes(frame, context=1) Get a list of :class:`FrameInfo` objects for a frame and all outer frames. These frames represent the calls that lead to the creation of *frame*. The first entry in the returned list represents *frame*; the last entry represents the outermost call on *frame*'s stack.
.. function:: getouterframes(frame, context=1) Get a list of :class:`FrameInfo` objects for a frame and all outer frames. These frames represent the calls that lead to the creation of *frame*. The first entry in the returned list represents *frame*; the last entry represents the outermost call on *frame*'s stack.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa15cba9-53e1-442b-a9ec-8c037d132530
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,704
supabase-export-v2
c66f9987b5d409a7
Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` relied on a default value are skipped. However, if needed, use :meth:`BoundArguments.apply_defaults` to add them. .. versionchanged:: 3.9 :attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :class:`collections.OrderedDic...
trusted_official_docs
CPython Docs
Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` relied on a default value are skipped. However, if needed, use :meth:`BoundArguments.apply_defaults` to add them. .. versionchanged:: 3.9 :attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :class:`collections.OrderedDic...
Arguments for which :meth:`Signature.bind` or :meth:`Signature.bind_partial` relied on a default value are skipped. However, if needed, use :meth:`BoundArguments.apply_defaults` to add them. .. versionchanged:: 3.9 :attr:`arguments` is now of type :class:`dict`. Formerly, it was of type :class:`collections.OrderedDic...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad3df864-2b9f-4e7b-86b7-6dc88696a9b1
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,518
supabase-export-v2
1eed115000dcc587
Decorator to mark a callable as a :term:`coroutine function` if it would not otherwise be detected by :func:`iscoroutinefunction`. This may be of use for sync functions that return a :term:`coroutine`, if the function is passed to an API that requires :func:`iscoroutinefunction`.
trusted_official_docs
CPython Docs
Decorator to mark a callable as a :term:`coroutine function` if it would not otherwise be detected by :func:`iscoroutinefunction`. This may be of use for sync functions that return a :term:`coroutine`, if the function is passed to an API that requires :func:`iscoroutinefunction`.
Decorator to mark a callable as a :term:`coroutine function` if it would not otherwise be detected by :func:`iscoroutinefunction`. This may be of use for sync functions that return a :term:`coroutine`, if the function is passed to an API that requires :func:`iscoroutinefunction`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b00c8215-f026-479a-bd04-114fcd0b271d
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,621
supabase-export-v2
8fe4dc60d205fe7d
.. impl-detail:: If the passed object has a :attr:`!__signature__` attribute, we may use it to create the signature. The exact semantics are an implementation detail and are subject to unannounced changes. Consult the source code for current semantics.
trusted_official_docs
CPython Docs
.. impl-detail:: If the passed object has a :attr:`!__signature__` attribute, we may use it to create the signature. The exact semantics are an implementation detail and are subject to unannounced changes. Consult the source code for current semantics.
.. impl-detail:: If the passed object has a :attr:`!__signature__` attribute, we may use it to create the signature. The exact semantics are an implementation detail and are subject to unannounced changes. Consult the source code for current semantics.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b1f96190-a669-4c75-b94b-1bcb16a6fafa
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,840
supabase-export-v2
489f03a5f7f19537
Current State of Generators, Coroutines, and Asynchronous Generators -------------------------------------------------------------------- When implementing coroutine schedulers and for other advanced uses of generators, it is useful to determine whether a generator is currently executing, is waiting to start or resume ...
trusted_official_docs
CPython Docs
Current State of Generators, Coroutines, and Asynchronous Generators -------------------------------------------------------------------- When implementing coroutine schedulers and for other advanced uses of generators, it is useful to determine whether a generator is currently executing, is waiting to start or resume ...
Current State of Generators, Coroutines, and Asynchronous Generators -------------------------------------------------------------------- When implementing coroutine schedulers and for other advanced uses of generators, it is useful to determine whether a generator is currently executing, is waiting to start or resume ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b456bc31-1c0d-42ee-9de0-06a5a1f73cad
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,906
supabase-export-v2
0cd9d4ce50b74a6b
.. program:: inspect By default, accepts the name of a module and prints the source of that module. A class or function within the module can be printed instead by appended a colon and the qualified name of the target object.
trusted_official_docs
CPython Docs
.. program:: inspect By default, accepts the name of a module and prints the source of that module. A class or function within the module can be printed instead by appended a colon and the qualified name of the target object.
.. program:: inspect By default, accepts the name of a module and prints the source of that module. A class or function within the module can be printed instead by appended a colon and the qualified name of the target object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9466fb0-3637-4585-99e6-7a0509501b36
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,812
supabase-export-v2
213d35b138c58c09
represent calls made as a consequence of *frame*. The first entry in the list represents *traceback*; the last entry represents where the exception was raised. .. versionchanged:: 3.5 A list of :term:`named tuples <named tuple>` ``FrameInfo(frame, filename, lineno, function, code_context, index)`` is returned.
trusted_official_docs
CPython Docs
represent calls made as a consequence of *frame*. The first entry in the list represents *traceback*; the last entry represents where the exception was raised. .. versionchanged:: 3.5 A list of :term:`named tuples <named tuple>` ``FrameInfo(frame, filename, lineno, function, code_context, index)`` is returned.
represent calls made as a consequence of *frame*. The first entry in the list represents *traceback*; the last entry represents where the exception was raised. .. versionchanged:: 3.5 A list of :term:`named tuples <named tuple>` ``FrameInfo(frame, filename, lineno, function, code_context, index)`` is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bcdde9d7-726b-4968-ba52-9d81632bf653
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,511
supabase-export-v2
740ba6d131d972c4
.. function:: iscoroutinefunction(object) Return ``True`` if the object is a :term:`coroutine function` (a function defined with an :keyword:`async def` syntax), a :func:`functools.partial` wrapping a :term:`coroutine function`, or a sync function marked with :func:`markcoroutinefunction`.
trusted_official_docs
CPython Docs
.. function:: iscoroutinefunction(object) Return ``True`` if the object is a :term:`coroutine function` (a function defined with an :keyword:`async def` syntax), a :func:`functools.partial` wrapping a :term:`coroutine function`, or a sync function marked with :func:`markcoroutinefunction`.
.. function:: iscoroutinefunction(object) Return ``True`` if the object is a :term:`coroutine function` (a function defined with an :keyword:`async def` syntax), a :func:`functools.partial` wrapping a :term:`coroutine function`, or a sync function marked with :func:`markcoroutinefunction`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd94edde-45e1-4d50-9476-7aa89ff0a693
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,460
supabase-export-v2
1ac5864b7d1f303c
| +-----------------+-------------------+---------------------------+ | | ag_suspended | is the generator | | | | suspended? | +-----------------+-------------------+---------------------------+ | | ag_code | code | +-----------------+-------------------+---------------------------+ | | ag_state | state of the async | ...
trusted_official_docs
CPython Docs
| +-----------------+-------------------+---------------------------+ | | ag_suspended | is the generator | | | | suspended? | +-----------------+-------------------+---------------------------+ | | ag_code | code | +-----------------+-------------------+---------------------------+ | | ag_state | state of the async | ...
| +-----------------+-------------------+---------------------------+ | | ag_suspended | is the generator | | | | suspended? | +-----------------+-------------------+---------------------------+ | | ag_code | code | +-----------------+-------------------+---------------------------+ | | ag_state | state of the async | ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
be9079bd-d8d1-414a-ae15-25227d700ee3
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,852
supabase-export-v2
4634f73f45150cc5
.. function:: getasyncgenstate(agen) Get current state of an asynchronous generator object. The function is intended to be used with asynchronous iterator objects created by :keyword:`async def` functions which use the :keyword:`yield` statement, but will accept any asynchronous generator-like object that has ``ag_...
trusted_official_docs
CPython Docs
.. function:: getasyncgenstate(agen) Get current state of an asynchronous generator object. The function is intended to be used with asynchronous iterator objects created by :keyword:`async def` functions which use the :keyword:`yield` statement, but will accept any asynchronous generator-like object that has ``ag_...
.. function:: getasyncgenstate(agen) Get current state of an asynchronous generator object. The function is intended to be used with asynchronous iterator objects created by :keyword:`async def` functions which use the :keyword:`yield` statement, but will accept any asynchronous generator-like object that has ``ag_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bffb4a05-6e32-4254-a7b6-686686845f8f
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,858
supabase-export-v2
1c9840e3befcf475
.. function:: getgeneratorlocals(generator) Get the mapping of live local variables in *generator* to their current values. A dictionary is returned that maps from variable names to values. This is the equivalent of calling :func:`locals` in the body of the generator, and all the same caveats apply.
trusted_official_docs
CPython Docs
.. function:: getgeneratorlocals(generator) Get the mapping of live local variables in *generator* to their current values. A dictionary is returned that maps from variable names to values. This is the equivalent of calling :func:`locals` in the body of the generator, and all the same caveats apply.
.. function:: getgeneratorlocals(generator) Get the mapping of live local variables in *generator* to their current values. A dictionary is returned that maps from variable names to values. This is the equivalent of calling :func:`locals` in the body of the generator, and all the same caveats apply.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c07ddb36-6048-49b6-ba6c-b3e9355edf0c
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,844
supabase-export-v2
53cbaae42e0fb919
Possible states are: * GEN_CREATED: Waiting to start execution. * GEN_RUNNING: Currently being executed by the interpreter. * GEN_SUSPENDED: Currently suspended at a yield expression. * GEN_CLOSED: Execution has completed.
trusted_official_docs
CPython Docs
Possible states are: * GEN_CREATED: Waiting to start execution. * GEN_RUNNING: Currently being executed by the interpreter. * GEN_SUSPENDED: Currently suspended at a yield expression. * GEN_CLOSED: Execution has completed.
Possible states are: * GEN_CREATED: Waiting to start execution. * GEN_RUNNING: Currently being executed by the interpreter. * GEN_SUSPENDED: Currently suspended at a yield expression. * GEN_CLOSED: Execution has completed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c089f33e-6ea6-4baf-88fc-fe818c490272
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,603
supabase-export-v2
5ef0548fba290e03
The :class:`Signature` object represents the call signature of a callable object and its return annotation. To retrieve a :class:`!Signature` object, use the :func:`!signature` function. .. function:: signature(callable, *, follow_wrapped=True, globals=None, locals=None, eval_str=False, annotation_format=Format.VALUE)
trusted_official_docs
CPython Docs
The :class:`Signature` object represents the call signature of a callable object and its return annotation. To retrieve a :class:`!Signature` object, use the :func:`!signature` function. .. function:: signature(callable, *, follow_wrapped=True, globals=None, locals=None, eval_str=False, annotation_format=Format.VALUE)
The :class:`Signature` object represents the call signature of a callable object and its return annotation. To retrieve a :class:`!Signature` object, use the :func:`!signature` function. .. function:: signature(callable, *, follow_wrapped=True, globals=None, locals=None, eval_str=False, annotation_format=Format.VALUE)
python, official-docs, cpython, P0
Local_Trusted_Corpus
c0df7da1-16f0-409e-a1b6-8d9698b6f7c5
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,701
supabase-export-v2
5f76055408b67a84
A mutable mapping of parameters' names to arguments' values. Contains only explicitly bound arguments. Changes in :attr:`arguments` will reflect in :attr:`args` and :attr:`kwargs`. Should be used in conjunction with :attr:`Signature.parameters` for any argument processing purposes.
trusted_official_docs
CPython Docs
A mutable mapping of parameters' names to arguments' values. Contains only explicitly bound arguments. Changes in :attr:`arguments` will reflect in :attr:`args` and :attr:`kwargs`. Should be used in conjunction with :attr:`Signature.parameters` for any argument processing purposes.
A mutable mapping of parameters' names to arguments' values. Contains only explicitly bound arguments. Changes in :attr:`arguments` will reflect in :attr:`args` and :attr:`kwargs`. Should be used in conjunction with :attr:`Signature.parameters` for any argument processing purposes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c1248d75-a603-4adb-92a5-30dd075c671b
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,453
supabase-export-v2
1b733cd5210a2fd9
Types and members ----------------- The :func:`getmembers` function retrieves the members of an object such as a class or module. The functions whose names begin with "is" are mainly provided as convenient choices for the second argument to :func:`getmembers`. They also help you determine when you can expect to find th...
trusted_official_docs
CPython Docs
Types and members ----------------- The :func:`getmembers` function retrieves the members of an object such as a class or module. The functions whose names begin with "is" are mainly provided as convenient choices for the second argument to :func:`getmembers`. They also help you determine when you can expect to find th...
Types and members ----------------- The :func:`getmembers` function retrieves the members of an object such as a class or module. The functions whose names begin with "is" are mainly provided as convenient choices for the second argument to :func:`getmembers`. They also help you determine when you can expect to find th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c2f4d175-c374-4745-8de1-a1785d726885
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,823
supabase-export-v2
6860c05276ce862a
.. function:: trace(context=1) Return a list of :class:`FrameInfo` objects for the stack between the current frame and the frame in which an exception currently being handled was raised in. The first entry in the list represents the caller; the last entry represents where the exception was raised.
trusted_official_docs
CPython Docs
.. function:: trace(context=1) Return a list of :class:`FrameInfo` objects for the stack between the current frame and the frame in which an exception currently being handled was raised in. The first entry in the list represents the caller; the last entry represents where the exception was raised.
.. function:: trace(context=1) Return a list of :class:`FrameInfo` objects for the stack between the current frame and the frame in which an exception currently being handled was raised in. The first entry in the list represents the caller; the last entry represents where the exception was raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c9b7d930-091b-4eda-8472-351cd3c78f19
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,612
supabase-export-v2
b1033aef31025822
Accepts a wide range of Python callables, from plain functions and classes to :func:`functools.partial` objects. If some of the annotations are strings (e.g., because ``from __future__ import annotations`` was used), :func:`signature` will attempt to automatically un-stringize the annotations using :func:`annotation...
trusted_official_docs
CPython Docs
Accepts a wide range of Python callables, from plain functions and classes to :func:`functools.partial` objects. If some of the annotations are strings (e.g., because ``from __future__ import annotations`` was used), :func:`signature` will attempt to automatically un-stringize the annotations using :func:`annotation...
Accepts a wide range of Python callables, from plain functions and classes to :func:`functools.partial` objects. If some of the annotations are strings (e.g., because ``from __future__ import annotations`` was used), :func:`signature` will attempt to automatically un-stringize the annotations using :func:`annotation...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca0d57ba-4ea2-415c-8780-7bcafd04bc78
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,744
supabase-export-v2
f4bcdea55708f08e
.. function:: getcallargs(func, /, *args, **kwds) Bind the *args* and *kwds* to the argument names of the Python function or method *func*, as if it was called with them. For bound methods, bind also the first argument (typically named ``self``) to the associated instance. A dict is returned, mapping the argument na...
trusted_official_docs
CPython Docs
.. function:: getcallargs(func, /, *args, **kwds) Bind the *args* and *kwds* to the argument names of the Python function or method *func*, as if it was called with them. For bound methods, bind also the first argument (typically named ``self``) to the associated instance. A dict is returned, mapping the argument na...
.. function:: getcallargs(func, /, *args, **kwds) Bind the *args* and *kwds* to the argument names of the Python function or method *func*, as if it was called with them. For bound methods, bind also the first argument (typically named ``self``) to the associated instance. A dict is returned, mapping the argument na...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce991b20-e400-49b5-8906-3c86f0427ea0
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,743
supabase-export-v2
1debb4d3ec05f44f
method resolution order depends on cls's type. Unless a very peculiar user-defined metatype is in use, cls will be the first element of the tuple. .. function:: getcallargs(func, /, *args, **kwds)
trusted_official_docs
CPython Docs
method resolution order depends on cls's type. Unless a very peculiar user-defined metatype is in use, cls will be the first element of the tuple. .. function:: getcallargs(func, /, *args, **kwds)
method resolution order depends on cls's type. Unless a very peculiar user-defined metatype is in use, cls will be the first element of the tuple. .. function:: getcallargs(func, /, *args, **kwds)
python, official-docs, cpython, P0
Local_Trusted_Corpus
ceb617ef-6385-4190-bad8-4c6764061c2a
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,616
supabase-export-v2
428d14f14af10155
versionchanged:: 3.5 The *follow_wrapped* parameter was added. Pass ``False`` to get a signature of *callable* specifically (``callable.__wrapped__`` will not be used to unwrap decorated callables.) .. versionchanged:: 3.10 The *globals*, *locals*, and *eval_str* parameters were added.
trusted_official_docs
CPython Docs
versionchanged:: 3.5 The *follow_wrapped* parameter was added. Pass ``False`` to get a signature of *callable* specifically (``callable.__wrapped__`` will not be used to unwrap decorated callables.) .. versionchanged:: 3.10 The *globals*, *locals*, and *eval_str* parameters were added.
versionchanged:: 3.5 The *follow_wrapped* parameter was added. Pass ``False`` to get a signature of *callable* specifically (``callable.__wrapped__`` will not be used to unwrap decorated callables.) .. versionchanged:: 3.10 The *globals*, *locals*, and *eval_str* parameters were added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfe67352-9350-4fe2-a406-8c184a2b31ec
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,492
supabase-export-v2
7134d8cf8bb61253
Note that this function *only* returns a meaningful name for actual Python modules - paths that potentially refer to Python packages will still return ``None``. .. versionchanged:: 3.3 The function is based directly on :mod:`importlib`.
trusted_official_docs
CPython Docs
Note that this function *only* returns a meaningful name for actual Python modules - paths that potentially refer to Python packages will still return ``None``. .. versionchanged:: 3.3 The function is based directly on :mod:`importlib`.
Note that this function *only* returns a meaningful name for actual Python modules - paths that potentially refer to Python packages will still return ``None``. .. versionchanged:: 3.3 The function is based directly on :mod:`importlib`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d12e3960-bd0d-4f57-8443-cc1dbc676a08
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,660
supabase-export-v2
339f5898f863f628
:class:`!Parameter` objects are *immutable*. Instead of modifying a :class:`!Parameter` object, you can use :meth:`Parameter.replace` or :func:`copy.replace` to create a modified copy. .. versionchanged:: 3.5 Parameter objects are now picklable and :term:`hashable`.
trusted_official_docs
CPython Docs
:class:`!Parameter` objects are *immutable*. Instead of modifying a :class:`!Parameter` object, you can use :meth:`Parameter.replace` or :func:`copy.replace` to create a modified copy. .. versionchanged:: 3.5 Parameter objects are now picklable and :term:`hashable`.
:class:`!Parameter` objects are *immutable*. Instead of modifying a :class:`!Parameter` object, you can use :meth:`Parameter.replace` or :func:`copy.replace` to create a modified copy. .. versionchanged:: 3.5 Parameter objects are now picklable and :term:`hashable`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7f0e403-93e7-4923-9df9-0a5127da0c58
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,491
supabase-export-v2
20309dcb765b512b
checked against all of the entries in :func:`importlib.machinery.all_suffixes`. If it matches, the final path component is returned with the extension removed. Otherwise, ``None`` is returned. Note that this function *only* returns a meaningful name for actual Python modules - paths that potentially refer to Python pa...
trusted_official_docs
CPython Docs
checked against all of the entries in :func:`importlib.machinery.all_suffixes`. If it matches, the final path component is returned with the extension removed. Otherwise, ``None`` is returned. Note that this function *only* returns a meaningful name for actual Python modules - paths that potentially refer to Python pa...
checked against all of the entries in :func:`importlib.machinery.all_suffixes`. If it matches, the final path component is returned with the extension removed. Otherwise, ``None`` is returned. Note that this function *only* returns a meaningful name for actual Python modules - paths that potentially refer to Python pa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7f11f00-b594-43d8-a40f-4e022e8ab40e
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,732
supabase-export-v2
b4f5364d9f7a0a1d
in extension module APIs. This function is retained primarily for use in code that needs to maintain compatibility with the Python 2 ``inspect`` module API. .. versionchanged:: 3.4 This function is now based on :func:`signature`, but still ignores ``__wrapped__`` attributes and includes the already bound first param...
trusted_official_docs
CPython Docs
in extension module APIs. This function is retained primarily for use in code that needs to maintain compatibility with the Python 2 ``inspect`` module API. .. versionchanged:: 3.4 This function is now based on :func:`signature`, but still ignores ``__wrapped__`` attributes and includes the already bound first param...
in extension module APIs. This function is retained primarily for use in code that needs to maintain compatibility with the Python 2 ``inspect`` module API. .. versionchanged:: 3.4 This function is now based on :func:`signature`, but still ignores ``__wrapped__`` attributes and includes the already bound first param...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d81e8ed9-75b2-4be0-aae3-15cfa66a9df3
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,839
supabase-export-v2
1dec9df4e53804c9
descriptors can raise AttributeError to # indicate there is no underlying value # in which case the descriptor itself will # have to do pass Current State of Generators, Coroutines, and Asynchronous Generators --------------------------------------------------------------------
trusted_official_docs
CPython Docs
descriptors can raise AttributeError to # indicate there is no underlying value # in which case the descriptor itself will # have to do pass Current State of Generators, Coroutines, and Asynchronous Generators --------------------------------------------------------------------
descriptors can raise AttributeError to # indicate there is no underlying value # in which case the descriptor itself will # have to do pass Current State of Generators, Coroutines, and Asynchronous Generators --------------------------------------------------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
d93f1dea-4ab3-4c1f-b472-6bd8f46c3bf8
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,901
supabase-export-v2
e7f8520121825f0e
The meaning of the flags is explained at :ref:`buffer-request-types`. .. attribute:: BufferFlags.SIMPLE .. attribute:: BufferFlags.WRITABLE .. attribute:: BufferFlags.FORMAT .. attribute:: BufferFlags.ND .. attribute:: BufferFlags.STRIDES .. attribute:: BufferFlags.C_CONTIGUOUS .. attribute:: BufferFlags.F_CONTIG...
trusted_official_docs
CPython Docs
The meaning of the flags is explained at :ref:`buffer-request-types`. .. attribute:: BufferFlags.SIMPLE .. attribute:: BufferFlags.WRITABLE .. attribute:: BufferFlags.FORMAT .. attribute:: BufferFlags.ND .. attribute:: BufferFlags.STRIDES .. attribute:: BufferFlags.C_CONTIGUOUS .. attribute:: BufferFlags.F_CONTIG...
The meaning of the flags is explained at :ref:`buffer-request-types`. .. attribute:: BufferFlags.SIMPLE .. attribute:: BufferFlags.WRITABLE .. attribute:: BufferFlags.FORMAT .. attribute:: BufferFlags.ND .. attribute:: BufferFlags.STRIDES .. attribute:: BufferFlags.C_CONTIGUOUS .. attribute:: BufferFlags.F_CONTIG...
python, official-docs, cpython, P0
Local_Trusted_Corpus
da0b7790-b739-4c77-8c3d-8341d3651c70
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,811
supabase-export-v2
c94850aa01578ae0
.. function:: getinnerframes(traceback, context=1) Get a list of :class:`FrameInfo` objects for a traceback's frame and all inner frames. These frames represent calls made as a consequence of *frame*. The first entry in the list represents *traceback*; the last entry represents where the exception was raised.
trusted_official_docs
CPython Docs
.. function:: getinnerframes(traceback, context=1) Get a list of :class:`FrameInfo` objects for a traceback's frame and all inner frames. These frames represent calls made as a consequence of *frame*. The first entry in the list represents *traceback*; the last entry represents where the exception was raised.
.. function:: getinnerframes(traceback, context=1) Get a list of :class:`FrameInfo` objects for a traceback's frame and all inner frames. These frames represent calls made as a consequence of *frame*. The first entry in the list represents *traceback*; the last entry represents where the exception was raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
da821f4c-f4f9-42f5-8975-91ee8d87569f
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,900
supabase-export-v2
0e7b2a770aafa8e0
This is an :class:`enum.IntFlag` that represents the flags that can be passed to the :meth:`~object.__buffer__` method of objects implementing the :ref:`buffer protocol <bufferobjects>`. The meaning of the flags is explained at :ref:`buffer-request-types`.
trusted_official_docs
CPython Docs
This is an :class:`enum.IntFlag` that represents the flags that can be passed to the :meth:`~object.__buffer__` method of objects implementing the :ref:`buffer protocol <bufferobjects>`. The meaning of the flags is explained at :ref:`buffer-request-types`.
This is an :class:`enum.IntFlag` that represents the flags that can be passed to the :meth:`~object.__buffer__` method of objects implementing the :ref:`buffer protocol <bufferobjects>`. The meaning of the flags is explained at :ref:`buffer-request-types`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dd666d10-2d6a-4a50-9710-6f87b399785e
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,561
supabase-export-v2
ab40bae36e577ab8
:func:`ismethoddescriptor` test, simply because the other tests promise more -- you can, e.g., count on having the :attr:`~method.__func__` attribute (etc) when an object passes :func:`ismethod`. .. versionchanged:: 3.13 This function no longer incorrectly reports objects with :meth:`~object.__get__` and :meth:`~obje...
trusted_official_docs
CPython Docs
:func:`ismethoddescriptor` test, simply because the other tests promise more -- you can, e.g., count on having the :attr:`~method.__func__` attribute (etc) when an object passes :func:`ismethod`. .. versionchanged:: 3.13 This function no longer incorrectly reports objects with :meth:`~object.__get__` and :meth:`~obje...
:func:`ismethoddescriptor` test, simply because the other tests promise more -- you can, e.g., count on having the :attr:`~method.__func__` attribute (etc) when an object passes :func:`ismethod`. .. versionchanged:: 3.13 This function no longer incorrectly reports objects with :meth:`~object.__get__` and :meth:`~obje...
python, official-docs, cpython, P0
Local_Trusted_Corpus
de524270-701c-465b-96fb-3d573ed3f39f
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,829
supabase-export-v2
ce756d3f849fcdb5
want passive introspection, like documentation tools, this can be inconvenient. :func:`getattr_static` has the same signature as :func:`getattr` but avoids executing code when it fetches attributes. .. function:: getattr_static(obj, attr, default=None)
trusted_official_docs
CPython Docs
want passive introspection, like documentation tools, this can be inconvenient. :func:`getattr_static` has the same signature as :func:`getattr` but avoids executing code when it fetches attributes. .. function:: getattr_static(obj, attr, default=None)
want passive introspection, like documentation tools, this can be inconvenient. :func:`getattr_static` has the same signature as :func:`getattr` but avoids executing code when it fetches attributes. .. function:: getattr_static(obj, attr, default=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
de728336-e6cc-4f89-9282-92d328a8100a
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,796
supabase-export-v2
d8830c73efa95af8
line number, end line number, start column offset, and end column offset associated with the instruction being executed by the frame this traceback corresponds to. .. versionchanged:: 3.11 :class:`!Traceback` is now a class instance (that is backwards compatible with the previous :term:`named tuple`).
trusted_official_docs
CPython Docs
line number, end line number, start column offset, and end column offset associated with the instruction being executed by the frame this traceback corresponds to. .. versionchanged:: 3.11 :class:`!Traceback` is now a class instance (that is backwards compatible with the previous :term:`named tuple`).
line number, end line number, start column offset, and end column offset associated with the instruction being executed by the frame this traceback corresponds to. .. versionchanged:: 3.11 :class:`!Traceback` is now a class instance (that is backwards compatible with the previous :term:`named tuple`).
python, official-docs, cpython, P0
Local_Trusted_Corpus
ded4300f-913b-41fd-8f9f-1a3a654aa204
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,755
supabase-export-v2
82b5b8b2008ba503
Get the object wrapped by *func*. It follows the chain of :attr:`__wrapped__` attributes returning the last object in the chain. *stop* is an optional callback accepting an object in the wrapper chain as its sole argument that allows the unwrapping to be terminated early if the callback returns a true value. If the c...
trusted_official_docs
CPython Docs
Get the object wrapped by *func*. It follows the chain of :attr:`__wrapped__` attributes returning the last object in the chain. *stop* is an optional callback accepting an object in the wrapper chain as its sole argument that allows the unwrapping to be terminated early if the callback returns a true value. If the c...
Get the object wrapped by *func*. It follows the chain of :attr:`__wrapped__` attributes returning the last object in the chain. *stop* is an optional callback accepting an object in the wrapper chain as its sole argument that allows the unwrapping to be terminated early if the callback returns a true value. If the c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
df24d15b-8f10-4cdf-bdac-4e57c44e9b36
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,449
supabase-export-v2
7fb8d62f4fe00e75
-------------- The :mod:`!inspect` module provides several useful functions to help get information about live objects such as modules, classes, methods, functions, tracebacks, frame objects, and code objects. For example, it can help you examine the contents of a class, retrieve the source code of a method, extract an...
trusted_official_docs
CPython Docs
-------------- The :mod:`!inspect` module provides several useful functions to help get information about live objects such as modules, classes, methods, functions, tracebacks, frame objects, and code objects. For example, it can help you examine the contents of a class, retrieve the source code of a method, extract an...
-------------- The :mod:`!inspect` module provides several useful functions to help get information about live objects such as modules, classes, methods, functions, tracebacks, frame objects, and code objects. For example, it can help you examine the contents of a class, retrieve the source code of a method, extract an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e47b4940-48f6-4b64-95ba-90acd01de5ce
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,856
supabase-export-v2
2f0eef1061daefea
.. versionadded:: 3.12 The current internal state of the generator can also be queried. This is mostly useful for testing purposes, to ensure that internal state is being updated as expected:
trusted_official_docs
CPython Docs
.. versionadded:: 3.12 The current internal state of the generator can also be queried. This is mostly useful for testing purposes, to ensure that internal state is being updated as expected:
.. versionadded:: 3.12 The current internal state of the generator can also be queried. This is mostly useful for testing purposes, to ensure that internal state is being updated as expected:
python, official-docs, cpython, P0
Local_Trusted_Corpus
e53caca8-e664-44d4-adfc-85c17eb901ad
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,808
supabase-export-v2
e91ca1c740de4a50
lead to the creation of *frame*. The first entry in the returned list represents *frame*; the last entry represents the outermost call on *frame*'s stack. .. versionchanged:: 3.5 A list of :term:`named tuples <named tuple>` ``FrameInfo(frame, filename, lineno, function, code_context, index)`` is returned.
trusted_official_docs
CPython Docs
lead to the creation of *frame*. The first entry in the returned list represents *frame*; the last entry represents the outermost call on *frame*'s stack. .. versionchanged:: 3.5 A list of :term:`named tuples <named tuple>` ``FrameInfo(frame, filename, lineno, function, code_context, index)`` is returned.
lead to the creation of *frame*. The first entry in the returned list represents *frame*; the last entry represents the outermost call on *frame*'s stack. .. versionchanged:: 3.5 A list of :term:`named tuples <named tuple>` ``FrameInfo(frame, filename, lineno, function, code_context, index)`` is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e6fc4185-6126-4e77-9500-6f20e6bdb4b3
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,730
supabase-export-v2
f83603fd2afe19dd
``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations)`` *args* is a list of the positional parameter names. *varargs* is the name of the ``*`` parameter or ``None`` if arbitrary positional arguments are not accepted. *varkw* is the name of the ``**`` parameter or ``None`` if arbitrary ...
trusted_official_docs
CPython Docs
``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations)`` *args* is a list of the positional parameter names. *varargs* is the name of the ``*`` parameter or ``None`` if arbitrary positional arguments are not accepted. *varkw* is the name of the ``**`` parameter or ``None`` if arbitrary ...
``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations)`` *args* is a list of the positional parameter names. *varargs* is the name of the ``*`` parameter or ``None`` if arbitrary positional arguments are not accepted. *varkw* is the name of the ``**`` parameter or ``None`` if arbitrary ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e8b6bef8-f98d-4520-8ad2-d1348bd1896e
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,577
supabase-export-v2
36b38cf82003d83e
Get the documentation string for an object, cleaned up with :func:`cleandoc`. If the documentation string for an object is not provided: * if the object is a class and *inherit_class_doc* is true (by default), retrieve the documentation string from the inheritance hierarchy; * if the object is a method, a property or...
trusted_official_docs
CPython Docs
Get the documentation string for an object, cleaned up with :func:`cleandoc`. If the documentation string for an object is not provided: * if the object is a class and *inherit_class_doc* is true (by default), retrieve the documentation string from the inheritance hierarchy; * if the object is a method, a property or...
Get the documentation string for an object, cleaned up with :func:`cleandoc`. If the documentation string for an object is not provided: * if the object is a class and *inherit_class_doc* is true (by default), retrieve the documentation string from the inheritance hierarchy; * if the object is a method, a property or...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea23ba01-1729-44cb-b189-372344d51888
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,454
supabase-export-v2
7fcec205b818fd82
the second argument to :func:`getmembers`. They also help you determine when you can expect to find the following special attributes (see :ref:`import-mod-attrs` for module attributes): .. this function name is too big to fit in the ascii-art table below .. |coroutine-origin-link| replace:: :func:`sys.set_coroutine_ori...
trusted_official_docs
CPython Docs
the second argument to :func:`getmembers`. They also help you determine when you can expect to find the following special attributes (see :ref:`import-mod-attrs` for module attributes): .. this function name is too big to fit in the ascii-art table below .. |coroutine-origin-link| replace:: :func:`sys.set_coroutine_ori...
the second argument to :func:`getmembers`. They also help you determine when you can expect to find the following special attributes (see :ref:`import-mod-attrs` for module attributes): .. this function name is too big to fit in the ascii-art table below .. |coroutine-origin-link| replace:: :func:`sys.set_coroutine_ori...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f115a9bc-ec67-4a4d-83e0-5e9755b805c2
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,673
supabase-export-v2
d58ead7d3ed8294c
.. attribute:: Parameter.kind Describes how argument values are bound to the parameter. The possible values are accessible via :class:`Parameter` (like ``Parameter.KEYWORD_ONLY``), and support comparison and ordering, in the following order:
trusted_official_docs
CPython Docs
.. attribute:: Parameter.kind Describes how argument values are bound to the parameter. The possible values are accessible via :class:`Parameter` (like ``Parameter.KEYWORD_ONLY``), and support comparison and ordering, in the following order:
.. attribute:: Parameter.kind Describes how argument values are bound to the parameter. The possible values are accessible via :class:`Parameter` (like ``Parameter.KEYWORD_ONLY``), and support comparison and ordering, in the following order:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1a379e2-18de-43c2-96f0-56f2b747017a
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,507
supabase-export-v2
b21a2a90e4868e6c
.. versionchanged:: 3.8 Functions wrapped in :func:`functools.partial` now return ``True`` if the wrapped function is a Python generator function. .. versionchanged:: 3.13 Functions wrapped in :func:`functools.partialmethod` now return ``True`` if the wrapped function is a Python generator function.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 Functions wrapped in :func:`functools.partial` now return ``True`` if the wrapped function is a Python generator function. .. versionchanged:: 3.13 Functions wrapped in :func:`functools.partialmethod` now return ``True`` if the wrapped function is a Python generator function.
.. versionchanged:: 3.8 Functions wrapped in :func:`functools.partial` now return ``True`` if the wrapped function is a Python generator function. .. versionchanged:: 3.13 Functions wrapped in :func:`functools.partialmethod` now return ``True`` if the wrapped function is a Python generator function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f28f3254-ccbd-42a2-bbe1-bf0be250f532
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,756
supabase-export-v2
fdabcf5f575d14ba
the chain is returned as usual. For example, :func:`signature` uses this to stop unwrapping if any object in the chain has a ``__signature__`` attribute defined. :exc:`ValueError` is raised if a cycle is encountered.
trusted_official_docs
CPython Docs
the chain is returned as usual. For example, :func:`signature` uses this to stop unwrapping if any object in the chain has a ``__signature__`` attribute defined. :exc:`ValueError` is raised if a cycle is encountered.
the chain is returned as usual. For example, :func:`signature` uses this to stop unwrapping if any object in the chain has a ``__signature__`` attribute defined. :exc:`ValueError` is raised if a cycle is encountered.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7a94d57-a778-4326-a6e5-099a54ce297f
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,461
supabase-export-v2
7e626e408561d394
awaited on, | | | | or ``None`` | +-----------------+-------------------+---------------------------+ | | cr_frame | frame | +-----------------+-------------------+---------------------------+ | | cr_running | is the coroutine running? | +-----------------+-------------------+---------------------------+ | | cr_suspend...
trusted_official_docs
CPython Docs
awaited on, | | | | or ``None`` | +-----------------+-------------------+---------------------------+ | | cr_frame | frame | +-----------------+-------------------+---------------------------+ | | cr_running | is the coroutine running? | +-----------------+-------------------+---------------------------+ | | cr_suspend...
awaited on, | | | | or ``None`` | +-----------------+-------------------+---------------------------+ | | cr_frame | frame | +-----------------+-------------------+---------------------------+ | | cr_running | is the coroutine running? | +-----------------+-------------------+---------------------------+ | | cr_suspend...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fa7e6241-05b8-442a-ac72-1b562cf19373
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,799
supabase-export-v2
e7df9de2cf172d7f
must be created, it is important to ensure they are explicitly broken to avoid the delayed destruction of objects and increased memory consumption which occurs. Though the cycle detector will catch these, destruction of the frames (and local variables) can be made deterministic by removing the cycle in a :keyword:`fi...
trusted_official_docs
CPython Docs
must be created, it is important to ensure they are explicitly broken to avoid the delayed destruction of objects and increased memory consumption which occurs. Though the cycle detector will catch these, destruction of the frames (and local variables) can be made deterministic by removing the cycle in a :keyword:`fi...
must be created, it is important to ensure they are explicitly broken to avoid the delayed destruction of objects and increased memory consumption which occurs. Though the cycle detector will catch these, destruction of the frames (and local variables) can be made deterministic by removing the cycle in a :keyword:`fi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fecb8c45-7773-4157-821e-55ff53b4b34b
CPython Docs
file://datasets/cpython/Doc/library/inspect.rst
unknown
f4eb524f-8f5a-453b-8443-c73e66396e18
7,564
supabase-export-v2
6b881f09172000e4
Return ``True`` if the object is a data descriptor. Data descriptors have a :attr:`~object.__set__` or a :attr:`~object.__delete__` method. Examples are properties (defined in Python), getsets, and members. The latter two are defined in C and there are more specific tests available for those types, which is robust ac...
trusted_official_docs
CPython Docs
Return ``True`` if the object is a data descriptor. Data descriptors have a :attr:`~object.__set__` or a :attr:`~object.__delete__` method. Examples are properties (defined in Python), getsets, and members. The latter two are defined in C and there are more specific tests available for those types, which is robust ac...
Return ``True`` if the object is a data descriptor. Data descriptors have a :attr:`~object.__set__` or a :attr:`~object.__delete__` method. Examples are properties (defined in Python), getsets, and members. The latter two are defined in C and there are more specific tests available for those types, which is robust ac...
python, official-docs, cpython, P0
Local_Trusted_Corpus
008d6d21-c0be-4564-b4ea-63ab1d9b4647
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,325
supabase-export-v2
dde84634a8106a72
# 2. Run in a custom thread pool: with concurrent.futures.ThreadPoolExecutor() as pool: result = await loop.run_in_executor( pool, blocking_io) print('custom thread pool', result) # 3. Run in a custom process pool: with concurrent.futures.ProcessPoolExecutor() as pool: result = await loop.run_in_executor( pool, cpu_...
trusted_official_docs
CPython Docs
# 2. Run in a custom thread pool: with concurrent.futures.ThreadPoolExecutor() as pool: result = await loop.run_in_executor( pool, blocking_io) print('custom thread pool', result) # 3. Run in a custom process pool: with concurrent.futures.ProcessPoolExecutor() as pool: result = await loop.run_in_executor( pool, cpu_...
# 2. Run in a custom thread pool: with concurrent.futures.ThreadPoolExecutor() as pool: result = await loop.run_in_executor( pool, blocking_io) print('custom thread pool', result) # 3. Run in a custom process pool: with concurrent.futures.ProcessPoolExecutor() as pool: result = await loop.run_in_executor( pool, cpu_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
04de794b-b944-4026-8cf7-0584a0ed0fc0
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,111
supabase-export-v2
64a9973c200ddd88
When multiple processes with differing UIDs assign sockets to an identical UDP socket address with ``SO_REUSEADDR``, incoming packets can become randomly distributed among the sockets. For supported platforms, *reuse_port* can be used as a replacement for similar functionality. With *reuse_port*, :ref:`socket.SO_REUS...
trusted_official_docs
CPython Docs
When multiple processes with differing UIDs assign sockets to an identical UDP socket address with ``SO_REUSEADDR``, incoming packets can become randomly distributed among the sockets. For supported platforms, *reuse_port* can be used as a replacement for similar functionality. With *reuse_port*, :ref:`socket.SO_REUS...
When multiple processes with differing UIDs assign sockets to an identical UDP socket address with ``SO_REUSEADDR``, incoming packets can become randomly distributed among the sockets. For supported platforms, *reuse_port* can be used as a replacement for similar functionality. With *reuse_port*, :ref:`socket.SO_REUS...
python, official-docs, cpython, P0
Local_Trusted_Corpus
070e5c31-8973-4d5b-862c-4710227204fb
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,113
supabase-export-v2
1776977f46335871
.. versionchanged:: 3.11 The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and 3.6.10, has been entirely removed. .. method:: loop.create_unix_connection(protocol_factory, \ path=None, *, ssl=None, sock=None, \ server_hostname=None, ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None) :async:
trusted_official_docs
CPython Docs
.. versionchanged:: 3.11 The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and 3.6.10, has been entirely removed. .. method:: loop.create_unix_connection(protocol_factory, \ path=None, *, ssl=None, sock=None, \ server_hostname=None, ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None) :async:
.. versionchanged:: 3.11 The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and 3.6.10, has been entirely removed. .. method:: loop.create_unix_connection(protocol_factory, \ path=None, *, ssl=None, sock=None, \ server_hostname=None, ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None) :async:
python, official-docs, cpython, P0
Local_Trusted_Corpus
072ce5f2-e4a1-4ab3-b123-67634bfa137f
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,273
supabase-export-v2
efa6c09a79b15d1d
*file* must be a regular file object open in binary mode. *offset* tells from where to start reading the file. If specified, *count* is the total number of bytes to transmit as opposed to sending the file until EOF is reached. File position is always updated, even when this method raises an error, and :meth:`file.t...
trusted_official_docs
CPython Docs
*file* must be a regular file object open in binary mode. *offset* tells from where to start reading the file. If specified, *count* is the total number of bytes to transmit as opposed to sending the file until EOF is reached. File position is always updated, even when this method raises an error, and :meth:`file.t...
*file* must be a regular file object open in binary mode. *offset* tells from where to start reading the file. If specified, *count* is the total number of bytes to transmit as opposed to sending the file until EOF is reached. File position is always updated, even when this method raises an error, and :meth:`file.t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0855c315-2407-4217-b61b-88b99b6a6de2
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,366
supabase-export-v2
b9891ef62a0a6877
attribute can be used to set the minimum execution duration in seconds that is considered "slow". When debug mode is enabled, "slow" callbacks are logged. Default value is 100 milliseconds.
trusted_official_docs
CPython Docs
attribute can be used to set the minimum execution duration in seconds that is considered "slow". When debug mode is enabled, "slow" callbacks are logged. Default value is 100 milliseconds.
attribute can be used to set the minimum execution duration in seconds that is considered "slow". When debug mode is enabled, "slow" callbacks are logged. Default value is 100 milliseconds.
python, official-docs, cpython, P0
Local_Trusted_Corpus
09440adf-3c1c-4b4d-93ef-c494b0d2900d
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,246
supabase-export-v2
aa04001e31790b15
Send *data* to the *sock* socket. Asynchronous version of :meth:`socket.sendall() <socket.socket.sendall>`. This method continues to send to the socket until either all data in *data* has been sent or an error occurs. ``None`` is returned on success. On error, an exception is raised. Additionally, there is no way to...
trusted_official_docs
CPython Docs
Send *data* to the *sock* socket. Asynchronous version of :meth:`socket.sendall() <socket.socket.sendall>`. This method continues to send to the socket until either all data in *data* has been sent or an error occurs. ``None`` is returned on success. On error, an exception is raised. Additionally, there is no way to...
Send *data* to the *sock* socket. Asynchronous version of :meth:`socket.sendall() <socket.socket.sendall>`. This method continues to send to the socket until either all data in *data* has been sent or an error occurs. ``None`` is returned on success. On error, an exception is raised. Additionally, there is no way to...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ad32195-4f8c-4779-a91f-6cf2e932d740
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,071
supabase-export-v2
5b4832a84a929358
is a ``(local_host, local_port)`` tuple used to bind the socket locally. The *local_host* and *local_port* are looked up using ``getaddrinfo()``, similarly to *host* and *port*. * *ssl_handshake_timeout* is (for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connect...
trusted_official_docs
CPython Docs
is a ``(local_host, local_port)`` tuple used to bind the socket locally. The *local_host* and *local_port* are looked up using ``getaddrinfo()``, similarly to *host* and *port*. * *ssl_handshake_timeout* is (for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connect...
is a ``(local_host, local_port)`` tuple used to bind the socket locally. The *local_host* and *local_port* are looked up using ``getaddrinfo()``, similarly to *host* and *port*. * *ssl_handshake_timeout* is (for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connect...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c20333e-82e5-4f26-8327-4095f1a44f53
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,221
supabase-export-v2
51aceddfd3735384
Stop monitoring the *fd* file descriptor for write availability. Returns ``True`` if *fd* was previously being monitored for writes. See also :ref:`Platform Support <asyncio-platform-support>` section for some limitations of these methods.
trusted_official_docs
CPython Docs
Stop monitoring the *fd* file descriptor for write availability. Returns ``True`` if *fd* was previously being monitored for writes. See also :ref:`Platform Support <asyncio-platform-support>` section for some limitations of these methods.
Stop monitoring the *fd* file descriptor for write availability. Returns ``True`` if *fd* was previously being monitored for writes. See also :ref:`Platform Support <asyncio-platform-support>` section for some limitations of these methods.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0cfc3a17-4dbb-4ab1-b12a-c6183d14e85b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,391
supabase-export-v2
d52a79167c2c6c87
Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`asyncio.SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*. If the transport is closed or is garbage collected, the child process is killed if it is still running.
trusted_official_docs
CPython Docs
Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`asyncio.SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*. If the transport is closed or is garbage collected, the child process is killed if it is still running.
Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`asyncio.SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*. If the transport is closed or is garbage collected, the child process is killed if it is still running.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0de1c3b3-7c3e-4226-9b16-6f0068906824
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,329
supabase-export-v2
bef6a53f1dac2c2c
== '__main__'``) is required for option 3 due to the peculiarities of :mod:`multiprocessing`, which is used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe importing of main module <multiprocessing-safe-main-import>`. This method returns a :class:`asyncio.Future` object.
trusted_official_docs
CPython Docs
== '__main__'``) is required for option 3 due to the peculiarities of :mod:`multiprocessing`, which is used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe importing of main module <multiprocessing-safe-main-import>`. This method returns a :class:`asyncio.Future` object.
== '__main__'``) is required for option 3 due to the peculiarities of :mod:`multiprocessing`, which is used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe importing of main module <multiprocessing-safe-main-import>`. This method returns a :class:`asyncio.Future` object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0f4c9d30-c673-47dd-bcd4-3880aefa5b5c
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,990
supabase-export-v2
43a6261577bdc52a
to be called from a reentrant context or signal handler, however, it is not safe or fruitful to use the returned handle in such contexts. Raises :exc:`RuntimeError` if called on a loop that's been closed. This can happen on a secondary thread when the main application is shutting down.
trusted_official_docs
CPython Docs
to be called from a reentrant context or signal handler, however, it is not safe or fruitful to use the returned handle in such contexts. Raises :exc:`RuntimeError` if called on a loop that's been closed. This can happen on a secondary thread when the main application is shutting down.
to be called from a reentrant context or signal handler, however, it is not safe or fruitful to use the returned handle in such contexts. Raises :exc:`RuntimeError` if called on a loop that's been closed. This can happen on a secondary thread when the main application is shutting down.
python, official-docs, cpython, P0
Local_Trusted_Corpus
12b27610-5624-4b7f-80ed-0cd68320e231
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,133
supabase-export-v2
2e9f7240d6c5b016
or ``None``, all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6). * The *port* parameter can be set to specify which port the server should listen on. If ``0`` or ``None`` (the default), a random unused port will be selected (note that if *hos...
trusted_official_docs
CPython Docs
or ``None``, all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6). * The *port* parameter can be set to specify which port the server should listen on. If ``0`` or ``None`` (the default), a random unused port will be selected (note that if *hos...
or ``None``, all interfaces are assumed and a list of multiple sockets will be returned (most likely one for IPv4 and another one for IPv6). * The *port* parameter can be set to specify which port the server should listen on. If ``0`` or ``None`` (the default), a random unused port will be selected (note that if *hos...
python, official-docs, cpython, P0
Local_Trusted_Corpus
12d8c950-9fa2-4802-9938-b987d375320c
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,390
supabase-export-v2
4d4cf1a122a5d1f8
See the constructor of the :class:`subprocess.Popen` class for documentation on other arguments. Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`asyncio.SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*.
trusted_official_docs
CPython Docs
See the constructor of the :class:`subprocess.Popen` class for documentation on other arguments. Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`asyncio.SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*.
See the constructor of the :class:`subprocess.Popen` class for documentation on other arguments. Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`asyncio.SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
15fc08e3-f9e7-471e-a963-a1d2bbf0f119
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,388
supabase-export-v2
f06ee3e545ae2ca7
``asyncio`` subprocess API does not support decoding the streams as text. :func:`bytes.decode` can be used to convert the bytes returned from the stream to text. If a file-like object passed as *stdin*, *stdout* or *stderr* represents a pipe, then the other side of this pipe should be registered with :meth:`~loop.con...
trusted_official_docs
CPython Docs
``asyncio`` subprocess API does not support decoding the streams as text. :func:`bytes.decode` can be used to convert the bytes returned from the stream to text. If a file-like object passed as *stdin*, *stdout* or *stderr* represents a pipe, then the other side of this pipe should be registered with :meth:`~loop.con...
``asyncio`` subprocess API does not support decoding the streams as text. :func:`bytes.decode` can be used to convert the bytes returned from the stream to text. If a file-like object passed as *stdin*, *stdout* or *stderr* represents a pipe, then the other side of this pipe should be registered with :meth:`~loop.con...
python, official-docs, cpython, P0
Local_Trusted_Corpus
161629f3-19d1-4786-b6b0-317d949177ad
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,193
supabase-export-v2
02cfe4e984a36e32
asyncio to manually read and send the file when the platform does not support the sendfile system call (e.g. Windows or SSL socket on Unix). Raise :exc:`SendfileNotAvailableError` if the system does not support the *sendfile* syscall and *fallback* is ``False``.
trusted_official_docs
CPython Docs
asyncio to manually read and send the file when the platform does not support the sendfile system call (e.g. Windows or SSL socket on Unix). Raise :exc:`SendfileNotAvailableError` if the system does not support the *sendfile* syscall and *fallback* is ``False``.
asyncio to manually read and send the file when the platform does not support the sendfile system call (e.g. Windows or SSL socket on Unix). Raise :exc:`SendfileNotAvailableError` if the system does not support the *sendfile* syscall and *fallback* is ``False``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1756a652-6fb0-45fa-ba82-85183e8eeb68
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,067
supabase-export-v2
38d98f1efa213d00
is interpreted as "First Address Family Count" as defined in :rfc:`8305`. The default is ``0`` if *happy_eyeballs_delay* is not specified, and ``1`` if it is. * *sock*, if given, should be an existing, already connected :class:`socket.socket` object to be used by the transport. If *sock* is given, none of *host*, *por...
trusted_official_docs
CPython Docs
is interpreted as "First Address Family Count" as defined in :rfc:`8305`. The default is ``0`` if *happy_eyeballs_delay* is not specified, and ``1`` if it is. * *sock*, if given, should be an existing, already connected :class:`socket.socket` object to be used by the transport. If *sock* is given, none of *host*, *por...
is interpreted as "First Address Family Count" as defined in :rfc:`8305`. The default is ``0`` if *happy_eyeballs_delay* is not specified, and ``1`` if it is. * *sock*, if given, should be an existing, already connected :class:`socket.socket` object to be used by the transport. If *sock* is given, none of *host*, *por...
python, official-docs, cpython, P0
Local_Trusted_Corpus
182c927d-7fe5-4424-ba5e-bbe6796ab772
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,180
supabase-export-v2
f6083d0f87a3f540
(for an SSL connection) the time in seconds to wait for the SSL handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
trusted_official_docs
CPython Docs
(for an SSL connection) the time in seconds to wait for the SSL handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
(for an SSL connection) the time in seconds to wait for the SSL handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
python, official-docs, cpython, P0
Local_Trusted_Corpus
18dd5f5c-9aee-4905-b148-db0c5ccebc66
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,319
supabase-export-v2
7de170386a247dea
import asyncio import concurrent.futures def blocking_io(): # File operations (such as logging) can block the # event loop: run them in a thread pool. with open('/dev/urandom', 'rb') as f: return f.read(100)
trusted_official_docs
CPython Docs
import asyncio import concurrent.futures def blocking_io(): # File operations (such as logging) can block the # event loop: run them in a thread pool. with open('/dev/urandom', 'rb') as f: return f.read(100)
import asyncio import concurrent.futures def blocking_io(): # File operations (such as logging) can block the # event loop: run them in a thread pool. with open('/dev/urandom', 'rb') as f: return f.read(100)
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c75da21-5fbc-4e90-8860-fb0e907721ee
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,126
supabase-export-v2
fc1a8201e5b2c86d
loop.create_server(protocol_factory, \ host=None, port=None, *, \ family=socket.AF_UNSPEC, \ flags=socket.AI_PASSIVE, \ sock=None, backlog=100, ssl=None, \ reuse_address=None, reuse_port=None, \ keep_alive=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ start_serving=True) :async: Create a TCP server...
trusted_official_docs
CPython Docs
loop.create_server(protocol_factory, \ host=None, port=None, *, \ family=socket.AF_UNSPEC, \ flags=socket.AI_PASSIVE, \ sock=None, backlog=100, ssl=None, \ reuse_address=None, reuse_port=None, \ keep_alive=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ start_serving=True) :async: Create a TCP server...
loop.create_server(protocol_factory, \ host=None, port=None, *, \ family=socket.AF_UNSPEC, \ flags=socket.AI_PASSIVE, \ sock=None, backlog=100, ssl=None, \ reuse_address=None, reuse_port=None, \ keep_alive=None, \ ssl_handshake_timeout=None, \ ssl_shutdown_timeout=None, \ start_serving=True) :async: Create a TCP server...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ccbf131-9a49-49bd-a6c5-21f5484aa4b8
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,328
supabase-export-v2
33d9d13662310abe
if __name__ == '__main__': asyncio.run(main()) Note that the entry point guard (``if __name__ == '__main__'``) is required for option 3 due to the peculiarities of :mod:`multiprocessing`, which is used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe importing of main module <multiprocessing-safe-m...
trusted_official_docs
CPython Docs
if __name__ == '__main__': asyncio.run(main()) Note that the entry point guard (``if __name__ == '__main__'``) is required for option 3 due to the peculiarities of :mod:`multiprocessing`, which is used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe importing of main module <multiprocessing-safe-m...
if __name__ == '__main__': asyncio.run(main()) Note that the entry point guard (``if __name__ == '__main__'``) is required for option 3 due to the peculiarities of :mod:`multiprocessing`, which is used by :class:`~concurrent.futures.ProcessPoolExecutor`. See :ref:`Safe importing of main module <multiprocessing-safe-m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
201edb07-2fc9-487b-ab29-e667c8528869
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,223
supabase-export-v2
bc32f22459729893
Working with socket objects directly ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In general, protocol implementations that use transport-based APIs such as :meth:`loop.create_connection` and :meth:`loop.create_server` are faster than implementations that work with sockets directly. However, there are some use cases when perfo...
trusted_official_docs
CPython Docs
Working with socket objects directly ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In general, protocol implementations that use transport-based APIs such as :meth:`loop.create_connection` and :meth:`loop.create_server` are faster than implementations that work with sockets directly. However, there are some use cases when perfo...
Working with socket objects directly ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In general, protocol implementations that use transport-based APIs such as :meth:`loop.create_connection` and :meth:`loop.create_server` are faster than implementations that work with sockets directly. However, there are some use cases when perfo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
21a51616-8b7a-40dd-9c42-c0a570a4d45f
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,290
supabase-export-v2
246d436f229bf0e9
Return pair ``(transport, protocol)``, where *transport* supports the :class:`ReadTransport` interface and *protocol* is an object instantiated by the *protocol_factory*. With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-blocking mode.
trusted_official_docs
CPython Docs
Return pair ``(transport, protocol)``, where *transport* supports the :class:`ReadTransport` interface and *protocol* is an object instantiated by the *protocol_factory*. With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-blocking mode.
Return pair ``(transport, protocol)``, where *transport* supports the :class:`ReadTransport` interface and *protocol* is an object instantiated by the *protocol_factory*. With :class:`SelectorEventLoop` event loop, the *pipe* is set to non-blocking mode.
python, official-docs, cpython, P0
Local_Trusted_Corpus
223d1ce5-9ad1-4b11-8d51-a0a43128201e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,198
supabase-export-v2
4f6b2cdc52b73b13
Create a TLS coder/decoder instance and insert it between the *transport* and the *protocol*. The coder/decoder implements both *transport*-facing protocol and *protocol*-facing transport. Return the created two-interface instance. After *await*, the *protocol* must stop using the original *transport* and communicate ...
trusted_official_docs
CPython Docs
Create a TLS coder/decoder instance and insert it between the *transport* and the *protocol*. The coder/decoder implements both *transport*-facing protocol and *protocol*-facing transport. Return the created two-interface instance. After *await*, the *protocol* must stop using the original *transport* and communicate ...
Create a TLS coder/decoder instance and insert it between the *transport* and the *protocol*. The coder/decoder implements both *transport*-facing protocol and *protocol*-facing transport. Return the created two-interface instance. After *await*, the *protocol* must stop using the original *transport* and communicate ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
22d2c8ea-2319-43c2-85f4-1dc0f7762f4a
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,004
supabase-export-v2
d30af09d74aaf52b
*callback* will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are called is undefined. The optional positional *args* will be passed to the callback when it is called. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to ...
trusted_official_docs
CPython Docs
*callback* will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are called is undefined. The optional positional *args* will be passed to the callback when it is called. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to ...
*callback* will be called exactly once. If two callbacks are scheduled for exactly the same time, the order in which they are called is undefined. The optional positional *args* will be passed to the callback when it is called. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
23e7e4a4-0a09-4aaa-bbe3-4119ef487130
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,248
supabase-export-v2
2d7d4171a0645382
*sock* must be a non-blocking socket. .. versionchanged:: 3.7 Even though the method was always documented as a coroutine method, before Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an ``async def`` method.
trusted_official_docs
CPython Docs
*sock* must be a non-blocking socket. .. versionchanged:: 3.7 Even though the method was always documented as a coroutine method, before Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an ``async def`` method.
*sock* must be a non-blocking socket. .. versionchanged:: 3.7 Even though the method was always documented as a coroutine method, before Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an ``async def`` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2496f6d4-5378-47aa-8fd0-fc5318f3fe0d
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,204
supabase-export-v2
2ecbee0c981008cf
* *server_side* pass ``True`` when a server-side connection is being upgraded (like the one created by :meth:`~loop.create_server`). * *server_hostname*: sets or overrides the host name that the target server's certificate will be matched against.
trusted_official_docs
CPython Docs
* *server_side* pass ``True`` when a server-side connection is being upgraded (like the one created by :meth:`~loop.create_server`). * *server_hostname*: sets or overrides the host name that the target server's certificate will be matched against.
* *server_side* pass ``True`` when a server-side connection is being upgraded (like the one created by :meth:`~loop.create_server`). * *server_hostname*: sets or overrides the host name that the target server's certificate will be matched against.
python, official-docs, cpython, P0
Local_Trusted_Corpus
257676a9-d7de-4ca3-99dd-19aa2b96f7c4
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,420
supabase-export-v2
976614bb77385ea9
.. class:: Server *Server* objects are asynchronous context managers. When used in an ``async with`` statement, it's guaranteed that the Server object is closed and not accepting new connections when the ``async with`` statement is completed::
trusted_official_docs
CPython Docs
.. class:: Server *Server* objects are asynchronous context managers. When used in an ``async with`` statement, it's guaranteed that the Server object is closed and not accepting new connections when the ``async with`` statement is completed::
.. class:: Server *Server* objects are asynchronous context managers. When used in an ``async with`` statement, it's guaranteed that the Server object is closed and not accepting new connections when the ``async with`` statement is completed::
python, official-docs, cpython, P0
Local_Trusted_Corpus
2bff0369-7b5a-419e-a4de-20da69b7e6d1
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,326
supabase-export-v2
0d87abbbe9bf1004
# 3. Run in a custom process pool: with concurrent.futures.ProcessPoolExecutor() as pool: result = await loop.run_in_executor( pool, cpu_bound) print('custom process pool', result) # 4. Run in a custom interpreter pool: with concurrent.futures.InterpreterPoolExecutor() as pool: result = await loop.run_in_executor( p...
trusted_official_docs
CPython Docs
# 3. Run in a custom process pool: with concurrent.futures.ProcessPoolExecutor() as pool: result = await loop.run_in_executor( pool, cpu_bound) print('custom process pool', result) # 4. Run in a custom interpreter pool: with concurrent.futures.InterpreterPoolExecutor() as pool: result = await loop.run_in_executor( p...
# 3. Run in a custom process pool: with concurrent.futures.ProcessPoolExecutor() as pool: result = await loop.run_in_executor( pool, cpu_bound) print('custom process pool', result) # 4. Run in a custom interpreter pool: with concurrent.futures.InterpreterPoolExecutor() as pool: result = await loop.run_in_executor( p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3102965e-47bb-44cb-8d75-ce51b81f3e1e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,499
supabase-export-v2
bc6445263e73da7a
callback displaying the current date every second. The callback uses the :meth:`loop.call_later` method to reschedule itself after 5 seconds, and then stops the event loop:: import asyncio import datetime as dt
trusted_official_docs
CPython Docs
callback displaying the current date every second. The callback uses the :meth:`loop.call_later` method to reschedule itself after 5 seconds, and then stops the event loop:: import asyncio import datetime as dt
callback displaying the current date every second. The callback uses the :meth:`loop.call_later` method to reschedule itself after 5 seconds, and then stops the event loop:: import asyncio import datetime as dt
python, official-docs, cpython, P0
Local_Trusted_Corpus
31aa1567-f4dd-422f-b417-57f2d0d4569c
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,072
supabase-export-v2
ce95da4a7e3e6ef2
(for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
trusted_official_docs
CPython Docs
(for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
(for a TLS connection) the time in seconds to wait for the TLS handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). * *ssl_shutdown_timeout* is the time in seconds to wait for the SSL shutdown to complete before aborting the connection. ``30.0`` seconds if ``None`` (default).
python, official-docs, cpython, P0
Local_Trusted_Corpus
31f9a644-618c-4d3c-9ea5-c5fd86dbea28
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,382
supabase-export-v2
2c6202fbbb824753
will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the special :data:`os.devnull` file will be used * *stdout* can be any of these:
trusted_official_docs
CPython Docs
will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the special :data:`os.devnull` file will be used * *stdout* can be any of these:
will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the special :data:`os.devnull` file will be used * *stdout* can be any of these:
python, official-docs, cpython, P0
Local_Trusted_Corpus
32220e2c-993b-4e27-a457-c1072453dd0b
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,112
supabase-export-v2
5e23a7eff19959db
for similar functionality. With *reuse_port*, :ref:`socket.SO_REUSEPORT <socket-unix-constants>` is used instead, which specifically prevents processes with differing UIDs from assigning sockets to the same socket address. .. versionchanged:: 3.11 The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and ...
trusted_official_docs
CPython Docs
for similar functionality. With *reuse_port*, :ref:`socket.SO_REUSEPORT <socket-unix-constants>` is used instead, which specifically prevents processes with differing UIDs from assigning sockets to the same socket address. .. versionchanged:: 3.11 The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and ...
for similar functionality. With *reuse_port*, :ref:`socket.SO_REUSEPORT <socket-unix-constants>` is used instead, which specifically prevents processes with differing UIDs from assigning sockets to the same socket address. .. versionchanged:: 3.11 The *reuse_address* parameter, disabled since Python 3.8.1, 3.7.6 and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33af18a2-5c11-48f4-9044-f982745d1054
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,429
supabase-export-v2
3c3b433f2f4105dc
The sockets that represent existing incoming client connections are left open. The server is closed asynchronously; use the :meth:`wait_closed` coroutine to wait until the server is closed (and no more connections are active).
trusted_official_docs
CPython Docs
The sockets that represent existing incoming client connections are left open. The server is closed asynchronously; use the :meth:`wait_closed` coroutine to wait until the server is closed (and no more connections are active).
The sockets that represent existing incoming client connections are left open. The server is closed asynchronously; use the :meth:`wait_closed` coroutine to wait until the server is closed (and no more connections are active).
python, official-docs, cpython, P0
Local_Trusted_Corpus
33bab0cd-7c12-4d70-ae7b-fcc1aaf62bf1
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,134
supabase-export-v2
2422d618d39c8b14
random unused port will be selected (note that if *host* resolves to multiple network interfaces, a different random port will be selected for each interface). * *family* can be set to either :const:`socket.AF_INET` or :const:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* will be ...
trusted_official_docs
CPython Docs
random unused port will be selected (note that if *host* resolves to multiple network interfaces, a different random port will be selected for each interface). * *family* can be set to either :const:`socket.AF_INET` or :const:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* will be ...
random unused port will be selected (note that if *host* resolves to multiple network interfaces, a different random port will be selected for each interface). * *family* can be set to either :const:`socket.AF_INET` or :const:`~socket.AF_INET6` to force the socket to use IPv4 or IPv6. If not set, the *family* will be ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33cd613d-762e-4503-8b76-dd013e94ae41
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,103
supabase-export-v2
727e54a014b63fec
* *allow_broadcast* tells the kernel to allow this endpoint to send messages to the broadcast address. * *sock* can optionally be specified in order to use a preexisting, already connected, :class:`socket.socket` object to be used by the transport. If specified, *local_addr* and *remote_addr* should be omitted (must...
trusted_official_docs
CPython Docs
* *allow_broadcast* tells the kernel to allow this endpoint to send messages to the broadcast address. * *sock* can optionally be specified in order to use a preexisting, already connected, :class:`socket.socket` object to be used by the transport. If specified, *local_addr* and *remote_addr* should be omitted (must...
* *allow_broadcast* tells the kernel to allow this endpoint to send messages to the broadcast address. * *sock* can optionally be specified in order to use a preexisting, already connected, :class:`socket.socket` object to be used by the transport. If specified, *local_addr* and *remote_addr* should be omitted (must...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33d368b9-43ce-40b6-889b-c8e278b83095
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,161
supabase-export-v2
3e805c77fb9588de
Similar to :meth:`loop.create_server` but works with the :py:const:`~socket.AF_UNIX` socket family. *path* is the name of a Unix domain socket, and is required, unless a *sock* argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported.
trusted_official_docs
CPython Docs
Similar to :meth:`loop.create_server` but works with the :py:const:`~socket.AF_UNIX` socket family. *path* is the name of a Unix domain socket, and is required, unless a *sock* argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported.
Similar to :meth:`loop.create_server` but works with the :py:const:`~socket.AF_UNIX` socket family. *path* is the name of a Unix domain socket, and is required, unless a *sock* argument is provided. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
37e61719-a707-4c4e-91b1-a8fbd52210a8
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,005
supabase-export-v2
b61102f2ad8debff
The optional positional *args* will be passed to the callback when it is called. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *callback*. An optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The cu...
trusted_official_docs
CPython Docs
The optional positional *args* will be passed to the callback when it is called. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *callback*. An optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The cu...
The optional positional *args* will be passed to the callback when it is called. Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *callback*. An optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The cu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
39cbf3d9-608c-4389-a26d-f6f73b1744f3
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,199
supabase-export-v2
32a9c34880952fa5
the original *transport* and communicate with the returned object only because the coder caches *protocol*-side data and sporadically exchanges extra TLS session packets with *transport*. In some situations (e.g. when the passed transport is already closing) this may return ``None``.
trusted_official_docs
CPython Docs
the original *transport* and communicate with the returned object only because the coder caches *protocol*-side data and sporadically exchanges extra TLS session packets with *transport*. In some situations (e.g. when the passed transport is already closing) this may return ``None``.
the original *transport* and communicate with the returned object only because the coder caches *protocol*-side data and sporadically exchanges extra TLS session packets with *transport*. In some situations (e.g. when the passed transport is already closing) this may return ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3dc7ccfd-0702-4ca5-8e4d-3e38b94ed483
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,353
supabase-export-v2
22714517581d1493
*context* is a ``dict`` object containing the following keys (new keys may be introduced in future Python versions): * 'message': Error message; * 'exception' (optional): Exception object; * 'future' (optional): :class:`asyncio.Future` instance; * 'task' (optional): :class:`asyncio.Task` instance; * 'handle' (optio...
trusted_official_docs
CPython Docs
*context* is a ``dict`` object containing the following keys (new keys may be introduced in future Python versions): * 'message': Error message; * 'exception' (optional): Exception object; * 'future' (optional): :class:`asyncio.Future` instance; * 'task' (optional): :class:`asyncio.Task` instance; * 'handle' (optio...
*context* is a ``dict`` object containing the following keys (new keys may be introduced in future Python versions): * 'message': Error message; * 'exception' (optional): Exception object; * 'future' (optional): :class:`asyncio.Future` instance; * 'task' (optional): :class:`asyncio.Task` instance; * 'handle' (optio...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3de4c414-51b9-4798-9516-5953352bdfa6
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,117
supabase-export-v2
8af240b1b9325848
A tuple of ``(transport, protocol)`` is returned on success. *path* is the name of a Unix domain socket and is required, unless a *sock* parameter is specified. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported.
trusted_official_docs
CPython Docs
A tuple of ``(transport, protocol)`` is returned on success. *path* is the name of a Unix domain socket and is required, unless a *sock* parameter is specified. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported.
A tuple of ``(transport, protocol)`` is returned on success. *path* is the name of a Unix domain socket and is required, unless a *sock* parameter is specified. Abstract Unix sockets, :class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths are supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3e162e28-cb42-47d6-8fd1-90d9be05b9e6
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,029
supabase-export-v2
aa8b4a9f04237814
Schedule the execution of :ref:`coroutine <coroutine>` *coro*. Return a :class:`Task` object. Third-party event loops can use their own subclass of :class:`Task` for interoperability. In this case, the result type is a subclass of :class:`Task`.
trusted_official_docs
CPython Docs
Schedule the execution of :ref:`coroutine <coroutine>` *coro*. Return a :class:`Task` object. Third-party event loops can use their own subclass of :class:`Task` for interoperability. In this case, the result type is a subclass of :class:`Task`.
Schedule the execution of :ref:`coroutine <coroutine>` *coro*. Return a :class:`Task` object. Third-party event loops can use their own subclass of :class:`Task` for interoperability. In this case, the result type is a subclass of :class:`Task`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4161004f-dc27-41c0-9203-d8045d9fd6c4
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,498
supabase-export-v2
4b5eb2552ab8fc5a
Display the current date with call_later() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An example of a callback displaying the current date every second. The callback uses the :meth:`loop.call_later` method to reschedule itself after 5 seconds, and then stops the event loop::
trusted_official_docs
CPython Docs
Display the current date with call_later() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An example of a callback displaying the current date every second. The callback uses the :meth:`loop.call_later` method to reschedule itself after 5 seconds, and then stops the event loop::
Display the current date with call_later() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ An example of a callback displaying the current date every second. The callback uses the :meth:`loop.call_later` method to reschedule itself after 5 seconds, and then stops the event loop::
python, official-docs, cpython, P0
Local_Trusted_Corpus
42e3622e-888a-4685-8cbe-dd79da5ec1ca
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,247
supabase-export-v2
e78d9e390bc5d1c2
exception is raised. Additionally, there is no way to determine how much data, if any, was successfully processed by the receiving end of the connection. *sock* must be a non-blocking socket.
trusted_official_docs
CPython Docs
exception is raised. Additionally, there is no way to determine how much data, if any, was successfully processed by the receiving end of the connection. *sock* must be a non-blocking socket.
exception is raised. Additionally, there is no way to determine how much data, if any, was successfully processed by the receiving end of the connection. *sock* must be a non-blocking socket.
python, official-docs, cpython, P0
Local_Trusted_Corpus
443e7d9d-8597-48f0-bcb0-c92f7a5f36e9
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,383
supabase-export-v2
18e4101ccc19b03b
* *stdout* can be any of these: * a file-like object * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the ...
trusted_official_docs
CPython Docs
* *stdout* can be any of these: * a file-like object * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the ...
* *stdout* can be any of these: * a file-like object * the :const:`subprocess.PIPE` constant (default) which will create a new pipe and connect it, * the value ``None`` which will make the subprocess inherit the file descriptor from this process * the :const:`subprocess.DEVNULL` constant which indicates that the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
449eea91-7c8a-4be6-ac26-3a0665d0e880
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
8,249
supabase-export-v2
6dfc16381ade3f3a
the method was always documented as a coroutine method, before Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an ``async def`` method. .. method:: loop.sock_sendto(sock, data, address) :async:
trusted_official_docs
CPython Docs
the method was always documented as a coroutine method, before Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an ``async def`` method. .. method:: loop.sock_sendto(sock, data, address) :async:
the method was always documented as a coroutine method, before Python 3.7 it returned a :class:`Future`. Since Python 3.7, this is an ``async def`` method. .. method:: loop.sock_sendto(sock, data, address) :async:
python, official-docs, cpython, P0
Local_Trusted_Corpus
44c5ddc7-49fc-44ad-af0d-443f00bd50f1
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,955
supabase-export-v2
414469dfaef668c6
Run the event loop until :meth:`stop` is called. If :meth:`stop` is called before :meth:`run_forever` is called, the loop will poll the I/O selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit.
trusted_official_docs
CPython Docs
Run the event loop until :meth:`stop` is called. If :meth:`stop` is called before :meth:`run_forever` is called, the loop will poll the I/O selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit.
Run the event loop until :meth:`stop` is called. If :meth:`stop` is called before :meth:`run_forever` is called, the loop will poll the I/O selector once with a timeout of zero, run all callbacks scheduled in response to I/O events (and those that were already scheduled), and then exit.
python, official-docs, cpython, P0
Local_Trusted_Corpus
45122f0f-9b67-416b-b3a1-fc5a69aaca22
CPython Docs
file://datasets/cpython/Doc/library/asyncio-eventloop.rst
unknown
609f1ddb-4818-40a8-91b8-b7d5046d008f
7,989
supabase-export-v2
2fd8d510349f22b2
A thread-safe variant of :meth:`call_soon`. When scheduling callbacks from another thread, this function *must* be used, since :meth:`call_soon` is not thread-safe. This function is safe to be called from a reentrant context or signal handler, however, it is not safe or fruitful to use the returned handle in such cont...
trusted_official_docs
CPython Docs
A thread-safe variant of :meth:`call_soon`. When scheduling callbacks from another thread, this function *must* be used, since :meth:`call_soon` is not thread-safe. This function is safe to be called from a reentrant context or signal handler, however, it is not safe or fruitful to use the returned handle in such cont...
A thread-safe variant of :meth:`call_soon`. When scheduling callbacks from another thread, this function *must* be used, since :meth:`call_soon` is not thread-safe. This function is safe to be called from a reentrant context or signal handler, however, it is not safe or fruitful to use the returned handle in such cont...
python, official-docs, cpython, P0
Local_Trusted_Corpus