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
f89facae-013f-4c62-8cd9-8e7f2788e924
CPython Docs
file://datasets/cpython/Doc/library/email.policy.rst
unknown
2c16ed3b-31d4-4a85-8e9f-1c955feb894d
51,635
supabase-export-v2
3ce78d6aec889359
Return the maximum allowed number of headers named *name*. Called when a header is added to an :class:`~email.message.EmailMessage` or :class:`~email.message.Message` object. If the returned value is not ``0`` or ``None``, and there are already a number of headers with the name *name* greater than or equal to the va...
trusted_official_docs
CPython Docs
Return the maximum allowed number of headers named *name*. Called when a header is added to an :class:`~email.message.EmailMessage` or :class:`~email.message.Message` object. If the returned value is not ``0`` or ``None``, and there are already a number of headers with the name *name* greater than or equal to the va...
Return the maximum allowed number of headers named *name*. Called when a header is added to an :class:`~email.message.EmailMessage` or :class:`~email.message.Message` object. If the returned value is not ``0`` or ``None``, and there are already a number of headers with the name *name* greater than or equal to the va...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f98078ea-c90f-4f3c-9006-8255c4d97b63
CPython Docs
file://datasets/cpython/Doc/library/email.policy.rst
unknown
2c16ed3b-31d4-4a85-8e9f-1c955feb894d
51,646
supabase-export-v2
49fa2580ea87ee11
existing email package policies, the *name* and *value* should be strings or string subclasses that do not change the content of the passed in arguments. There is no default implementation
trusted_official_docs
CPython Docs
existing email package policies, the *name* and *value* should be strings or string subclasses that do not change the content of the passed in arguments. There is no default implementation
existing email package policies, the *name* and *value* should be strings or string subclasses that do not change the content of the passed in arguments. There is no default implementation
python, official-docs, cpython, P0
Local_Trusted_Corpus
ff9b62c1-c371-4986-a075-50d85050e40d
CPython Docs
file://datasets/cpython/Doc/library/email.policy.rst
unknown
2c16ed3b-31d4-4a85-8e9f-1c955feb894d
51,602
supabase-export-v2
ae29216ff1f43c39
.. attribute:: max_line_length The maximum length of any line in the serialized output, not counting the end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0`` or :const:`None` indicates that no line wrapping should be done at all.
trusted_official_docs
CPython Docs
.. attribute:: max_line_length The maximum length of any line in the serialized output, not counting the end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0`` or :const:`None` indicates that no line wrapping should be done at all.
.. attribute:: max_line_length The maximum length of any line in the serialized output, not counting the end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0`` or :const:`None` indicates that no line wrapping should be done at all.
python, official-docs, cpython, P0
Local_Trusted_Corpus
38bc4d87-668b-4f3b-ace7-f251acf543ef
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,798
supabase-export-v2
9a61110ced7526b8
* Interrupts always go to the main thread (the :exc:`KeyboardInterrupt` exception will be received by that thread.) * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is equivalent to calling :func:`_thread.exit`.
trusted_official_docs
CPython Docs
* Interrupts always go to the main thread (the :exc:`KeyboardInterrupt` exception will be received by that thread.) * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is equivalent to calling :func:`_thread.exit`.
* Interrupts always go to the main thread (the :exc:`KeyboardInterrupt` exception will be received by that thread.) * Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is equivalent to calling :func:`_thread.exit`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
42883e50-a53c-41e6-b4ca-a51a76971a30
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,736
supabase-export-v2
b7e2fbb90c416729
-------------- This module provides low-level primitives for working with multiple threads (also called :dfn:`light-weight processes` or :dfn:`tasks`) --- multiple threads of control sharing their global data space. For synchronization, simple locks (also called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided....
trusted_official_docs
CPython Docs
-------------- This module provides low-level primitives for working with multiple threads (also called :dfn:`light-weight processes` or :dfn:`tasks`) --- multiple threads of control sharing their global data space. For synchronization, simple locks (also called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided....
-------------- This module provides low-level primitives for working with multiple threads (also called :dfn:`light-weight processes` or :dfn:`tasks`) --- multiple threads of control sharing their global data space. For synchronization, simple locks (also called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided....
python, official-docs, cpython, P0
Local_Trusted_Corpus
43e73da7-a7f9-47a0-ba93-2e425ee8b44e
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,748
supabase-export-v2
013fa4700df443ac
When the function returns, the thread silently exits. When the function terminates with an unhandled exception, :func:`sys.unraisablehook` is called to handle the exception. The *object* attribute of the hook argument is *function*. By default, a stack trace is printed and then the thread exits (but other threads co...
trusted_official_docs
CPython Docs
When the function returns, the thread silently exits. When the function terminates with an unhandled exception, :func:`sys.unraisablehook` is called to handle the exception. The *object* attribute of the hook argument is *function*. By default, a stack trace is printed and then the thread exits (but other threads co...
When the function returns, the thread silently exits. When the function terminates with an unhandled exception, :func:`sys.unraisablehook` is called to handle the exception. The *object* attribute of the hook argument is *function*. By default, a stack trace is printed and then the thread exits (but other threads co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
45c827a0-6ca3-4a74-9ec2-c00458256006
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,756
supabase-export-v2
ce97f8638f2c8682
If the given signal isn't handled by Python (it was set to :const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does nothing. .. versionchanged:: 3.10 The *signum* argument is added to customize the signal number.
trusted_official_docs
CPython Docs
If the given signal isn't handled by Python (it was set to :const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does nothing. .. versionchanged:: 3.10 The *signum* argument is added to customize the signal number.
If the given signal isn't handled by Python (it was set to :const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does nothing. .. versionchanged:: 3.10 The *signum* argument is added to customize the signal number.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e833bab-59f8-48e6-8575-2d433681c6dc
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,749
supabase-export-v2
c8c2fdaa98946d9a
attribute of the hook argument is *function*. By default, a stack trace is printed and then the thread exits (but other threads continue to run). When the function raises a :exc:`SystemExit` exception, it is silently ignored.
trusted_official_docs
CPython Docs
attribute of the hook argument is *function*. By default, a stack trace is printed and then the thread exits (but other threads continue to run). When the function raises a :exc:`SystemExit` exception, it is silently ignored.
attribute of the hook argument is *function*. By default, a stack trace is printed and then the thread exits (but other threads continue to run). When the function raises a :exc:`SystemExit` exception, it is silently ignored.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a2e81c9-ba3e-466d-ab98-7763cfec76d0
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,757
supabase-export-v2
d28a603ca63e9a52
.. versionchanged:: 3.10 The *signum* argument is added to customize the signal number. .. note:: This does not emit the corresponding signal but schedules a call to the associated handler (if it exists). If you want to truly emit the signal, use :func:`signal.raise_signal`.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.10 The *signum* argument is added to customize the signal number. .. note:: This does not emit the corresponding signal but schedules a call to the associated handler (if it exists). If you want to truly emit the signal, use :func:`signal.raise_signal`.
.. versionchanged:: 3.10 The *signum* argument is added to customize the signal number. .. note:: This does not emit the corresponding signal but schedules a call to the associated handler (if it exists). If you want to truly emit the signal, use :func:`signal.raise_signal`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5d5fcab0-b865-480a-96ea-24723bf07290
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,747
supabase-export-v2
09a6cb68ee36ca0a
thread executes the function *function* with the argument list *args* (which must be a tuple). The optional *kwargs* argument specifies a dictionary of keyword arguments. When the function returns, the thread silently exits.
trusted_official_docs
CPython Docs
thread executes the function *function* with the argument list *args* (which must be a tuple). The optional *kwargs* argument specifies a dictionary of keyword arguments. When the function returns, the thread silently exits.
thread executes the function *function* with the argument list *args* (which must be a tuple). The optional *kwargs* argument specifies a dictionary of keyword arguments. When the function returns, the thread silently exits.
python, official-docs, cpython, P0
Local_Trusted_Corpus
698d8760-2199-4db6-845c-cbde6387042a
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,746
supabase-export-v2
00add9eed5e7f1c7
.. function:: start_new_thread(function, args[, kwargs]) Start a new thread and return its identifier. The thread executes the function *function* with the argument list *args* (which must be a tuple). The optional *kwargs* argument specifies a dictionary of keyword arguments.
trusted_official_docs
CPython Docs
.. function:: start_new_thread(function, args[, kwargs]) Start a new thread and return its identifier. The thread executes the function *function* with the argument list *args* (which must be a tuple). The optional *kwargs* argument specifies a dictionary of keyword arguments.
.. function:: start_new_thread(function, args[, kwargs]) Start a new thread and return its identifier. The thread executes the function *function* with the argument list *args* (which must be a tuple). The optional *kwargs* argument specifies a dictionary of keyword arguments.
python, official-docs, cpython, P0
Local_Trusted_Corpus
765e6584-1cb8-4e41-8bf5-2b73ae564019
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,793
supabase-export-v2
a35ab7f6f368263e
Return the status of the lock: ``True`` if it has been acquired by some thread, ``False`` if not. In addition to these methods, lock objects can also be used via the :keyword:`with` statement, e.g.::
trusted_official_docs
CPython Docs
Return the status of the lock: ``True`` if it has been acquired by some thread, ``False`` if not. In addition to these methods, lock objects can also be used via the :keyword:`with` statement, e.g.::
Return the status of the lock: ``True`` if it has been acquired by some thread, ``False`` if not. In addition to these methods, lock objects can also be used via the :keyword:`with` statement, e.g.::
python, official-docs, cpython, P0
Local_Trusted_Corpus
7bfb611d-67d9-4457-a080-659d36ff2e9c
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,755
supabase-export-v2
5f88b696aafb6fe1
If given, *signum* is the number of the signal to simulate. If *signum* is not given, :const:`signal.SIGINT` is simulated. If the given signal isn't handled by Python (it was set to :const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does nothing.
trusted_official_docs
CPython Docs
If given, *signum* is the number of the signal to simulate. If *signum* is not given, :const:`signal.SIGINT` is simulated. If the given signal isn't handled by Python (it was set to :const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does nothing.
If given, *signum* is the number of the signal to simulate. If *signum* is not given, :const:`signal.SIGINT` is simulated. If the given signal isn't handled by Python (it was set to :const:`signal.SIG_DFL` or :const:`signal.SIG_IGN`), this function does nothing.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f43cc9e-bd30-4621-a7c7-6374aefbbdbd
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,737
supabase-export-v2
96f009cfd7d23672
called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided. The :mod:`threading` module provides an easier to use and higher-level threading API built on top of this module. .. index:: single: pthreads pair: threads; POSIX
trusted_official_docs
CPython Docs
called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided. The :mod:`threading` module provides an easier to use and higher-level threading API built on top of this module. .. index:: single: pthreads pair: threads; POSIX
called :dfn:`mutexes` or :dfn:`binary semaphores`) are provided. The :mod:`threading` module provides an easier to use and higher-level threading API built on top of this module. .. index:: single: pthreads pair: threads; POSIX
python, official-docs, cpython, P0
Local_Trusted_Corpus
94ca7c62-0791-47d7-a2c2-49c8993350a2
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,761
supabase-export-v2
b2f21a2fb6b52df4
.. function:: exit_prog(status) Exit all threads and report the value of the integer argument *status* as the exit status of the entire program. **Caveat:** code in pending :keyword:`finally` clauses, in this thread or in other threads, is not executed.
trusted_official_docs
CPython Docs
.. function:: exit_prog(status) Exit all threads and report the value of the integer argument *status* as the exit status of the entire program. **Caveat:** code in pending :keyword:`finally` clauses, in this thread or in other threads, is not executed.
.. function:: exit_prog(status) Exit all threads and report the value of the integer argument *status* as the exit status of the entire program. **Caveat:** code in pending :keyword:`finally` clauses, in this thread or in other threads, is not executed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
98ebfa9e-ec33-4366-8094-8361b90ba40c
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,765
supabase-export-v2
a55cff307fda885e
.. function:: get_ident() Return the 'thread identifier' of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is crea...
trusted_official_docs
CPython Docs
.. function:: get_ident() Return the 'thread identifier' of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is crea...
.. function:: get_ident() Return the 'thread identifier' of the current thread. This is a nonzero integer. Its value has no direct meaning; it is intended as a magic cookie to be used e.g. to index a dictionary of thread-specific data. Thread identifiers may be recycled when a thread exits and another thread is crea...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a54d57e1-befb-409a-83bc-c011bfa2a35e
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,783
supabase-export-v2
3d49d887187f0c25
necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence). If the *blocking* argument is present, the action depends on its value: if it is false, the lock is only acquired if it can be acquired immediately without waiting, while if i...
trusted_official_docs
CPython Docs
necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence). If the *blocking* argument is present, the action depends on its value: if it is false, the lock is only acquired if it can be acquired immediately without waiting, while if i...
necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence). If the *blocking* argument is present, the action depends on its value: if it is false, the lock is only acquired if it can be acquired immediately without waiting, while if i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba615ec7-bd50-4423-9e3e-2487f40315de
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,784
supabase-export-v2
0592824208267037
the lock is only acquired if it can be acquired immediately without waiting, while if it is true, the lock is acquired unconditionally as above. If the floating-point *timeout* argument is present and positive, it specifies the maximum wait time in seconds before returning. A negative *timeout* argument specifies an ...
trusted_official_docs
CPython Docs
the lock is only acquired if it can be acquired immediately without waiting, while if it is true, the lock is acquired unconditionally as above. If the floating-point *timeout* argument is present and positive, it specifies the maximum wait time in seconds before returning. A negative *timeout* argument specifies an ...
the lock is only acquired if it can be acquired immediately without waiting, while if it is true, the lock is acquired unconditionally as above. If the floating-point *timeout* argument is present and positive, it specifies the maximum wait time in seconds before returning. A negative *timeout* argument specifies an ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc9a50d2-37e4-44d1-8654-a0c6dabde966
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,785
supabase-export-v2
0ba45fb71e372695
the maximum wait time in seconds before returning. A negative *timeout* argument specifies an unbounded wait. You cannot specify a *timeout* if *blocking* is false. The return value is ``True`` if the lock is acquired successfully, ``False`` if not.
trusted_official_docs
CPython Docs
the maximum wait time in seconds before returning. A negative *timeout* argument specifies an unbounded wait. You cannot specify a *timeout* if *blocking* is false. The return value is ``True`` if the lock is acquired successfully, ``False`` if not.
the maximum wait time in seconds before returning. A negative *timeout* argument specifies an unbounded wait. You cannot specify a *timeout* if *blocking* is false. The return value is ``True`` if the lock is acquired successfully, ``False`` if not.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c96bbcfa-95db-4035-9bd6-69579272e936
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,753
supabase-export-v2
1daf4c115fc04bee
.. function:: interrupt_main(signum=signal.SIGINT, /) Simulate the effect of a signal arriving in the main thread. A thread can use this function to interrupt the main thread, though there is no guarantee that the interruption will happen immediately.
trusted_official_docs
CPython Docs
.. function:: interrupt_main(signum=signal.SIGINT, /) Simulate the effect of a signal arriving in the main thread. A thread can use this function to interrupt the main thread, though there is no guarantee that the interruption will happen immediately.
.. function:: interrupt_main(signum=signal.SIGINT, /) Simulate the effect of a signal arriving in the main thread. A thread can use this function to interrupt the main thread, though there is no guarantee that the interruption will happen immediately.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfe01bda-b9ee-438a-bd39-46c6c316d251
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,754
supabase-export-v2
704fdbd679bda359
the main thread. A thread can use this function to interrupt the main thread, though there is no guarantee that the interruption will happen immediately. If given, *signum* is the number of the signal to simulate. If *signum* is not given, :const:`signal.SIGINT` is simulated.
trusted_official_docs
CPython Docs
the main thread. A thread can use this function to interrupt the main thread, though there is no guarantee that the interruption will happen immediately. If given, *signum* is the number of the signal to simulate. If *signum* is not given, :const:`signal.SIGINT` is simulated.
the main thread. A thread can use this function to interrupt the main thread, though there is no guarantee that the interruption will happen immediately. If given, *signum* is the number of the signal to simulate. If *signum* is not given, :const:`signal.SIGINT` is simulated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3540dea-78ca-41f3-8129-d8231c29cfca
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,782
supabase-export-v2
3fa363ff08d33dc7
.. method:: lock.acquire(blocking=True, timeout=-1) Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence).
trusted_official_docs
CPython Docs
.. method:: lock.acquire(blocking=True, timeout=-1) Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence).
.. method:: lock.acquire(blocking=True, timeout=-1) Without any optional argument, this method acquires the lock unconditionally, if necessary waiting until it is released by another thread (only one thread at a time can acquire a lock --- that's their reason for existence).
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4ea57e7-d78f-42bc-ae89-f2a4f15529df
CPython Docs
file://datasets/cpython/Doc/library/_thread.rst
unknown
c9c34380-3bb5-400a-9b8b-caba34770e3b
51,799
supabase-export-v2
69b046953ad02a5c
* Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is equivalent to calling :func:`_thread.exit`. * When the main thread exits, it is system defined whether the other threads survive. On most systems, they are killed without executing :keyword:`try` ... :keyword:`finally` clauses or executing objec...
trusted_official_docs
CPython Docs
* Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is equivalent to calling :func:`_thread.exit`. * When the main thread exits, it is system defined whether the other threads survive. On most systems, they are killed without executing :keyword:`try` ... :keyword:`finally` clauses or executing objec...
* Calling :func:`sys.exit` or raising the :exc:`SystemExit` exception is equivalent to calling :func:`_thread.exit`. * When the main thread exits, it is system defined whether the other threads survive. On most systems, they are killed without executing :keyword:`try` ... :keyword:`finally` clauses or executing objec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e21e513-1677-4d90-8b5b-1699e3633a26
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,805
supabase-export-v2
621b734a82c2f915
high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the :func:`.open` function from this module will do the right thing. Under Unix, graphical browsers are preferred under X11, but text-mode browsers will be used if graphical browsers are not available or an X...
trusted_official_docs
CPython Docs
high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the :func:`.open` function from this module will do the right thing. Under Unix, graphical browsers are preferred under X11, but text-mode browsers will be used if graphical browsers are not available or an X...
high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the :func:`.open` function from this module will do the right thing. Under Unix, graphical browsers are preferred under X11, but text-mode browsers will be used if graphical browsers are not available or an X...
python, official-docs, cpython, P0
Local_Trusted_Corpus
12fdc8e8-c221-4aa2-9e9c-e0a642f09974
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,848
supabase-export-v2
a27030be433be61c
that the name "kfm" is used even when using the :program:`konqueror` command with KDE 2 --- the implementation selects the best strategy for running Konqueror. (2) Only on Windows platforms.
trusted_official_docs
CPython Docs
that the name "kfm" is used even when using the :program:`konqueror` command with KDE 2 --- the implementation selects the best strategy for running Konqueror. (2) Only on Windows platforms.
that the name "kfm" is used even when using the :program:`konqueror` command with KDE 2 --- the implementation selects the best strategy for running Konqueror. (2) Only on Windows platforms.
python, official-docs, cpython, P0
Local_Trusted_Corpus
143c8a4a-005a-47df-9dcf-c46ee3517248
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,844
supabase-export-v2
a2ee94c6b23cec2a
.. versionchanged:: 3.7 *preferred* keyword-only parameter was added. A number of browser types are predefined. This table gives the type names that may be passed to the :func:`get` function and the corresponding instantiations for the controller classes, all defined in this module.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.7 *preferred* keyword-only parameter was added. A number of browser types are predefined. This table gives the type names that may be passed to the :func:`get` function and the corresponding instantiations for the controller classes, all defined in this module.
.. versionchanged:: 3.7 *preferred* keyword-only parameter was added. A number of browser types are predefined. This table gives the type names that may be passed to the :func:`get` function and the corresponding instantiations for the controller classes, all defined in this module.
python, official-docs, cpython, P0
Local_Trusted_Corpus
23dd0d93-75a9-4ca9-8b5e-ad62a8a0e719
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,809
supabase-export-v2
b795c663e546474a
to reorder the list of platform defaults. This is particularly useful on macOS where the platform defaults do not refer to command-line tools on :envvar:`PATH`. For non-Unix platforms, or when a remote browser is available on Unix, the controlling process will not wait for the user to finish with the browser, but allow...
trusted_official_docs
CPython Docs
to reorder the list of platform defaults. This is particularly useful on macOS where the platform defaults do not refer to command-line tools on :envvar:`PATH`. For non-Unix platforms, or when a remote browser is available on Unix, the controlling process will not wait for the user to finish with the browser, but allow...
to reorder the list of platform defaults. This is particularly useful on macOS where the platform defaults do not refer to command-line tools on :envvar:`PATH`. For non-Unix platforms, or when a remote browser is available on Unix, the controlling process will not wait for the user to finish with the browser, but allow...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4373354b-b249-466d-9a28-33e8ba6d5851
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,843
supabase-export-v2
8ba0b40f77fc89e6
useful if you plan to either set the :envvar:`BROWSER` variable or call :func:`get` with a nonempty argument matching the name of a handler you declare. .. versionchanged:: 3.7 *preferred* keyword-only parameter was added.
trusted_official_docs
CPython Docs
useful if you plan to either set the :envvar:`BROWSER` variable or call :func:`get` with a nonempty argument matching the name of a handler you declare. .. versionchanged:: 3.7 *preferred* keyword-only parameter was added.
useful if you plan to either set the :envvar:`BROWSER` variable or call :func:`get` with a nonempty argument matching the name of a handler you declare. .. versionchanged:: 3.7 *preferred* keyword-only parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4797621b-c45f-4613-8256-8d7fb1569543
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,829
supabase-export-v2
afe0aaa214d7f3b1
*autoraise* is ``True``, the window is raised if possible (note that under many window managers this will occur regardless of the setting of this variable). Returns ``True`` if a browser was successfully launched, ``False`` otherwise.
trusted_official_docs
CPython Docs
*autoraise* is ``True``, the window is raised if possible (note that under many window managers this will occur regardless of the setting of this variable). Returns ``True`` if a browser was successfully launched, ``False`` otherwise.
*autoraise* is ``True``, the window is raised if possible (note that under many window managers this will occur regardless of the setting of this variable). Returns ``True`` if a browser was successfully launched, ``False`` otherwise.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e455922-d666-4a9c-b2ce-825d55f7b7c3
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,851
supabase-export-v2
f810ac3ed9f3fc34
added and is used on Mac instead of the previous :class:`!MacOSX` class. This adds support for opening browsers not currently set as the OS default. .. versionadded:: 3.3 Support for Chrome/Chromium has been added.
trusted_official_docs
CPython Docs
added and is used on Mac instead of the previous :class:`!MacOSX` class. This adds support for opening browsers not currently set as the OS default. .. versionadded:: 3.3 Support for Chrome/Chromium has been added.
added and is used on Mac instead of the previous :class:`!MacOSX` class. This adds support for opening browsers not currently set as the OS default. .. versionadded:: 3.3 Support for Chrome/Chromium has been added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
590c2e77-1281-4761-a109-a614fce6411a
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,810
supabase-export-v2
4ecfdefb9e288fdf
maintain its own windows on the display. If remote browsers are not available on Unix, the controlling process will launch a new browser and wait. On iOS, the :envvar:`BROWSER` environment variable, as well as any arguments controlling autoraise, browser preference, and new tab/window creation will be ignored. Web page...
trusted_official_docs
CPython Docs
maintain its own windows on the display. If remote browsers are not available on Unix, the controlling process will launch a new browser and wait. On iOS, the :envvar:`BROWSER` environment variable, as well as any arguments controlling autoraise, browser preference, and new tab/window creation will be ignored. Web page...
maintain its own windows on the display. If remote browsers are not available on Unix, the controlling process will launch a new browser and wait. On iOS, the :envvar:`BROWSER` environment variable, as well as any arguments controlling autoraise, browser preference, and new tab/window creation will be ignored. Web page...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5d57c86d-7f35-4499-a743-3a67ccb8d19a
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,864
supabase-export-v2
339fc4c9b8cdf193
.. method:: controller.open(url, new=0, autoraise=True) Display *url* using the browser handled by this controller. If *new* is 1, a new browser window is opened if possible. If *new* is 2, a new browser page ("tab") is opened if possible.
trusted_official_docs
CPython Docs
.. method:: controller.open(url, new=0, autoraise=True) Display *url* using the browser handled by this controller. If *new* is 1, a new browser window is opened if possible. If *new* is 2, a new browser page ("tab") is opened if possible.
.. method:: controller.open(url, new=0, autoraise=True) Display *url* using the browser handled by this controller. If *new* is 1, a new browser window is opened if possible. If *new* is 2, a new browser page ("tab") is opened if possible.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7013b833-0110-41b6-89ef-85b89483be12
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,834
supabase-export-v2
4527c2622d6d8d90
Open *url* in a new window of the default browser, if possible, otherwise, open *url* in the only browser window. Returns ``True`` if a browser was successfully launched, ``False`` otherwise.
trusted_official_docs
CPython Docs
Open *url* in a new window of the default browser, if possible, otherwise, open *url* in the only browser window. Returns ``True`` if a browser was successfully launched, ``False`` otherwise.
Open *url* in a new window of the default browser, if possible, otherwise, open *url* in the only browser window. Returns ``True`` if a browser was successfully launched, ``False`` otherwise.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7eb6cf75-9b24-4d7e-abe7-43d5c11dc819
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,853
supabase-export-v2
c8f72d84b3307f2f
versionchanged:: 3.12 Support for several obsolete browsers has been removed. Removed browsers include Grail, Mosaic, Netscape, Galeon, Skipstone, Iceape, and Firefox versions 35 and below. .. versionchanged:: 3.13 Support for iOS has been added.
trusted_official_docs
CPython Docs
versionchanged:: 3.12 Support for several obsolete browsers has been removed. Removed browsers include Grail, Mosaic, Netscape, Galeon, Skipstone, Iceape, and Firefox versions 35 and below. .. versionchanged:: 3.13 Support for iOS has been added.
versionchanged:: 3.12 Support for several obsolete browsers has been removed. Removed browsers include Grail, Mosaic, Netscape, Galeon, Skipstone, Iceape, and Firefox versions 35 and below. .. versionchanged:: 3.13 Support for iOS has been added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
819c9b50-0c7c-46db-985d-88d354da4363
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,804
supabase-export-v2
d898360ac4ac72e9
-------------- The :mod:`!webbrowser` module provides a high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the :func:`.open` function from this module will do the right thing.
trusted_official_docs
CPython Docs
-------------- The :mod:`!webbrowser` module provides a high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the :func:`.open` function from this module will do the right thing.
-------------- The :mod:`!webbrowser` module provides a high-level interface to allow displaying web-based documents to users. Under most circumstances, simply calling the :func:`.open` function from this module will do the right thing.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8313a9bc-f684-4339-b8f0-5f6dd243b7ac
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,831
supabase-export-v2
7578eab7f9c15cd0
platforms, trying to open a filename using this function, may work and start the operating system's associated program. However, this is neither supported nor portable. .. audit-event:: webbrowser.open url webbrowser.open
trusted_official_docs
CPython Docs
platforms, trying to open a filename using this function, may work and start the operating system's associated program. However, this is neither supported nor portable. .. audit-event:: webbrowser.open url webbrowser.open
platforms, trying to open a filename using this function, may work and start the operating system's associated program. However, this is neither supported nor portable. .. audit-event:: webbrowser.open url webbrowser.open
python, official-docs, cpython, P0
Local_Trusted_Corpus
97869fc8-3ea3-4d21-810e-b44e4a948f4a
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,842
supabase-export-v2
59aba11e64fe7286
*constructor* will be called without parameters to create an instance when needed. If *instance* is provided, *constructor* will never be called, and may be ``None``. Setting *preferred* to ``True`` makes this browser a preferred result for a :func:`get` call with no argument. Otherwise, this entry point is only usef...
trusted_official_docs
CPython Docs
*constructor* will be called without parameters to create an instance when needed. If *instance* is provided, *constructor* will never be called, and may be ``None``. Setting *preferred* to ``True`` makes this browser a preferred result for a :func:`get` call with no argument. Otherwise, this entry point is only usef...
*constructor* will be called without parameters to create an instance when needed. If *instance* is provided, *constructor* will never be called, and may be ``None``. Setting *preferred* to ``True`` makes this browser a preferred result for a :func:`get` call with no argument. Otherwise, this entry point is only usef...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ddb8187-0f94-4712-a745-75ce8b0d8685
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,840
supabase-export-v2
30babbe5251fb84b
Return a controller object for the browser type *using*. If *using* is ``None``, return a controller for a default browser appropriate to the caller's environment. .. function:: register(name, constructor, instance=None, *, preferred=False)
trusted_official_docs
CPython Docs
Return a controller object for the browser type *using*. If *using* is ``None``, return a controller for a default browser appropriate to the caller's environment. .. function:: register(name, constructor, instance=None, *, preferred=False)
Return a controller object for the browser type *using*. If *using* is ``None``, return a controller for a default browser appropriate to the caller's environment. .. function:: register(name, constructor, instance=None, *, preferred=False)
python, official-docs, cpython, P0
Local_Trusted_Corpus
a179edc2-dae3-4db0-960f-5007ac663555
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,845
supabase-export-v2
a12bd6dd9cc7af25
gives the type names that may be passed to the :func:`get` function and the corresponding instantiations for the controller classes, all defined in this module. +------------------------+-----------------------------------------+-------+ | Type Name | Class Name | Notes | +========================+=====================...
trusted_official_docs
CPython Docs
gives the type names that may be passed to the :func:`get` function and the corresponding instantiations for the controller classes, all defined in this module. +------------------------+-----------------------------------------+-------+ | Type Name | Class Name | Notes | +========================+=====================...
gives the type names that may be passed to the :func:`get` function and the corresponding instantiations for the controller classes, all defined in this module. +------------------------+-----------------------------------------+-------+ | Type Name | Class Name | Notes | +========================+=====================...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae272908-616f-4e72-94fa-654696f9201c
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,808
supabase-export-v2
96cb122934461e1a
.. versionchanged:: 3.14 The :envvar:`BROWSER` variable can now also be used to reorder the list of platform defaults. This is particularly useful on macOS where the platform defaults do not refer to command-line tools on :envvar:`PATH`.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.14 The :envvar:`BROWSER` variable can now also be used to reorder the list of platform defaults. This is particularly useful on macOS where the platform defaults do not refer to command-line tools on :envvar:`PATH`.
.. versionchanged:: 3.14 The :envvar:`BROWSER` variable can now also be used to reorder the list of platform defaults. This is particularly useful on macOS where the platform defaults do not refer to command-line tools on :envvar:`PATH`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b69c4f57-6142-4096-bd0b-cf0d364e21c0
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,847
supabase-export-v2
a1487f0a01164857
Notes: (1) "Konqueror" is the file manager for the KDE desktop environment for Unix, and only makes sense to use if KDE is running. Some way of reliably detecting KDE would be nice; the :envvar:`!KDEDIR` variable is not sufficient. Note also that the name "kfm" is used even when using the :program:`konqueror` comma...
trusted_official_docs
CPython Docs
Notes: (1) "Konqueror" is the file manager for the KDE desktop environment for Unix, and only makes sense to use if KDE is running. Some way of reliably detecting KDE would be nice; the :envvar:`!KDEDIR` variable is not sufficient. Note also that the name "kfm" is used even when using the :program:`konqueror` comma...
Notes: (1) "Konqueror" is the file manager for the KDE desktop environment for Unix, and only makes sense to use if KDE is running. Some way of reliably detecting KDE would be nice; the :envvar:`!KDEDIR` variable is not sufficient. Note also that the name "kfm" is used even when using the :program:`konqueror` comma...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d098548f-1703-4962-a981-b8b07f0cd912
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,850
supabase-export-v2
04de5ef7ac049c47
(4) Only on iOS. .. versionadded:: 3.2 A new :class:`!MacOSXOSAScript` class has been added and is used on Mac instead of the previous :class:`!MacOSX` class. This adds support for opening browsers not currently set as the OS default.
trusted_official_docs
CPython Docs
(4) Only on iOS. .. versionadded:: 3.2 A new :class:`!MacOSXOSAScript` class has been added and is used on Mac instead of the previous :class:`!MacOSX` class. This adds support for opening browsers not currently set as the OS default.
(4) Only on iOS. .. versionadded:: 3.2 A new :class:`!MacOSXOSAScript` class has been added and is used on Mac instead of the previous :class:`!MacOSX` class. This adds support for opening browsers not currently set as the OS default.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d13f4c3f-74e0-4bcd-94a8-f2e2ddebe5ca
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,852
supabase-export-v2
8118649be0c7b1b9
.. versionadded:: 3.3 Support for Chrome/Chromium has been added. .. versionchanged:: 3.12 Support for several obsolete browsers has been removed. Removed browsers include Grail, Mosaic, Netscape, Galeon, Skipstone, Iceape, and Firefox versions 35 and below.
trusted_official_docs
CPython Docs
.. versionadded:: 3.3 Support for Chrome/Chromium has been added. .. versionchanged:: 3.12 Support for several obsolete browsers has been removed. Removed browsers include Grail, Mosaic, Netscape, Galeon, Skipstone, Iceape, and Firefox versions 35 and below.
.. versionadded:: 3.3 Support for Chrome/Chromium has been added. .. versionchanged:: 3.12 Support for several obsolete browsers has been removed. Removed browsers include Grail, Mosaic, Netscape, Galeon, Skipstone, Iceape, and Firefox versions 35 and below.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d28a76e9-2acb-4a97-81b3-9a977abf7854
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,828
supabase-export-v2
fc66a1f0e09dabaf
.. function:: open(url, new=0, autoraise=True) Display *url* using the default browser. If *new* is 0, the *url* is opened in the same browser window if possible. If *new* is 1, a new browser window is opened if possible. If *new* is 2, a new browser page ("tab") is opened if possible. If *autoraise* is ``True``, th...
trusted_official_docs
CPython Docs
.. function:: open(url, new=0, autoraise=True) Display *url* using the default browser. If *new* is 0, the *url* is opened in the same browser window if possible. If *new* is 1, a new browser window is opened if possible. If *new* is 2, a new browser page ("tab") is opened if possible. If *autoraise* is ``True``, th...
.. function:: open(url, new=0, autoraise=True) Display *url* using the default browser. If *new* is 0, the *url* is opened in the same browser window if possible. If *new* is 1, a new browser window is opened if possible. If *new* is 2, a new browser page ("tab") is opened if possible. If *autoraise* is ``True``, th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
edd01bf7-af9c-4a7e-ada5-13f244b7abdb
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,806
supabase-export-v2
8cbd2b16361b3001
are not available or an X11 display isn't available. If text-mode browsers are used, the calling process will block until the user exits the browser. If the environment variable :envvar:`BROWSER` exists, it is interpreted as the :data:`os.pathsep`-separated list of browsers to try ahead of the platform defaults. When t...
trusted_official_docs
CPython Docs
are not available or an X11 display isn't available. If text-mode browsers are used, the calling process will block until the user exits the browser. If the environment variable :envvar:`BROWSER` exists, it is interpreted as the :data:`os.pathsep`-separated list of browsers to try ahead of the platform defaults. When t...
are not available or an X11 display isn't available. If text-mode browsers are used, the calling process will block until the user exits the browser. If the environment variable :envvar:`BROWSER` exists, it is interpreted as the :data:`os.pathsep`-separated list of browsers to try ahead of the platform defaults. When t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f69b4206-f7d9-493f-a0bc-9e19c1e69ffd
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,841
supabase-export-v2
c00821f6ba2390d6
.. function:: register(name, constructor, instance=None, *, preferred=False) Register the browser type *name*. Once a browser type is registered, the :func:`get` function can return a controller for that browser type. If *instance* is not provided, or is ``None``, *constructor* will be called without parameters to c...
trusted_official_docs
CPython Docs
.. function:: register(name, constructor, instance=None, *, preferred=False) Register the browser type *name*. Once a browser type is registered, the :func:`get` function can return a controller for that browser type. If *instance* is not provided, or is ``None``, *constructor* will be called without parameters to c...
.. function:: register(name, constructor, instance=None, *, preferred=False) Register the browser type *name*. Once a browser type is registered, the :func:`get` function can return a controller for that browser type. If *instance* is not provided, or is ``None``, *constructor* will be called without parameters to c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fa1284aa-0439-4692-9713-4411bce2ec5c
CPython Docs
file://datasets/cpython/Doc/library/webbrowser.rst
unknown
8bda1d6a-dd7c-4625-aee2-c92ac8a5c7a8
51,830
supabase-export-v2
0e2b010d9390a928
Returns ``True`` if a browser was successfully launched, ``False`` otherwise. Note that on some platforms, trying to open a filename using this function, may work and start the operating system's associated program. However, this is neither supported nor portable.
trusted_official_docs
CPython Docs
Returns ``True`` if a browser was successfully launched, ``False`` otherwise. Note that on some platforms, trying to open a filename using this function, may work and start the operating system's associated program. However, this is neither supported nor portable.
Returns ``True`` if a browser was successfully launched, ``False`` otherwise. Note that on some platforms, trying to open a filename using this function, may work and start the operating system's associated program. However, this is neither supported nor portable.
python, official-docs, cpython, P0
Local_Trusted_Corpus
11183e68-128e-4224-bb24-65334370d4a1
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,890
supabase-export-v2
de75fd95afba944d
In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``. Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
trusted_official_docs
CPython Docs
In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``. Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``. Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, :attr:`~Complex.imag`, and :meth:`~Complex.conjugate`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
15a903b1-7fa0-438b-8af0-bc3282512c69
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,911
supabase-export-v2
c6b9680c805d6d43
def __add__(self, other): if isinstance(other, MyIntegral): return do_my_adding_stuff(self, other) elif isinstance(other, OtherTypeIKnowAbout): return do_my_other_adding_stuff(self, other) else: return NotImplemented def __radd__(self, other): if isinstance(other, MyIntegral): return do_my_adding_stuff(other, self) ...
trusted_official_docs
CPython Docs
def __add__(self, other): if isinstance(other, MyIntegral): return do_my_adding_stuff(self, other) elif isinstance(other, OtherTypeIKnowAbout): return do_my_other_adding_stuff(self, other) else: return NotImplemented def __radd__(self, other): if isinstance(other, MyIntegral): return do_my_adding_stuff(other, self) ...
def __add__(self, other): if isinstance(other, MyIntegral): return do_my_adding_stuff(self, other) elif isinstance(other, OtherTypeIKnowAbout): return do_my_other_adding_stuff(self, other) else: return NotImplemented def __radd__(self, other): if isinstance(other, MyIntegral): return do_my_adding_stuff(other, self) ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e700ca6-fde9-4966-bbdd-fa3e8b737bf2
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,899
supabase-export-v2
3956c846cbc7e7bd
.. class:: Integral Subtypes :class:`Rational` and adds a conversion to :class:`int`. Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``.
trusted_official_docs
CPython Docs
.. class:: Integral Subtypes :class:`Rational` and adds a conversion to :class:`int`. Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``.
.. class:: Integral Subtypes :class:`Rational` and adds a conversion to :class:`int`. Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ed6ffd1-17d1-49fe-ac1f-7c524ebe5a9b
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,908
supabase-export-v2
4984ffd7e1e0ceb5
Implementing the arithmetic operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We want to implement the arithmetic operations so that mixed-mode operations either call an implementation whose author knew about the types of both arguments, or convert both to the nearest built in type and do the operation there. For subty...
trusted_official_docs
CPython Docs
Implementing the arithmetic operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We want to implement the arithmetic operations so that mixed-mode operations either call an implementation whose author knew about the types of both arguments, or convert both to the nearest built in type and do the operation there. For subty...
Implementing the arithmetic operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We want to implement the arithmetic operations so that mixed-mode operations either call an implementation whose author knew about the types of both arguments, or convert both to the nearest built in type and do the operation there. For subty...
python, official-docs, cpython, P0
Local_Trusted_Corpus
36134f09-9d46-44be-8974-7abf439e0022
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,902
supabase-export-v2
5d6254d6e165ccc6
to the same values. This may be subtle if there are two different extensions of the real numbers. For example, :class:`fractions.Fraction` implements :func:`hash` as follows:: def __hash__(self): if self.denominator == 1: # Get integers right. return hash(self.numerator) # Expensive check, but definitely correct. if...
trusted_official_docs
CPython Docs
to the same values. This may be subtle if there are two different extensions of the real numbers. For example, :class:`fractions.Fraction` implements :func:`hash` as follows:: def __hash__(self): if self.denominator == 1: # Get integers right. return hash(self.numerator) # Expensive check, but definitely correct. if...
to the same values. This may be subtle if there are two different extensions of the real numbers. For example, :class:`fractions.Fraction` implements :func:`hash` as follows:: def __hash__(self): if self.denominator == 1: # Get integers right. return hash(self.numerator) # Expensive check, but definitely correct. if...
python, official-docs, cpython, P0
Local_Trusted_Corpus
380ade18-d86d-4600-98a7-6ba59e09b9b2
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,917
supabase-export-v2
a2308b35962b0323
elif isinstance(b, float): return fallback_operator(float(a), b) elif isinstance(b, complex): return fallback_operator(complex(a), b) else: return NotImplemented forward.__name__ = '__' + fallback_operator.__name__ + '__' forward.__doc__ = monomorphic_operator.__doc__ def reverse(b, a): if isinstance(a, Rational): # ...
trusted_official_docs
CPython Docs
elif isinstance(b, float): return fallback_operator(float(a), b) elif isinstance(b, complex): return fallback_operator(complex(a), b) else: return NotImplemented forward.__name__ = '__' + fallback_operator.__name__ + '__' forward.__doc__ = monomorphic_operator.__doc__ def reverse(b, a): if isinstance(a, Rational): # ...
elif isinstance(b, float): return fallback_operator(float(a), b) elif isinstance(b, complex): return fallback_operator(complex(a), b) else: return NotImplemented forward.__name__ = '__' + fallback_operator.__name__ + '__' forward.__doc__ = monomorphic_operator.__doc__ def reverse(b, a): if isinstance(a, Rational): # ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ca14bca-13cd-423f-a5bc-54a2313cac29
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,880
supabase-export-v2
91c3edb342991e5b
.. class:: Complex Subclasses of this type describe complex numbers and include the operations that work on the built-in :class:`complex` type. These are: conversions to :class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``, ``-``, ``*``, ``/``, ``**``, :func:`abs`, :meth:`conjugate`, ``==``, and ...
trusted_official_docs
CPython Docs
.. class:: Complex Subclasses of this type describe complex numbers and include the operations that work on the built-in :class:`complex` type. These are: conversions to :class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``, ``-``, ``*``, ``/``, ``**``, :func:`abs`, :meth:`conjugate`, ``==``, and ...
.. class:: Complex Subclasses of this type describe complex numbers and include the operations that work on the built-in :class:`complex` type. These are: conversions to :class:`complex` and :class:`bool`, :attr:`.real`, :attr:`.imag`, ``+``, ``-``, ``*``, ``/``, ``**``, :func:`abs`, :meth:`conjugate`, ``==``, and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
53123dfb-4ce7-484e-bc92-52f5d2fac301
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,901
supabase-export-v2
c274ced490ed8ab1
Notes for type implementers --------------------------- Implementers should be careful to make equal numbers equal and hash them to the same values. This may be subtle if there are two different extensions of the real numbers. For example, :class:`fractions.Fraction` implements :func:`hash` as follows::
trusted_official_docs
CPython Docs
Notes for type implementers --------------------------- Implementers should be careful to make equal numbers equal and hash them to the same values. This may be subtle if there are two different extensions of the real numbers. For example, :class:`fractions.Fraction` implements :func:`hash` as follows::
Notes for type implementers --------------------------- Implementers should be careful to make equal numbers equal and hash them to the same values. This may be subtle if there are two different extensions of the real numbers. For example, :class:`fractions.Fraction` implements :func:`hash` as follows::
python, official-docs, cpython, P0
Local_Trusted_Corpus
56ec84a2-f733-40fc-9053-aace44692e63
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,913
supabase-export-v2
8771e997831b4c82
instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: Complex``), and ``b : B <: Complex``. I'll consider ``a + b``: 1. If ``A`` defines an :meth:`~object.__add__` which accepts ``b``, all is well. 2. If ``A`` falls back to the boilerplate code, and it were to return a value from :meth:`~object.__add_...
trusted_official_docs
CPython Docs
instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: Complex``), and ``b : B <: Complex``. I'll consider ``a + b``: 1. If ``A`` defines an :meth:`~object.__add__` which accepts ``b``, all is well. 2. If ``A`` falls back to the boilerplate code, and it were to return a value from :meth:`~object.__add_...
instance of ``A``, which is a subtype of :class:`Complex` (``a : A <: Complex``), and ``b : B <: Complex``. I'll consider ``a + b``: 1. If ``A`` defines an :meth:`~object.__add__` which accepts ``b``, all is well. 2. If ``A`` falls back to the boilerplate code, and it were to return a value from :meth:`~object.__add_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
65cd54a7-8fb4-409c-a99d-c952488b5ff3
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,900
supabase-export-v2
643f334e94c49cf2
to :class:`int`. Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``. Notes for type implementers ---------------------------
trusted_official_docs
CPython Docs
to :class:`int`. Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``. Notes for type implementers ---------------------------
to :class:`int`. Provides defaults for :func:`float`, :attr:`~Rational.numerator`, and :attr:`~Rational.denominator`. Adds abstract methods for :func:`pow` with modulus and bit-string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``. Notes for type implementers ---------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
86a9d2b6-0ed2-4af6-ae78-7648a6ecbda4
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,916
supabase-export-v2
9c9c6ff33345c4fd
similar, it can be useful to define a helper function which generates the forward and reverse instances of any given operator. For example, :class:`fractions.Fraction` uses:: def _operator_fallbacks(monomorphic_operator, fallback_operator): def forward(a, b): if isinstance(b, (int, Fraction)): return monomorphic_ope...
trusted_official_docs
CPython Docs
similar, it can be useful to define a helper function which generates the forward and reverse instances of any given operator. For example, :class:`fractions.Fraction` uses:: def _operator_fallbacks(monomorphic_operator, fallback_operator): def forward(a, b): if isinstance(b, (int, Fraction)): return monomorphic_ope...
similar, it can be useful to define a helper function which generates the forward and reverse instances of any given operator. For example, :class:`fractions.Fraction` uses:: def _operator_fallbacks(monomorphic_operator, fallback_operator): def forward(a, b): if isinstance(b, (int, Fraction)): return monomorphic_ope...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d82c162-8104-4d73-a39b-04e46fe69061
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,912
supabase-export-v2
f33864d2369fa5f3
self) elif isinstance(other, Integral): return int(other) + int(self) elif isinstance(other, Real): return float(other) + float(self) elif isinstance(other, Complex): return complex(other) + complex(self) else: return NotImplemented There are 5 different cases for a mixed-type operation on subclasses of :class:`Complex...
trusted_official_docs
CPython Docs
self) elif isinstance(other, Integral): return int(other) + int(self) elif isinstance(other, Real): return float(other) + float(self) elif isinstance(other, Complex): return complex(other) + complex(self) else: return NotImplemented There are 5 different cases for a mixed-type operation on subclasses of :class:`Complex...
self) elif isinstance(other, Integral): return int(other) + int(self) elif isinstance(other, Real): return float(other) + float(self) elif isinstance(other, Complex): return complex(other) + complex(self) else: return NotImplemented There are 5 different cases for a mixed-type operation on subclasses of :class:`Complex...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9dc59dbf-309e-4785-a96b-7240ad2891fc
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,915
supabase-export-v2
a99f12d9d6bc381f
other knowledge, then the appropriate shared operation is the one involving the built in :class:`complex`, and both :meth:`~object.__radd__` s land there, so ``a+b == b+a``. Because most of the operations on any given type will be very similar, it can be useful to define a helper function which generates the forward an...
trusted_official_docs
CPython Docs
other knowledge, then the appropriate shared operation is the one involving the built in :class:`complex`, and both :meth:`~object.__radd__` s land there, so ``a+b == b+a``. Because most of the operations on any given type will be very similar, it can be useful to define a helper function which generates the forward an...
other knowledge, then the appropriate shared operation is the one involving the built in :class:`complex`, and both :meth:`~object.__radd__` s land there, so ``a+b == b+a``. Because most of the operations on any given type will be very similar, it can be useful to define a helper function which generates the forward an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b76e6c19-467c-4859-83ed-8f3facc912b8
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,875
supabase-export-v2
b99fc12ac588c7e9
-------------- The :mod:`!numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:`abstract base classes <abstract base class>` which progressively define more operations. None of the types defined in this module are intended to be instantiated.
trusted_official_docs
CPython Docs
-------------- The :mod:`!numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:`abstract base classes <abstract base class>` which progressively define more operations. None of the types defined in this module are intended to be instantiated.
-------------- The :mod:`!numbers` module (:pep:`3141`) defines a hierarchy of numeric :term:`abstract base classes <abstract base class>` which progressively define more operations. None of the types defined in this module are intended to be instantiated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9dd6b57-5f9a-47a0-bbe1-347976d8d109
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,914
supabase-export-v2
bb669a22b84f8e1c
tries ``B.__radd__`` before ``A.__add__``. This is ok, because it was implemented with knowledge of ``A``, so it can handle those instances before delegating to :class:`Complex`. If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, then the appropriate shared operation is the one involving the bui...
trusted_official_docs
CPython Docs
tries ``B.__radd__`` before ``A.__add__``. This is ok, because it was implemented with knowledge of ``A``, so it can handle those instances before delegating to :class:`Complex`. If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, then the appropriate shared operation is the one involving the bui...
tries ``B.__radd__`` before ``A.__add__``. This is ok, because it was implemented with knowledge of ``A``, so it can handle those instances before delegating to :class:`Complex`. If ``A <: Complex`` and ``B <: Real`` without sharing any other knowledge, then the appropriate shared operation is the one involving the bui...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c4529666-4a6b-46e1-93eb-2f601cb6d08f
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,904
supabase-export-v2
a17600160b9f49c0
Adding More Numeric ABCs ~~~~~~~~~~~~~~~~~~~~~~~~ There are, of course, more possible ABCs for numbers, and this would be a poor hierarchy if it precluded the possibility of adding those. You can add ``MyFoo`` between :class:`Complex` and :class:`Real` with::
trusted_official_docs
CPython Docs
Adding More Numeric ABCs ~~~~~~~~~~~~~~~~~~~~~~~~ There are, of course, more possible ABCs for numbers, and this would be a poor hierarchy if it precluded the possibility of adding those. You can add ``MyFoo`` between :class:`Complex` and :class:`Real` with::
Adding More Numeric ABCs ~~~~~~~~~~~~~~~~~~~~~~~~ There are, of course, more possible ABCs for numbers, and this would be a poor hierarchy if it precluded the possibility of adding those. You can add ``MyFoo`` between :class:`Complex` and :class:`Real` with::
python, official-docs, cpython, P0
Local_Trusted_Corpus
dbf8a10b-aa3d-42ee-8904-3714ecd219f8
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,893
supabase-export-v2
70773f5c2b1c2a89
Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and :attr:`~Rational.denominator` properties. It also provides a default for :func:`float`. The :attr:`~Rational.numerator` and :attr:`~Rational.denominator` values should be instances of :class:`Integral` and should be in lowest terms with :attr:`~Rational....
trusted_official_docs
CPython Docs
Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and :attr:`~Rational.denominator` properties. It also provides a default for :func:`float`. The :attr:`~Rational.numerator` and :attr:`~Rational.denominator` values should be instances of :class:`Integral` and should be in lowest terms with :attr:`~Rational....
Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and :attr:`~Rational.denominator` properties. It also provides a default for :func:`float`. The :attr:`~Rational.numerator` and :attr:`~Rational.denominator` values should be instances of :class:`Integral` and should be in lowest terms with :attr:`~Rational....
python, official-docs, cpython, P0
Local_Trusted_Corpus
dd2fb7e8-c975-49c2-85a2-73cbff76ef35
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,889
supabase-export-v2
7a0c97969ee2d409
To :class:`Complex`, :class:`!Real` adds the operations that work on real numbers. In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``.
trusted_official_docs
CPython Docs
To :class:`Complex`, :class:`!Real` adds the operations that work on real numbers. In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``.
To :class:`Complex`, :class:`!Real` adds the operations that work on real numbers. In short, those are: a conversion to :class:`float`, :func:`math.trunc`, :func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, ``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8d59365-7611-45c9-90dc-1517b99fce70
CPython Docs
file://datasets/cpython/Doc/library/numbers.rst
unknown
07951ada-bd02-4a9d-8490-a58b93cef57a
51,903
supabase-export-v2
5df54cced54e5048
correct. if self == float(self): return hash(float(self)) else: # Use tuple's hash to avoid a high collision rate on # simple fractions. return hash((self.numerator, self.denominator)) Adding More Numeric ABCs ~~~~~~~~~~~~~~~~~~~~~~~~
trusted_official_docs
CPython Docs
correct. if self == float(self): return hash(float(self)) else: # Use tuple's hash to avoid a high collision rate on # simple fractions. return hash((self.numerator, self.denominator)) Adding More Numeric ABCs ~~~~~~~~~~~~~~~~~~~~~~~~
correct. if self == float(self): return hash(float(self)) else: # Use tuple's hash to avoid a high collision rate on # simple fractions. return hash((self.numerator, self.denominator)) Adding More Numeric ABCs ~~~~~~~~~~~~~~~~~~~~~~~~
python, official-docs, cpython, P0
Local_Trusted_Corpus
493d2026-a673-414b-9b5a-9144d4ced220
CPython Docs
file://datasets/cpython/Doc/library/asyncio-platforms.rst
unknown
1b637aae-06c4-4929-8858-35468f3d0ce8
51,937
supabase-export-v2
f95942f085d89622
* :class:`~selectors.SelectSelector` is used to wait on socket events: it supports sockets and is limited to 512 sockets. * :meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket handles (e.g. pipe file descriptors are not supported).
trusted_official_docs
CPython Docs
* :class:`~selectors.SelectSelector` is used to wait on socket events: it supports sockets and is limited to 512 sockets. * :meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket handles (e.g. pipe file descriptors are not supported).
* :class:`~selectors.SelectSelector` is used to wait on socket events: it supports sockets and is limited to 512 sockets. * :meth:`loop.add_reader` and :meth:`loop.add_writer` only accept socket handles (e.g. pipe file descriptors are not supported).
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae21d915-e6fe-40bc-ba10-10abbe2f4ff0
CPython Docs
file://datasets/cpython/Doc/library/asyncio-platforms.rst
unknown
1b637aae-06c4-4929-8858-35468f3d0ce8
51,942
supabase-export-v2
99a87a1172dfcfb3
* The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not supported. The resolution of the monotonic clock on Windows is usually around 15.6 milliseconds. The best resolution is 0.5 milliseconds. The resolution depends on the hardware (availability of `HPET <https://en.wikipedia.org/wiki/High_Precision_...
trusted_official_docs
CPython Docs
* The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not supported. The resolution of the monotonic clock on Windows is usually around 15.6 milliseconds. The best resolution is 0.5 milliseconds. The resolution depends on the hardware (availability of `HPET <https://en.wikipedia.org/wiki/High_Precision_...
* The :meth:`loop.add_reader` and :meth:`loop.add_writer` methods are not supported. The resolution of the monotonic clock on Windows is usually around 15.6 milliseconds. The best resolution is 0.5 milliseconds. The resolution depends on the hardware (availability of `HPET <https://en.wikipedia.org/wiki/High_Precision_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f26f6180-4a3c-40db-aa4b-9595082164a9
CPython Docs
file://datasets/cpython/Doc/library/asyncio-platforms.rst
unknown
1b637aae-06c4-4929-8858-35468f3d0ce8
51,949
supabase-export-v2
e6c4772dfbcd5ba5
.. rubric:: macOS <= 10.8 On macOS 10.6, 10.7 and 10.8, the default event loop uses :class:`selectors.KqueueSelector`, which does not support character devices on these versions. The :class:`SelectorEventLoop` can be manually configured to use :class:`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to su...
trusted_official_docs
CPython Docs
.. rubric:: macOS <= 10.8 On macOS 10.6, 10.7 and 10.8, the default event loop uses :class:`selectors.KqueueSelector`, which does not support character devices on these versions. The :class:`SelectorEventLoop` can be manually configured to use :class:`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to su...
.. rubric:: macOS <= 10.8 On macOS 10.6, 10.7 and 10.8, the default event loop uses :class:`selectors.KqueueSelector`, which does not support character devices on these versions. The :class:`SelectorEventLoop` can be manually configured to use :class:`~selectors.SelectSelector` or :class:`~selectors.PollSelector` to su...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0513a6da-8f86-4db8-97bd-179b7c0cfd19
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,958
supabase-export-v2
c5b88592515b8ba3
-------------- This module defines classes that implement the client side of the HTTP and HTTPS protocols. It is normally not used directly --- the module :mod:`urllib.request` uses it to handle URLs that use HTTP and HTTPS.
trusted_official_docs
CPython Docs
-------------- This module defines classes that implement the client side of the HTTP and HTTPS protocols. It is normally not used directly --- the module :mod:`urllib.request` uses it to handle URLs that use HTTP and HTTPS.
-------------- This module defines classes that implement the client side of the HTTP and HTTPS protocols. It is normally not used directly --- the module :mod:`urllib.request` uses it to handle URLs that use HTTP and HTTPS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0f4d57ce-b7aa-4aae-bb19-f1ecfad4f6e0
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,992
supabase-export-v2
ff4ac5ccd0c8cf3b
the header fields, but no payload (the same as :attr:`HTTPResponse.msg` and :attr:`http.server.BaseHTTPRequestHandler.headers`). After returning, the file pointer *fp* is ready to read the HTTP body. .. note:: :meth:`parse_headers` does not parse the start-line of a HTTP message; it only parses the ``Name: value`` li...
trusted_official_docs
CPython Docs
the header fields, but no payload (the same as :attr:`HTTPResponse.msg` and :attr:`http.server.BaseHTTPRequestHandler.headers`). After returning, the file pointer *fp* is ready to read the HTTP body. .. note:: :meth:`parse_headers` does not parse the start-line of a HTTP message; it only parses the ``Name: value`` li...
the header fields, but no payload (the same as :attr:`HTTPResponse.msg` and :attr:`http.server.BaseHTTPRequestHandler.headers`). After returning, the file pointer *fp* is ready to read the HTTP body. .. note:: :meth:`parse_headers` does not parse the start-line of a HTTP message; it only parses the ``Name: value`` li...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ff551e8-5b23-4de7-91df-85066e3527a8
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,094
supabase-export-v2
c4d1b2a7eff9a0d9
HTTPResponse Objects -------------------- An :class:`HTTPResponse` instance wraps the HTTP response from the server. It provides access to the request headers and the entity body. The response is an iterable object and can be used in a with statement.
trusted_official_docs
CPython Docs
HTTPResponse Objects -------------------- An :class:`HTTPResponse` instance wraps the HTTP response from the server. It provides access to the request headers and the entity body. The response is an iterable object and can be used in a with statement.
HTTPResponse Objects -------------------- An :class:`HTTPResponse` instance wraps the HTTP response from the server. It provides access to the request headers and the entity body. The response is an iterable object and can be used in a with statement.
python, official-docs, cpython, P0
Local_Trusted_Corpus
110d4bbd-f360-496b-9389-d91640b7cb5c
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,060
supabase-export-v2
9d8eacc6a34c3887
as the destination for the CONNECT request. If a HTTP ``Host:`` header is not provided via the headers argument, one is generated and transmitted automatically. For example, to tunnel through a HTTPS proxy server running locally on port 8080, we would pass the address of the proxy to the :class:`HTTPSConnection` cons...
trusted_official_docs
CPython Docs
as the destination for the CONNECT request. If a HTTP ``Host:`` header is not provided via the headers argument, one is generated and transmitted automatically. For example, to tunnel through a HTTPS proxy server running locally on port 8080, we would pass the address of the proxy to the :class:`HTTPSConnection` cons...
as the destination for the CONNECT request. If a HTTP ``Host:`` header is not provided via the headers argument, one is generated and transmitted automatically. For example, to tunnel through a HTTPS proxy server running locally on port 8080, we would pass the address of the proxy to the :class:`HTTPSConnection` cons...
python, official-docs, cpython, P0
Local_Trusted_Corpus
169025c2-4a23-4783-8f44-e62b1b79aa5a
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,987
supabase-export-v2
b82df1ab458f689f
Class whose instances are returned upon successful connection. Not instantiated directly by user. .. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9 style "Simple Responses" are no longer supported.
trusted_official_docs
CPython Docs
Class whose instances are returned upon successful connection. Not instantiated directly by user. .. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9 style "Simple Responses" are no longer supported.
Class whose instances are returned upon successful connection. Not instantiated directly by user. .. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9 style "Simple Responses" are no longer supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e6f1e6e-ef73-4a94-b0be-9b6ba86bc3d9
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,967
supabase-export-v2
c46cfea6a4c8f304
the source address the HTTP connection is made from. The optional *blocksize* parameter sets the buffer size in bytes for sending a file-like message body. The optional *max_response_headers* parameter sets the maximum number of allowed response headers to help prevent denial-of-service attacks, otherwise the default...
trusted_official_docs
CPython Docs
the source address the HTTP connection is made from. The optional *blocksize* parameter sets the buffer size in bytes for sending a file-like message body. The optional *max_response_headers* parameter sets the maximum number of allowed response headers to help prevent denial-of-service attacks, otherwise the default...
the source address the HTTP connection is made from. The optional *blocksize* parameter sets the buffer size in bytes for sending a file-like message body. The optional *max_response_headers* parameter sets the maximum number of allowed response headers to help prevent denial-of-service attacks, otherwise the default...
python, official-docs, cpython, P0
Local_Trusted_Corpus
20ab65ed-db2e-4993-8e8b-0c679d01ad26
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,046
supabase-export-v2
c19879d399195d47
must have read the whole response or call :meth:`close` if :meth:`getresponse` raised an non-:exc:`ConnectionError` exception before you can send a new request to the server. .. versionchanged:: 3.2 *body* can now be an iterable.
trusted_official_docs
CPython Docs
must have read the whole response or call :meth:`close` if :meth:`getresponse` raised an non-:exc:`ConnectionError` exception before you can send a new request to the server. .. versionchanged:: 3.2 *body* can now be an iterable.
must have read the whole response or call :meth:`close` if :meth:`getresponse` raised an non-:exc:`ConnectionError` exception before you can send a new request to the server. .. versionchanged:: 3.2 *body* can now be an iterable.
python, official-docs, cpython, P0
Local_Trusted_Corpus
224addaf-9857-494c-90ef-d9e1bd6b4cc2
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,980
supabase-export-v2
f887269620ce4167
.. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are no longer supported. .. versionchanged:: 3.4.3 This class now performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior :func:`!ssl._create_unverified_context...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are no longer supported. .. versionchanged:: 3.4.3 This class now performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior :func:`!ssl._create_unverified_context...
.. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are no longer supported. .. versionchanged:: 3.4.3 This class now performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior :func:`!ssl._create_unverified_context...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2332982e-ea4e-49d1-842e-b7d1a9f2bec1
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,083
supabase-export-v2
fc0c3e28a2992529
.. method:: HTTPConnection.putheader(header, argument[, ...]) Send an :rfc:`822`\ -style header to the server. It sends a line to the server consisting of the header, a colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument.
trusted_official_docs
CPython Docs
.. method:: HTTPConnection.putheader(header, argument[, ...]) Send an :rfc:`822`\ -style header to the server. It sends a line to the server consisting of the header, a colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument.
.. method:: HTTPConnection.putheader(header, argument[, ...]) Send an :rfc:`822`\ -style header to the server. It sends a line to the server consisting of the header, a colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
26ffcbcc-a4a3-442d-89a2-529a7d169f20
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,976
supabase-export-v2
554e3ae9d98f542c
SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it must be a :class:`ssl.SSLContext` instance describing the various SSL options. Please read :ref:`ssl-security` for more information on best practices.
trusted_official_docs
CPython Docs
SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it must be a :class:`ssl.SSLContext` instance describing the various SSL options. Please read :ref:`ssl-security` for more information on best practices.
SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it must be a :class:`ssl.SSLContext` instance describing the various SSL options. Please read :ref:`ssl-security` for more information on best practices.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2869ffbf-2e25-418d-b471-0e63faeb6a7e
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,981
supabase-export-v2
63b28742de6b7fb4
performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior :func:`!ssl._create_unverified_context` can be passed to the *context* parameter. .. versionchanged:: 3.8 This class now enables TLS 1.3 :attr:`ssl.SSLContext.post_handshake_auth` for the default *co...
trusted_official_docs
CPython Docs
performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior :func:`!ssl._create_unverified_context` can be passed to the *context* parameter. .. versionchanged:: 3.8 This class now enables TLS 1.3 :attr:`ssl.SSLContext.post_handshake_auth` for the default *co...
performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior :func:`!ssl._create_unverified_context` can be passed to the *context* parameter. .. versionchanged:: 3.8 This class now enables TLS 1.3 :attr:`ssl.SSLContext.post_handshake_auth` for the default *co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ab95aa4-82ad-46bf-ae3b-ffbefc965fbd
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,975
supabase-export-v2
420556b6ade21a17
.. class:: HTTPSConnection(host, port=None, *[, timeout], \ source_address=None, context=None, \ blocksize=8192, max_response_headers=None) A subclass of :class:`HTTPConnection` that uses SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it must be a :class:`ssl.SSLContext...
trusted_official_docs
CPython Docs
.. class:: HTTPSConnection(host, port=None, *[, timeout], \ source_address=None, context=None, \ blocksize=8192, max_response_headers=None) A subclass of :class:`HTTPConnection` that uses SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it must be a :class:`ssl.SSLContext...
.. class:: HTTPSConnection(host, port=None, *[, timeout], \ source_address=None, context=None, \ blocksize=8192, max_response_headers=None) A subclass of :class:`HTTPConnection` that uses SSL for communication with secure servers. Default port is ``443``. If *context* is specified, it must be a :class:`ssl.SSLContext...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3453e64e-6aa6-4948-8e8c-6c98c56e8f18
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,134
supabase-export-v2
2b6731fda9476c3c
http.client.HTTPSConnection("www.python.org") >>> conn.request("HEAD", "/") >>> res = conn.getresponse() >>> print(res.status, res.reason) 200 OK >>> data = res.read() >>> print(len(data)) 0 >>> data == b'' True Here is an example session that uses the ``POST`` method::
trusted_official_docs
CPython Docs
http.client.HTTPSConnection("www.python.org") >>> conn.request("HEAD", "/") >>> res = conn.getresponse() >>> print(res.status, res.reason) 200 OK >>> data = res.read() >>> print(len(data)) 0 >>> data == b'' True Here is an example session that uses the ``POST`` method::
http.client.HTTPSConnection("www.python.org") >>> conn.request("HEAD", "/") >>> res = conn.getresponse() >>> print(res.status, res.reason) 200 OK >>> data = res.read() >>> print(len(data)) 0 >>> data == b'' True Here is an example session that uses the ``POST`` method::
python, official-docs, cpython, P0
Local_Trusted_Corpus
3a09df14-a05c-43ee-a16b-58bf4b95fc07
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,057
supabase-export-v2
70b3e5e05a6f8ea6
Set the host and the port for HTTP Connect Tunnelling. This allows running the connection through a proxy server. The *host* and *port* arguments specify the endpoint of the tunneled connection (i.e. the address included in the CONNECT request, *not* the address of the proxy server).
trusted_official_docs
CPython Docs
Set the host and the port for HTTP Connect Tunnelling. This allows running the connection through a proxy server. The *host* and *port* arguments specify the endpoint of the tunneled connection (i.e. the address included in the CONNECT request, *not* the address of the proxy server).
Set the host and the port for HTTP Connect Tunnelling. This allows running the connection through a proxy server. The *host* and *port* arguments specify the endpoint of the tunneled connection (i.e. the address included in the CONNECT request, *not* the address of the proxy server).
python, official-docs, cpython, P0
Local_Trusted_Corpus
3f830451-4d3c-4377-a2e3-741f5e1609df
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,102
supabase-export-v2
caa77d8a7dc3a713
.. method:: HTTPResponse.getheader(name, default=None) Return the value of the header *name*, or *default* if there is no header matching *name*. If there is more than one header with the name *name*, return all of the values joined by ', '. If *default* is any iterable other than a single string, its elements are s...
trusted_official_docs
CPython Docs
.. method:: HTTPResponse.getheader(name, default=None) Return the value of the header *name*, or *default* if there is no header matching *name*. If there is more than one header with the name *name*, return all of the values joined by ', '. If *default* is any iterable other than a single string, its elements are s...
.. method:: HTTPResponse.getheader(name, default=None) Return the value of the header *name*, or *default* if there is no header matching *name*. If there is more than one header with the name *name*, return all of the values joined by ', '. If *default* is any iterable other than a single string, its elements are s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4221a6e3-583c-4672-bd25-6bc581aa321a
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,084
supabase-export-v2
936dd294b44397f6
colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument. .. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False)
trusted_official_docs
CPython Docs
colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument. .. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False)
colon and a space, and the first argument. If more arguments are given, continuation lines are sent, each consisting of a tab and an argument. .. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False)
python, official-docs, cpython, P0
Local_Trusted_Corpus
422665f9-26d5-42e3-9370-c90320f12496
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,979
supabase-export-v2
d376b3e760a5502b
.. versionchanged:: 3.2 This class now supports HTTPS virtual hosts if possible (that is, if :const:`ssl.HAS_SNI` is true). .. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are no longer supported.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.2 This class now supports HTTPS virtual hosts if possible (that is, if :const:`ssl.HAS_SNI` is true). .. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are no longer supported.
.. versionchanged:: 3.2 This class now supports HTTPS virtual hosts if possible (that is, if :const:`ssl.HAS_SNI` is true). .. versionchanged:: 3.4 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are no longer supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
471b3e8b-5bd3-442f-8f8c-237dbead52c3
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,061
supabase-export-v2
b97f561c4ec01f67
the address of the proxy to the :class:`HTTPSConnection` constructor, and the address of the host that we eventually want to reach to the :meth:`~HTTPConnection.set_tunnel` method:: >>> import http.client >>> conn = http.client.HTTPSConnection("localhost", 8080) >>> conn.set_tunnel("www.python.org") >>> conn.request...
trusted_official_docs
CPython Docs
the address of the proxy to the :class:`HTTPSConnection` constructor, and the address of the host that we eventually want to reach to the :meth:`~HTTPConnection.set_tunnel` method:: >>> import http.client >>> conn = http.client.HTTPSConnection("localhost", 8080) >>> conn.set_tunnel("www.python.org") >>> conn.request...
the address of the proxy to the :class:`HTTPSConnection` constructor, and the address of the host that we eventually want to reach to the :meth:`~HTTPConnection.set_tunnel` method:: >>> import http.client >>> conn = http.client.HTTPSConnection("localhost", 8080) >>> conn.set_tunnel("www.python.org") >>> conn.request...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ad3ae6a-ba34-44b5-a0a9-4ba84209cf48
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,991
supabase-export-v2
72bf3f61d279b725
pointer *fp* representing a HTTP request/response. The file has to be a :class:`~io.BufferedIOBase` reader (i.e. not text) and must provide a valid :rfc:`5322` style header. This function returns an instance of :class:`http.client.HTTPMessage` that holds the header fields, but no payload (the same as :attr:`HTTPRespo...
trusted_official_docs
CPython Docs
pointer *fp* representing a HTTP request/response. The file has to be a :class:`~io.BufferedIOBase` reader (i.e. not text) and must provide a valid :rfc:`5322` style header. This function returns an instance of :class:`http.client.HTTPMessage` that holds the header fields, but no payload (the same as :attr:`HTTPRespo...
pointer *fp* representing a HTTP request/response. The file has to be a :class:`~io.BufferedIOBase` reader (i.e. not text) and must provide a valid :rfc:`5322` style header. This function returns an instance of :class:`http.client.HTTPMessage` that holds the header fields, but no payload (the same as :attr:`HTTPRespo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ffc78f3-706e-4b9f-af07-a198eb75c74a
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,082
supabase-export-v2
ca50260c1a8e5b38
version (``HTTP/1.1``). To disable automatic sending of ``Host:`` or ``Accept-Encoding:`` headers (for example to accept additional content encodings), specify *skip_host* or *skip_accept_encoding* with non-False values. .. method:: HTTPConnection.putheader(header, argument[, ...])
trusted_official_docs
CPython Docs
version (``HTTP/1.1``). To disable automatic sending of ``Host:`` or ``Accept-Encoding:`` headers (for example to accept additional content encodings), specify *skip_host* or *skip_accept_encoding* with non-False values. .. method:: HTTPConnection.putheader(header, argument[, ...])
version (``HTTP/1.1``). To disable automatic sending of ``Host:`` or ``Accept-Encoding:`` headers (for example to accept additional content encodings), specify *skip_host* or *skip_accept_encoding* with non-False values. .. method:: HTTPConnection.putheader(header, argument[, ...])
python, official-docs, cpython, P0
Local_Trusted_Corpus
56bf5683-9d08-4add-9781-6cb5e7d10273
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,085
supabase-export-v2
ef7fa3ad798020e5
.. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False) Send a blank line to the server, signalling the end of the headers. The optional *message_body* argument can be used to pass a message body associated with the request.
trusted_official_docs
CPython Docs
.. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False) Send a blank line to the server, signalling the end of the headers. The optional *message_body* argument can be used to pass a message body associated with the request.
.. method:: HTTPConnection.endheaders(message_body=None, *, encode_chunked=False) Send a blank line to the server, signalling the end of the headers. The optional *message_body* argument can be used to pass a message body associated with the request.
python, official-docs, cpython, P0
Local_Trusted_Corpus
58369e7e-1608-4904-b6b7-b4d3ef1411ee
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,021
supabase-export-v2
c3b52e6d782ed6c4
.. exception:: RemoteDisconnected A subclass of :exc:`ConnectionResetError` and :exc:`BadStatusLine`. Raised by :meth:`HTTPConnection.getresponse` when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection.
trusted_official_docs
CPython Docs
.. exception:: RemoteDisconnected A subclass of :exc:`ConnectionResetError` and :exc:`BadStatusLine`. Raised by :meth:`HTTPConnection.getresponse` when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection.
.. exception:: RemoteDisconnected A subclass of :exc:`ConnectionResetError` and :exc:`BadStatusLine`. Raised by :meth:`HTTPConnection.getresponse` when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection.
python, official-docs, cpython, P0
Local_Trusted_Corpus
587b6284-be98-4ad0-8228-8e3917c7e808
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,051
supabase-export-v2
04c326805b704e43
.. versionchanged:: 3.5 If a :exc:`ConnectionError` or subclass is raised, the :class:`HTTPConnection` object will be ready to reconnect when a new request is sent. Note that this does not apply to :exc:`OSError`\s raised by the underlying socket. Instead the caller is responsible to call :meth:`close` on the existin...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5 If a :exc:`ConnectionError` or subclass is raised, the :class:`HTTPConnection` object will be ready to reconnect when a new request is sent. Note that this does not apply to :exc:`OSError`\s raised by the underlying socket. Instead the caller is responsible to call :meth:`close` on the existin...
.. versionchanged:: 3.5 If a :exc:`ConnectionError` or subclass is raised, the :class:`HTTPConnection` object will be ready to reconnect when a new request is sent. Note that this does not apply to :exc:`OSError`\s raised by the underlying socket. Instead the caller is responsible to call :meth:`close` on the existin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5f8784cf-68c9-44a5-9cc3-5e4e2b9e73fd
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
51,966
supabase-export-v2
5647b7713593479d
.. class:: HTTPConnection(host, port=None[, timeout], source_address=None, \ blocksize=8192, max_response_headers=None) An :class:`HTTPConnection` instance represents one transaction with an HTTP server. It should be instantiated by passing it a host and optional port number. If no port number is passed, the port is ...
trusted_official_docs
CPython Docs
.. class:: HTTPConnection(host, port=None[, timeout], source_address=None, \ blocksize=8192, max_response_headers=None) An :class:`HTTPConnection` instance represents one transaction with an HTTP server. It should be instantiated by passing it a host and optional port number. If no port number is passed, the port is ...
.. class:: HTTPConnection(host, port=None[, timeout], source_address=None, \ blocksize=8192, max_response_headers=None) An :class:`HTTPConnection` instance represents one transaction with an HTTP server. It should be instantiated by passing it a host and optional port number. If no port number is passed, the port is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
61feba5a-e3eb-4d99-9e15-041bffc4a33b
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,135
supabase-export-v2
0f069ecb84ae7afe
Here is an example session that uses the ``POST`` method:: >>> import http.client, urllib.parse >>> params = urllib.parse.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'}) >>> headers = {"Content-type": "application/x-www-form-urlencoded", ... "Accept": "text/plain"} >>> conn = http.client.HTTPConn...
trusted_official_docs
CPython Docs
Here is an example session that uses the ``POST`` method:: >>> import http.client, urllib.parse >>> params = urllib.parse.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'}) >>> headers = {"Content-type": "application/x-www-form-urlencoded", ... "Accept": "text/plain"} >>> conn = http.client.HTTPConn...
Here is an example session that uses the ``POST`` method:: >>> import http.client, urllib.parse >>> params = urllib.parse.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'}) >>> headers = {"Content-type": "application/x-www-form-urlencoded", ... "Accept": "text/plain"} >>> conn = http.client.HTTPConn...
python, official-docs, cpython, P0
Local_Trusted_Corpus
67d5110d-e797-4caa-a293-0ab33003b46e
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,086
supabase-export-v2
b3ff35b46fc456f3
to the server, signalling the end of the headers. The optional *message_body* argument can be used to pass a message body associated with the request. If *encode_chunked* is ``True``, the result of each iteration of *message_body* will be chunk-encoded as specified in :rfc:`7230`, Section 3.3.1. How the data is encod...
trusted_official_docs
CPython Docs
to the server, signalling the end of the headers. The optional *message_body* argument can be used to pass a message body associated with the request. If *encode_chunked* is ``True``, the result of each iteration of *message_body* will be chunk-encoded as specified in :rfc:`7230`, Section 3.3.1. How the data is encod...
to the server, signalling the end of the headers. The optional *message_body* argument can be used to pass a message body associated with the request. If *encode_chunked* is ``True``, the result of each iteration of *message_body* will be chunk-encoded as specified in :rfc:`7230`, Section 3.3.1. How the data is encod...
python, official-docs, cpython, P0
Local_Trusted_Corpus
67fb90d7-aa8c-4be4-8c28-fb43f41606bd
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,022
supabase-export-v2
ef8cbd35bd25e17d
:meth:`HTTPConnection.getresponse` when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection. .. versionadded:: 3.5 Previously, :exc:`BadStatusLine`\ ``('')`` was raised.
trusted_official_docs
CPython Docs
:meth:`HTTPConnection.getresponse` when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection. .. versionadded:: 3.5 Previously, :exc:`BadStatusLine`\ ``('')`` was raised.
:meth:`HTTPConnection.getresponse` when the attempt to read the response results in no data read from the connection, indicating that the remote end has closed the connection. .. versionadded:: 3.5 Previously, :exc:`BadStatusLine`\ ``('')`` was raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6c7143e5-bf59-4ed4-9a78-4aebdd23d83a
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,047
supabase-export-v2
36e93d5f31cdbad1
.. versionchanged:: 3.2 *body* can now be an iterable. .. versionchanged:: 3.6 If neither Content-Length nor Transfer-Encoding are set in *headers*, file and iterable *body* objects are now chunk-encoded. The *encode_chunked* argument was added. No attempt is made to determine the Content-Length for file objects.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.2 *body* can now be an iterable. .. versionchanged:: 3.6 If neither Content-Length nor Transfer-Encoding are set in *headers*, file and iterable *body* objects are now chunk-encoded. The *encode_chunked* argument was added. No attempt is made to determine the Content-Length for file objects.
.. versionchanged:: 3.2 *body* can now be an iterable. .. versionchanged:: 3.6 If neither Content-Length nor Transfer-Encoding are set in *headers*, file and iterable *body* objects are now chunk-encoded. The *encode_chunked* argument was added. No attempt is made to determine the Content-Length for file objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
73a0b35b-a4a3-4d97-bacc-488c526443b6
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,095
supabase-export-v2
65a420bd4ae9196d
It provides access to the request headers and the entity body. The response is an iterable object and can be used in a with statement. .. versionchanged:: 3.5 The :class:`io.BufferedIOBase` interface is now implemented and all of its reader operations are supported.
trusted_official_docs
CPython Docs
It provides access to the request headers and the entity body. The response is an iterable object and can be used in a with statement. .. versionchanged:: 3.5 The :class:`io.BufferedIOBase` interface is now implemented and all of its reader operations are supported.
It provides access to the request headers and the entity body. The response is an iterable object and can be used in a with statement. .. versionchanged:: 3.5 The :class:`io.BufferedIOBase` interface is now implemented and all of its reader operations are supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
812c76d7-950f-4edf-a698-a89464dff964
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,136
supabase-export-v2
a0da3355b2e87c68
conn.request("POST", "", params, headers) >>> response = conn.getresponse() >>> print(response.status, response.reason) 302 Found >>> data = response.read() >>> data b'Redirecting to <a href="https://bugs.python.org/issue12524">https://bugs.python.org/issue12524</a>' >>> conn.close() Client side HTTP ``PUT`` requests a...
trusted_official_docs
CPython Docs
conn.request("POST", "", params, headers) >>> response = conn.getresponse() >>> print(response.status, response.reason) 302 Found >>> data = response.read() >>> data b'Redirecting to <a href="https://bugs.python.org/issue12524">https://bugs.python.org/issue12524</a>' >>> conn.close() Client side HTTP ``PUT`` requests a...
conn.request("POST", "", params, headers) >>> response = conn.getresponse() >>> print(response.status, response.reason) 302 Found >>> data = response.read() >>> data b'Redirecting to <a href="https://bugs.python.org/issue12524">https://bugs.python.org/issue12524</a>' >>> conn.close() Client side HTTP ``PUT`` requests a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
81ef1f35-06eb-49fc-9f83-6f3c3c73c488
CPython Docs
file://datasets/cpython/Doc/library/http.client.rst
unknown
bc479acd-6418-4552-a88b-2ce53eb05e19
52,041
supabase-export-v2
2779f06ee2127478
*encode_chunked* is ``False``, the HTTPConnection object assumes that all encoding is handled by the calling code. If it is ``True``, the body will be chunk-encoded. For example, to perform a ``GET`` request to ``https://docs.python.org/3/``::
trusted_official_docs
CPython Docs
*encode_chunked* is ``False``, the HTTPConnection object assumes that all encoding is handled by the calling code. If it is ``True``, the body will be chunk-encoded. For example, to perform a ``GET`` request to ``https://docs.python.org/3/``::
*encode_chunked* is ``False``, the HTTPConnection object assumes that all encoding is handled by the calling code. If it is ``True``, the body will be chunk-encoded. For example, to perform a ``GET`` request to ``https://docs.python.org/3/``::
python, official-docs, cpython, P0
Local_Trusted_Corpus