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
7190cfa5-1b9d-494c-a221-7a0a13522d74
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,137
supabase-export-v2
e09bcb42b1faa319
thus opens a UDP socket. To open a TCP socket (for use with the newer syslog daemons such as rsyslog), specify a value of :const:`socket.SOCK_STREAM`. If *timeout* is specified, it sets a timeout (in seconds) for the socket operations. This can help prevent the program from hanging indefinitely if the syslog server is ...
trusted_official_docs
CPython Docs
thus opens a UDP socket. To open a TCP socket (for use with the newer syslog daemons such as rsyslog), specify a value of :const:`socket.SOCK_STREAM`. If *timeout* is specified, it sets a timeout (in seconds) for the socket operations. This can help prevent the program from hanging indefinitely if the syslog server is ...
thus opens a UDP socket. To open a TCP socket (for use with the newer syslog daemons such as rsyslog), specify a value of :const:`socket.SOCK_STREAM`. If *timeout* is specified, it sets a timeout (in seconds) for the socket operations. This can help prevent the program from hanging indefinitely if the syslog server is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
72d97d6e-bf81-46bb-9860-aa898c7acc7b
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,188
supabase-export-v2
0b41d4d41419ba68
MemoryHandler ^^^^^^^^^^^^^ The :class:`MemoryHandler` class, located in the :mod:`!logging.handlers` module, supports buffering of logging records in memory, periodically flushing them to a :dfn:`target` handler. Flushing occurs whenever the buffer is full, or when an event of a certain severity or greater is seen.
trusted_official_docs
CPython Docs
MemoryHandler ^^^^^^^^^^^^^ The :class:`MemoryHandler` class, located in the :mod:`!logging.handlers` module, supports buffering of logging records in memory, periodically flushing them to a :dfn:`target` handler. Flushing occurs whenever the buffer is full, or when an event of a certain severity or greater is seen.
MemoryHandler ^^^^^^^^^^^^^ The :class:`MemoryHandler` class, located in the :mod:`!logging.handlers` module, supports buffering of logging records in memory, periodically flushing them to a :dfn:`target` handler. Flushing occurs whenever the buffer is full, or when an event of a certain severity or greater is seen.
python, official-docs, cpython, P0
Local_Trusted_Corpus
76a38c7f-0267-4080-a8a0-ed034bf24cb0
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,075
supabase-export-v2
dd93e7de9a99e06c
and used as the stream for logging. On rotating it also sets the filename suffix. Rotating happens based on the product of *when* and *interval*. You can use the *when* to specify the type of *interval*. The list of possible values is below. Note that they are not case sensitive.
trusted_official_docs
CPython Docs
and used as the stream for logging. On rotating it also sets the filename suffix. Rotating happens based on the product of *when* and *interval*. You can use the *when* to specify the type of *interval*. The list of possible values is below. Note that they are not case sensitive.
and used as the stream for logging. On rotating it also sets the filename suffix. Rotating happens based on the product of *when* and *interval*. You can use the *when* to specify the type of *interval*. The list of possible values is below. Note that they are not case sensitive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
76d4dc5c-866d-4f7f-be5b-332b28f98030
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,034
supabase-export-v2
ae2c5c079514c206
this attribute is set to a callable, the :meth:`rotation_filename` method delegates to this callable. The parameters passed to the callable are those passed to :meth:`rotation_filename`. .. note:: The namer function is called quite a few times during rollover, so it should be as simple and as fast as possible. It shou...
trusted_official_docs
CPython Docs
this attribute is set to a callable, the :meth:`rotation_filename` method delegates to this callable. The parameters passed to the callable are those passed to :meth:`rotation_filename`. .. note:: The namer function is called quite a few times during rollover, so it should be as simple and as fast as possible. It shou...
this attribute is set to a callable, the :meth:`rotation_filename` method delegates to this callable. The parameters passed to the callable are those passed to :meth:`rotation_filename`. .. note:: The namer function is called quite a few times during rollover, so it should be as simple and as fast as possible. It shou...
python, official-docs, cpython, P0
Local_Trusted_Corpus
794c61cd-b62d-430b-9dd1-a4ae17197e38
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,085
supabase-export-v2
1d0d58db1dd43411
If *errors* is specified, it's used to determine how encoding errors are handled. .. note:: Calculation of the initial rollover time is done when the handler is initialised. Calculation of subsequent rollover times is done only when rollover occurs, and rollover occurs only when emitting output. If this is not kept ...
trusted_official_docs
CPython Docs
If *errors* is specified, it's used to determine how encoding errors are handled. .. note:: Calculation of the initial rollover time is done when the handler is initialised. Calculation of subsequent rollover times is done only when rollover occurs, and rollover occurs only when emitting output. If this is not kept ...
If *errors* is specified, it's used to determine how encoding errors are handled. .. note:: Calculation of the initial rollover time is done when the handler is initialised. Calculation of subsequent rollover times is done only when rollover occurs, and rollover occurs only when emitting output. If this is not kept ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7b0ac65d-dba9-4577-a7e3-a3719484260d
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,164
supabase-export-v2
162af854d048d4f7
a local Windows NT, Windows 2000 or Windows XP event log. Before you can use it, you need Mark Hammond's Win32 extensions for Python installed. .. class:: NTEventLogHandler(appname, dllname=None, logtype='Application')
trusted_official_docs
CPython Docs
a local Windows NT, Windows 2000 or Windows XP event log. Before you can use it, you need Mark Hammond's Win32 extensions for Python installed. .. class:: NTEventLogHandler(appname, dllname=None, logtype='Application')
a local Windows NT, Windows 2000 or Windows XP event log. Before you can use it, you need Mark Hammond's Win32 extensions for Python installed. .. class:: NTEventLogHandler(appname, dllname=None, logtype='Application')
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c76801b-59c2-468b-bdd7-486b40454f62
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,139
supabase-export-v2
bc508769fc54adda
do this check at runtime if your application needs to run on several platforms). On Windows, you pretty much have to use the UDP option. .. note:: On macOS 12.x (Monterey), Apple has changed the behaviour of their syslog daemon - it no longer listens on a domain socket. Therefore, you cannot expect :class:`SysLogHand...
trusted_official_docs
CPython Docs
do this check at runtime if your application needs to run on several platforms). On Windows, you pretty much have to use the UDP option. .. note:: On macOS 12.x (Monterey), Apple has changed the behaviour of their syslog daemon - it no longer listens on a domain socket. Therefore, you cannot expect :class:`SysLogHand...
do this check at runtime if your application needs to run on several platforms). On Windows, you pretty much have to use the UDP option. .. note:: On macOS 12.x (Monterey), Apple has changed the behaviour of their syslog daemon - it no longer listens on a domain socket. Therefore, you cannot expect :class:`SysLogHand...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e678155-bb51-4d06-8b2a-6e51d94b4d12
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,987
supabase-export-v2
91080e2205f4c3ef
Sets the instance's stream to the specified value, if it is different. The old stream is flushed before the new stream is set. :param stream: The stream that the handler should use.
trusted_official_docs
CPython Docs
Sets the instance's stream to the specified value, if it is different. The old stream is flushed before the new stream is set. :param stream: The stream that the handler should use.
Sets the instance's stream to the specified value, if it is different. The old stream is flushed before the new stream is set. :param stream: The stream that the handler should use.
python, official-docs, cpython, P0
Local_Trusted_Corpus
82d0d766-621f-4e9e-8081-82c8cc43d108
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,156
supabase-export-v2
784bcb34d98c7205
**Priorities** +--------------------------+---------------+ | Name (string) | Symbolic value| +==========================+===============+ | ``alert`` | LOG_ALERT | +--------------------------+---------------+ | ``crit`` or ``critical`` | LOG_CRIT | +--------------------------+---------------+ | ``debug`` | LOG_...
trusted_official_docs
CPython Docs
**Priorities** +--------------------------+---------------+ | Name (string) | Symbolic value| +==========================+===============+ | ``alert`` | LOG_ALERT | +--------------------------+---------------+ | ``crit`` or ``critical`` | LOG_CRIT | +--------------------------+---------------+ | ``debug`` | LOG_...
**Priorities** +--------------------------+---------------+ | Name (string) | Symbolic value| +==========================+===============+ | ``alert`` | LOG_ALERT | +--------------------------+---------------+ | ``crit`` or ``critical`` | LOG_CRIT | +--------------------------+---------------+ | ``debug`` | LOG_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
830e50c1-5f50-4159-bce5-288952669a95
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,173
supabase-export-v2
9e3c55b94a199420
.. method:: getEventType(record) Returns the event type for the record. Override this if you want to specify your own types. This version does a mapping using the handler's typemap attribute, which is set up in :meth:`__init__` to a dictionary which contains mappings for :const:`DEBUG`, :const:`INFO`, :const:`WARNI...
trusted_official_docs
CPython Docs
.. method:: getEventType(record) Returns the event type for the record. Override this if you want to specify your own types. This version does a mapping using the handler's typemap attribute, which is set up in :meth:`__init__` to a dictionary which contains mappings for :const:`DEBUG`, :const:`INFO`, :const:`WARNI...
.. method:: getEventType(record) Returns the event type for the record. Override this if you want to specify your own types. This version does a mapping using the handler's typemap attribute, which is set up in :meth:`__init__` to a dictionary which contains mappings for :const:`DEBUG`, :const:`INFO`, :const:`WARNI...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8549bb43-a73f-4893-8b27-8987eaad071f
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,125
supabase-export-v2
ed360af60f5d74fd
Returns a new instance of the :class:`DatagramHandler` class intended to communicate with a remote machine whose address is given by *host* and *port*. .. note:: As UDP is not a streaming protocol, there is no persistent connection between an instance of this handler and *host*. For this reason, when using a network ...
trusted_official_docs
CPython Docs
Returns a new instance of the :class:`DatagramHandler` class intended to communicate with a remote machine whose address is given by *host* and *port*. .. note:: As UDP is not a streaming protocol, there is no persistent connection between an instance of this handler and *host*. For this reason, when using a network ...
Returns a new instance of the :class:`DatagramHandler` class intended to communicate with a remote machine whose address is given by *host* and *port*. .. note:: As UDP is not a streaming protocol, there is no persistent connection between an instance of this handler and *host*. For this reason, when using a network ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
85948881-7bb6-41ac-949f-19ba33209200
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,978
supabase-export-v2
a303b31c942d214a
StreamHandler ^^^^^^^^^^^^^ The :class:`StreamHandler` class, located in the core :mod:`logging` package, sends logging output to streams such as *sys.stdout*, *sys.stderr* or any file-like object (or, more precisely, any object which supports :meth:`write` and :meth:`flush` methods).
trusted_official_docs
CPython Docs
StreamHandler ^^^^^^^^^^^^^ The :class:`StreamHandler` class, located in the core :mod:`logging` package, sends logging output to streams such as *sys.stdout*, *sys.stderr* or any file-like object (or, more precisely, any object which supports :meth:`write` and :meth:`flush` methods).
StreamHandler ^^^^^^^^^^^^^ The :class:`StreamHandler` class, located in the core :mod:`logging` package, sends logging output to streams such as *sys.stdout*, *sys.stderr* or any file-like object (or, more precisely, any object which supports :meth:`write` and :meth:`flush` methods).
python, official-docs, cpython, P0
Local_Trusted_Corpus
870f73b1-f28e-4c67-bfe0-fe54e18b064e
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,103
supabase-export-v2
15ede8ad6bfacff3
.. method:: emit() Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. If the connection was previously lost, re-establishes the connection. To unpickle the record at the receiving end into a :class:`~logging.LogRec...
trusted_official_docs
CPython Docs
.. method:: emit() Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. If the connection was previously lost, re-establishes the connection. To unpickle the record at the receiving end into a :class:`~logging.LogRec...
.. method:: emit() Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. If the connection was previously lost, re-establishes the connection. To unpickle the record at the receiving end into a :class:`~logging.LogRec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
883bef35-e7ca-4b0a-8358-47041204a5cf
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,086
supabase-export-v2
7ce3aa653d90b1a2
every five minutes (say), then there will be gaps in the file times corresponding to the minutes where no output (and hence no rollover) occurred. .. versionchanged:: 3.4 *atTime* parameter was added.
trusted_official_docs
CPython Docs
every five minutes (say), then there will be gaps in the file times corresponding to the minutes where no output (and hence no rollover) occurred. .. versionchanged:: 3.4 *atTime* parameter was added.
every five minutes (say), then there will be gaps in the file times corresponding to the minutes where no output (and hence no rollover) occurred. .. versionchanged:: 3.4 *atTime* parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
887c68f7-501d-4608-8199-330b759742ea
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,165
supabase-export-v2
362f90516115df9d
.. class:: NTEventLogHandler(appname, dllname=None, logtype='Application') Returns a new instance of the :class:`NTEventLogHandler` class. The *appname* is used to define the application name as it appears in the event log. An appropriate registry entry is created using this name. The *dllname* should give the fully...
trusted_official_docs
CPython Docs
.. class:: NTEventLogHandler(appname, dllname=None, logtype='Application') Returns a new instance of the :class:`NTEventLogHandler` class. The *appname* is used to define the application name as it appears in the event log. An appropriate registry entry is created using this name. The *dllname* should give the fully...
.. class:: NTEventLogHandler(appname, dllname=None, logtype='Application') Returns a new instance of the :class:`NTEventLogHandler` class. The *appname* is used to define the application name as it appears in the event log. An appropriate registry entry is created using this name. The *dllname* should give the fully...
python, official-docs, cpython, P0
Local_Trusted_Corpus
902758ad-1ec0-4205-a813-748d1488e382
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,995
supabase-export-v2
19a29a222a1874f8
The :class:`FileHandler` class, located in the core :mod:`logging` package, sends logging output to a disk file. It inherits the output functionality from :class:`StreamHandler`. .. class:: FileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
trusted_official_docs
CPython Docs
The :class:`FileHandler` class, located in the core :mod:`logging` package, sends logging output to a disk file. It inherits the output functionality from :class:`StreamHandler`. .. class:: FileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
The :class:`FileHandler` class, located in the core :mod:`logging` package, sends logging output to a disk file. It inherits the output functionality from :class:`StreamHandler`. .. class:: FileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
987e0057-055f-42cc-ac8d-debeebf76003
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,236
supabase-export-v2
7c7194c91202536f
.. method:: enqueue(record) Enqueues the record on the queue using ``put_nowait()``; you may want to override this if you want to use blocking behaviour, or a timeout, or a customized queue implementation.
trusted_official_docs
CPython Docs
.. method:: enqueue(record) Enqueues the record on the queue using ``put_nowait()``; you may want to override this if you want to use blocking behaviour, or a timeout, or a customized queue implementation.
.. method:: enqueue(record) Enqueues the record on the queue using ``put_nowait()``; you may want to override this if you want to use blocking behaviour, or a timeout, or a customized queue implementation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
98e4b241-40ab-494c-a8fb-10abcd8be21f
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,020
supabase-export-v2
717b552b8472f23b
.. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False, errors=None) Returns a new instance of the :class:`WatchedFileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``None``, it is used to open th...
trusted_official_docs
CPython Docs
.. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False, errors=None) Returns a new instance of the :class:`WatchedFileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``None``, it is used to open th...
.. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False, errors=None) Returns a new instance of the :class:`WatchedFileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``None``, it is used to open th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a98e9ea-4dc9-406a-ac3e-b52dffc4f635
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,128
supabase-export-v2
08f63654e7890c04
.. method:: emit() Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. To unpickle the record at the receiving end into a :class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord` function.
trusted_official_docs
CPython Docs
.. method:: emit() Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. To unpickle the record at the receiving end into a :class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord` function.
.. method:: emit() Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. To unpickle the record at the receiving end into a :class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord` function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3b2665b-58be-4e32-bfd5-f940f5df97a6
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,074
supabase-export-v2
d579468f2c246657
.. class:: TimedRotatingFileHandler(filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False, atTime=None, errors=None) Returns a new instance of the :class:`TimedRotatingFileHandler` class. The specified file is opened and used as the stream for logging. On rotating it also sets the filen...
trusted_official_docs
CPython Docs
.. class:: TimedRotatingFileHandler(filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False, atTime=None, errors=None) Returns a new instance of the :class:`TimedRotatingFileHandler` class. The specified file is opened and used as the stream for logging. On rotating it also sets the filen...
.. class:: TimedRotatingFileHandler(filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False, atTime=None, errors=None) Returns a new instance of the :class:`TimedRotatingFileHandler` class. The specified file is opened and used as the stream for logging. On rotating it also sets the filen...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a6e63e49-1d15-4712-9ee6-3f43101d3c90
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,050
supabase-export-v2
214f62a0ab70cfc4
passing the source and dest arguments to it. If the attribute isn't callable (the default is ``None``), the source is simply renamed to the destination. :param source: The source filename. This is normally the base filename, e.g. 'test.log'. :param dest: The destination filename. This is normally what the source is r...
trusted_official_docs
CPython Docs
passing the source and dest arguments to it. If the attribute isn't callable (the default is ``None``), the source is simply renamed to the destination. :param source: The source filename. This is normally the base filename, e.g. 'test.log'. :param dest: The destination filename. This is normally what the source is r...
passing the source and dest arguments to it. If the attribute isn't callable (the default is ``None``), the source is simply renamed to the destination. :param source: The source filename. This is normally the base filename, e.g. 'test.log'. :param dest: The destination filename. This is normally what the source is r...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a89a1610-ba7e-441f-96e2-a6ea5d4075b3
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,234
supabase-export-v2
daf47c38d2ed8c60
to ensuring the record is pickleable, and you might or might not be able to avoid doing that depending on whether your ``args`` are pickleable. (Note that you may have to consider not only your own code but also code in any libraries that you use.)
trusted_official_docs
CPython Docs
to ensuring the record is pickleable, and you might or might not be able to avoid doing that depending on whether your ``args`` are pickleable. (Note that you may have to consider not only your own code but also code in any libraries that you use.)
to ensuring the record is pickleable, and you might or might not be able to avoid doing that depending on whether your ``args`` are pickleable. (Note that you may have to consider not only your own code but also code in any libraries that you use.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
ace5f912-efcd-43e2-9d18-1e7fdb3932e1
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,167
supabase-export-v2
cb2582c55ec05e63
.. method:: close() At this point, you can remove the application name from the registry as a source of event log entries. However, if you do this, you will not be able to see the events as you intended in the Event Log Viewer - it needs to be able to access the registry to get the .dll name. The current version doe...
trusted_official_docs
CPython Docs
.. method:: close() At this point, you can remove the application name from the registry as a source of event log entries. However, if you do this, you will not be able to see the events as you intended in the Event Log Viewer - it needs to be able to access the registry to get the .dll name. The current version doe...
.. method:: close() At this point, you can remove the application name from the registry as a source of event log entries. However, if you do this, you will not be able to see the events as you intended in the Event Log Viewer - it needs to be able to access the registry to get the .dll name. The current version doe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae6d6066-b6bf-4318-97a7-04004e15879d
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,212
supabase-export-v2
66cd19f23e679989
.. class:: HTTPHandler(host, url, method='GET', secure=False, credentials=None, context=None) Returns a new instance of the :class:`HTTPHandler` class. The *host* can be of the form ``host:port``, should you need to use a specific port number. If no *method* is specified, ``GET`` is used. If *secure* is true, a HTTPS...
trusted_official_docs
CPython Docs
.. class:: HTTPHandler(host, url, method='GET', secure=False, credentials=None, context=None) Returns a new instance of the :class:`HTTPHandler` class. The *host* can be of the form ``host:port``, should you need to use a specific port number. If no *method* is specified, ``GET`` is used. If *secure* is true, a HTTPS...
.. class:: HTTPHandler(host, url, method='GET', secure=False, credentials=None, context=None) Returns a new instance of the :class:`HTTPHandler` class. The *host* can be of the form ``host:port``, should you need to use a specific port number. If no *method* is specified, ``GET`` is used. If *secure* is true, a HTTPS...
python, official-docs, cpython, P0
Local_Trusted_Corpus
af414b9e-f837-449f-9969-4352dacdc06b
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,119
supabase-export-v2
66f1272eb1599698
* ``retryStart`` (initial delay, defaulting to 1.0 seconds). * ``retryFactor`` (multiplier, defaulting to 2.0). * ``retryMax`` (maximum delay, defaulting to 30.0 seconds). This means that if the remote listener starts up *after* the handler has been used, you could lose messages (since the handler won't even attempt ...
trusted_official_docs
CPython Docs
* ``retryStart`` (initial delay, defaulting to 1.0 seconds). * ``retryFactor`` (multiplier, defaulting to 2.0). * ``retryMax`` (maximum delay, defaulting to 30.0 seconds). This means that if the remote listener starts up *after* the handler has been used, you could lose messages (since the handler won't even attempt ...
* ``retryStart`` (initial delay, defaulting to 1.0 seconds). * ``retryFactor`` (multiplier, defaulting to 2.0). * ``retryMax`` (maximum delay, defaulting to 30.0 seconds). This means that if the remote listener starts up *after* the handler has been used, you could lose messages (since the handler won't even attempt ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b186255e-570b-43fe-8887-7cb520e4ab74
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,036
supabase-export-v2
24257f77ba5d442b
to delete. For this to happen, the filenames should be sortable using the date/time portion of the filename, and a namer needs to respect this. (If a namer is wanted that doesn't respect this scheme, it will need to be used in a subclass of :class:`TimedRotatingFileHandler` which overrides the :meth:`~TimedRotatingFi...
trusted_official_docs
CPython Docs
to delete. For this to happen, the filenames should be sortable using the date/time portion of the filename, and a namer needs to respect this. (If a namer is wanted that doesn't respect this scheme, it will need to be used in a subclass of :class:`TimedRotatingFileHandler` which overrides the :meth:`~TimedRotatingFi...
to delete. For this to happen, the filenames should be sortable using the date/time portion of the filename, and a namer needs to respect this. (If a namer is wanted that doesn't respect this scheme, it will need to be used in a subclass of :class:`TimedRotatingFileHandler` which overrides the :meth:`~TimedRotatingFi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b19908d3-9cb7-43ec-8763-6d128106e4bb
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,153
supabase-export-v2
5812b10a68bab68a
.. method:: encodePriority(facility, priority) Encodes the facility and priority into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers.
trusted_official_docs
CPython Docs
.. method:: encodePriority(facility, priority) Encodes the facility and priority into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers.
.. method:: encodePriority(facility, priority) Encodes the facility and priority into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b22f5fb8-8cf8-47d5-8a81-857d35e7b543
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,240
supabase-export-v2
4b82a5ee903d262c
.. versionadded:: 3.2 The :class:`QueueListener` class, located in the :mod:`!logging.handlers` module, supports receiving logging messages from a queue, such as those implemented in the :mod:`queue` or :mod:`multiprocessing` modules. The messages are received from a queue in an internal thread and passed, on the same ...
trusted_official_docs
CPython Docs
.. versionadded:: 3.2 The :class:`QueueListener` class, located in the :mod:`!logging.handlers` module, supports receiving logging messages from a queue, such as those implemented in the :mod:`queue` or :mod:`multiprocessing` modules. The messages are received from a queue in an internal thread and passed, on the same ...
.. versionadded:: 3.2 The :class:`QueueListener` class, located in the :mod:`!logging.handlers` module, supports receiving logging messages from a queue, such as those implemented in the :mod:`queue` or :mod:`multiprocessing` modules. The messages are received from a queue in an internal thread and passed, on the same ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b237f653-4f68-43e1-8e1b-bb95ffcf197f
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,082
supabase-export-v2
87ab778c9ccf7293
one is deleted. The deletion logic uses the interval to determine which files to delete, so changing the interval may leave old files lying around. If *delay* is true, then file opening is deferred until the first call to :meth:`emit`.
trusted_official_docs
CPython Docs
one is deleted. The deletion logic uses the interval to determine which files to delete, so changing the interval may leave old files lying around. If *delay* is true, then file opening is deferred until the first call to :meth:`emit`.
one is deleted. The deletion logic uses the interval to determine which files to delete, so changing the interval may leave old files lying around. If *delay* is true, then file opening is deferred until the first call to :meth:`emit`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b339bfa3-7b54-4605-b157-f9c431245ccd
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,260
supabase-export-v2
8aac2db4e9c14f6f
Stops the listener. This asks the thread to terminate, and then waits for it to do so. Note that if you don't call this before your application exits, there may be some records still left on the queue, which won't be processed.
trusted_official_docs
CPython Docs
Stops the listener. This asks the thread to terminate, and then waits for it to do so. Note that if you don't call this before your application exits, there may be some records still left on the queue, which won't be processed.
Stops the listener. This asks the thread to terminate, and then waits for it to do so. Note that if you don't call this before your application exits, there may be some records still left on the queue, which won't be processed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b6f634ae-6f71-4bf2-aac3-43a66f3bd8cd
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,991
supabase-export-v2
662565db2aef4d72
String used as the terminator when writing a formatted record to a stream. Default value is ``'\n'``. If you don't want a newline termination, you can set the handler instance's ``terminator`` attribute to the empty string.
trusted_official_docs
CPython Docs
String used as the terminator when writing a formatted record to a stream. Default value is ``'\n'``. If you don't want a newline termination, you can set the handler instance's ``terminator`` attribute to the empty string.
String used as the terminator when writing a formatted record to a stream. Default value is ``'\n'``. If you don't want a newline termination, you can set the handler instance's ``terminator`` attribute to the empty string.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c162a3d5-5d17-4855-ba4d-57b4d4b28611
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,160
supabase-export-v2
b0951d86feb0d657
.. method:: mapPriority(levelname) Maps a logging level name to a syslog priority name. You may need to override this if you are using custom levels, or if the default algorithm is not suitable for your needs. The default algorithm maps ``DEBUG``, ``INFO``, ``WARNING``, ``ERROR`` and ``CRITICAL`` to the equivalent s...
trusted_official_docs
CPython Docs
.. method:: mapPriority(levelname) Maps a logging level name to a syslog priority name. You may need to override this if you are using custom levels, or if the default algorithm is not suitable for your needs. The default algorithm maps ``DEBUG``, ``INFO``, ``WARNING``, ``ERROR`` and ``CRITICAL`` to the equivalent s...
.. method:: mapPriority(levelname) Maps a logging level name to a syslog priority name. You may need to override this if you are using custom levels, or if the default algorithm is not suitable for your needs. The default algorithm maps ``DEBUG``, ``INFO``, ``WARNING``, ``ERROR`` and ``CRITICAL`` to the equivalent s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c25ee506-bea0-4fb0-87e9-7746373803d6
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,213
supabase-export-v2
23066fec7c85913a
Basic authentication. If you specify credentials, you should also specify secure=True so that your userid and password are not passed in cleartext across the wire. .. versionchanged:: 3.5 The *context* parameter was added.
trusted_official_docs
CPython Docs
Basic authentication. If you specify credentials, you should also specify secure=True so that your userid and password are not passed in cleartext across the wire. .. versionchanged:: 3.5 The *context* parameter was added.
Basic authentication. If you specify credentials, you should also specify secure=True so that your userid and password are not passed in cleartext across the wire. .. versionchanged:: 3.5 The *context* parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c28ec39f-b482-4285-a28c-c6e25baac56d
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,101
supabase-export-v2
c18561a4ab9e67d5
Returns a new instance of the :class:`SocketHandler` class intended to communicate with a remote machine whose address is given by *host* and *port*. .. versionchanged:: 3.4 If ``port`` is specified as ``None``, a Unix domain socket is created using the value in ``host`` - otherwise, a TCP socket is created.
trusted_official_docs
CPython Docs
Returns a new instance of the :class:`SocketHandler` class intended to communicate with a remote machine whose address is given by *host* and *port*. .. versionchanged:: 3.4 If ``port`` is specified as ``None``, a Unix domain socket is created using the value in ``host`` - otherwise, a TCP socket is created.
Returns a new instance of the :class:`SocketHandler` class intended to communicate with a remote machine whose address is given by *host* and *port*. .. versionchanged:: 3.4 If ``port`` is specified as ``None``, a Unix domain socket is created using the value in ``host`` - otherwise, a TCP socket is created.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c2d84694-d6c7-462c-958a-45f9d078ee1e
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,126
supabase-export-v2
53a5e3763296d5ae
the system. If this affects you, you can do a lookup yourself and initialize this handler using the looked-up IP address rather than the hostname. .. versionchanged:: 3.4 If ``port`` is specified as ``None``, a Unix domain socket is created using the value in ``host`` - otherwise, a UDP socket is created.
trusted_official_docs
CPython Docs
the system. If this affects you, you can do a lookup yourself and initialize this handler using the looked-up IP address rather than the hostname. .. versionchanged:: 3.4 If ``port`` is specified as ``None``, a Unix domain socket is created using the value in ``host`` - otherwise, a UDP socket is created.
the system. If this affects you, you can do a lookup yourself and initialize this handler using the looked-up IP address rather than the hostname. .. versionchanged:: 3.4 If ``port`` is specified as ``None``, a Unix domain socket is created using the value in ``host`` - otherwise, a UDP socket is created.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c945d6dd-1151-426d-9184-50d7cd0ef206
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,232
supabase-export-v2
80a2661ae56f53b0
:attr:`msg` and :attr:`message` attributes with the merged message (obtained by calling the handler's :meth:`format` method), and sets the :attr:`args`, :attr:`exc_info` and :attr:`exc_text` attributes to ``None``. You might want to override this method if you want to convert the record to a dict or JSON string, or se...
trusted_official_docs
CPython Docs
:attr:`msg` and :attr:`message` attributes with the merged message (obtained by calling the handler's :meth:`format` method), and sets the :attr:`args`, :attr:`exc_info` and :attr:`exc_text` attributes to ``None``. You might want to override this method if you want to convert the record to a dict or JSON string, or se...
:attr:`msg` and :attr:`message` attributes with the merged message (obtained by calling the handler's :meth:`format` method), and sets the :attr:`args`, :attr:`exc_info` and :attr:`exc_text` attributes to ``None``. You might want to override this method if you want to convert the record to a dict or JSON string, or se...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cad68d0a-0191-4e9f-986a-e4be43d67534
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,062
supabase-export-v2
3dc039b6672526a1
is filled, it is closed and renamed to :file:`app.log.1`, and if files :file:`app.log.1`, :file:`app.log.2`, etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` etc. respectively. .. versionchanged:: 3.6 As well as string values, :class:`~pathlib.Path` objects are also accepted for the *filename...
trusted_official_docs
CPython Docs
is filled, it is closed and renamed to :file:`app.log.1`, and if files :file:`app.log.1`, :file:`app.log.2`, etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` etc. respectively. .. versionchanged:: 3.6 As well as string values, :class:`~pathlib.Path` objects are also accepted for the *filename...
is filled, it is closed and renamed to :file:`app.log.1`, and if files :file:`app.log.1`, :file:`app.log.2`, etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` etc. respectively. .. versionchanged:: 3.6 As well as string values, :class:`~pathlib.Path` objects are also accepted for the *filename...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cbd3448f-48f3-496e-be3b-b96041f16628
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,200
supabase-export-v2
8c57df5dcc2e7271
the handler is closed. If not specified or specified as ``True``, the previous behaviour of flushing the buffer will occur when the handler is closed. .. versionchanged:: 3.6 The *flushOnClose* parameter was added.
trusted_official_docs
CPython Docs
the handler is closed. If not specified or specified as ``True``, the previous behaviour of flushing the buffer will occur when the handler is closed. .. versionchanged:: 3.6 The *flushOnClose* parameter was added.
the handler is closed. If not specified or specified as ``True``, the previous behaviour of flushing the buffer will occur when the handler is closed. .. versionchanged:: 3.6 The *flushOnClose* parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cc20a37e-b7ea-4cc6-8f4b-8ab8c329dc26
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,154
supabase-export-v2
0c1eada12ab2753e
into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers. The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and mirror the values defined in the ``sys/syslog.h`` header file.
trusted_official_docs
CPython Docs
into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers. The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and mirror the values defined in the ``sys/syslog.h`` header file.
into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers. The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and mirror the values defined in the ``sys/syslog.h`` header file.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce9f22ec-3ffb-4aef-bf8a-614ccf4b10b4
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,109
supabase-export-v2
650b5a7b83165663
.. method:: makePickle(record) Pickles the record's attribute dictionary in binary format with a length prefix, and returns it ready for transmission across the socket. The details of this operation are equivalent to::
trusted_official_docs
CPython Docs
.. method:: makePickle(record) Pickles the record's attribute dictionary in binary format with a length prefix, and returns it ready for transmission across the socket. The details of this operation are equivalent to::
.. method:: makePickle(record) Pickles the record's attribute dictionary in binary format with a length prefix, and returns it ready for transmission across the socket. The details of this operation are equivalent to::
python, official-docs, cpython, P0
Local_Trusted_Corpus
d0fa5c0b-ceab-43fc-ad6c-deeb91260542
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,996
supabase-export-v2
f6f513c305c0b5f2
.. class:: FileHandler(filename, mode='a', encoding=None, delay=False, errors=None) Returns a new instance of the :class:`FileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``None``, it is used to open the file with t...
trusted_official_docs
CPython Docs
.. class:: FileHandler(filename, mode='a', encoding=None, delay=False, errors=None) Returns a new instance of the :class:`FileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``None``, it is used to open the file with t...
.. class:: FileHandler(filename, mode='a', encoding=None, delay=False, errors=None) Returns a new instance of the :class:`FileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``None``, it is used to open the file with t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d10e6ef4-1a53-4b84-8f85-65b60ac4cc19
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,189
supabase-export-v2
3452262bb224cda3
flushing them to a :dfn:`target` handler. Flushing occurs whenever the buffer is full, or when an event of a certain severity or greater is seen. :class:`MemoryHandler` is a subclass of the more general :class:`BufferingHandler`, which is an abstract class. This buffers logging records in memory. Whenever each record i...
trusted_official_docs
CPython Docs
flushing them to a :dfn:`target` handler. Flushing occurs whenever the buffer is full, or when an event of a certain severity or greater is seen. :class:`MemoryHandler` is a subclass of the more general :class:`BufferingHandler`, which is an abstract class. This buffers logging records in memory. Whenever each record i...
flushing them to a :dfn:`target` handler. Flushing occurs whenever the buffer is full, or when an event of a certain severity or greater is seen. :class:`MemoryHandler` is a subclass of the more general :class:`BufferingHandler`, which is an abstract class. This buffers logging records in memory. Whenever each record i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d37dac72-5801-4d53-8aab-f1a1d661c140
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,199
supabase-export-v2
e399cdd7ce9fff9e
.. class:: MemoryHandler(capacity, flushLevel=ERROR, target=None, flushOnClose=True) Returns a new instance of the :class:`MemoryHandler` class. The instance is initialized with a buffer size of *capacity* (number of records buffered). If *flushLevel* is not specified, :const:`ERROR` is used. If no *target* is specif...
trusted_official_docs
CPython Docs
.. class:: MemoryHandler(capacity, flushLevel=ERROR, target=None, flushOnClose=True) Returns a new instance of the :class:`MemoryHandler` class. The instance is initialized with a buffer size of *capacity* (number of records buffered). If *flushLevel* is not specified, :const:`ERROR` is used. If no *target* is specif...
.. class:: MemoryHandler(capacity, flushLevel=ERROR, target=None, flushOnClose=True) Returns a new instance of the :class:`MemoryHandler` class. The instance is initialized with a buffer size of *capacity* (number of records buffered). If *flushLevel* is not specified, :const:`ERROR` is used. If no *target* is specif...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4e5b8ca-c160-4866-af23-137a1910199c
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,253
supabase-export-v2
27e85c960a978c43
Prepare a record for handling. This implementation just returns the passed-in record. You may want to override this method if you need to do any custom marshalling or manipulation of the record before passing it to the handlers.
trusted_official_docs
CPython Docs
Prepare a record for handling. This implementation just returns the passed-in record. You may want to override this method if you need to do any custom marshalling or manipulation of the record before passing it to the handlers.
Prepare a record for handling. This implementation just returns the passed-in record. You may want to override this method if you need to do any custom marshalling or manipulation of the record before passing it to the handlers.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5370bd4-e1f6-4cf9-b941-ded392108fdf
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,078
supabase-export-v2
cc1872051b59743e
specify 'W0' for Monday, 'W1' for Tuesday, and so on up to 'W6' for Sunday. In this case, the value passed for *interval* isn't used. The system will save old log files by appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion ...
trusted_official_docs
CPython Docs
specify 'W0' for Monday, 'W1' for Tuesday, and so on up to 'W6' for Sunday. In this case, the value passed for *interval* isn't used. The system will save old log files by appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion ...
specify 'W0' for Monday, 'W1' for Tuesday, and so on up to 'W6' for Sunday. In this case, the value passed for *interval* isn't used. The system will save old log files by appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5630709-b068-4e52-bb1e-2c75efecfc38
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,151
supabase-export-v2
dc65da061ed9f71d
(preserving the existing behaviour) but can be set to ``False`` on a ``SysLogHandler`` instance in order for that instance to *not* append the NUL terminator. .. versionchanged:: 3.3 (See: :issue:`12419`.) In earlier versions, there was no facility for an "ident" or "tag" prefix to identify the source of the message....
trusted_official_docs
CPython Docs
(preserving the existing behaviour) but can be set to ``False`` on a ``SysLogHandler`` instance in order for that instance to *not* append the NUL terminator. .. versionchanged:: 3.3 (See: :issue:`12419`.) In earlier versions, there was no facility for an "ident" or "tag" prefix to identify the source of the message....
(preserving the existing behaviour) but can be set to ``False`` on a ``SysLogHandler`` instance in order for that instance to *not* append the NUL terminator. .. versionchanged:: 3.3 (See: :issue:`12419`.) In earlier versions, there was no facility for an "ident" or "tag" prefix to identify the source of the message....
python, official-docs, cpython, P0
Local_Trusted_Corpus
d58268cb-539a-4110-879e-de6e680e4097
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,233
supabase-export-v2
b67fe79ddb18325a
you want to convert the record to a dict or JSON string, or send a modified copy of the record while leaving the original intact. .. note:: The base implementation formats the message with arguments, sets the ``message`` and ``msg`` attributes to the formatted message and sets the ``args`` and ``exc_text`` attributes...
trusted_official_docs
CPython Docs
you want to convert the record to a dict or JSON string, or send a modified copy of the record while leaving the original intact. .. note:: The base implementation formats the message with arguments, sets the ``message`` and ``msg`` attributes to the formatted message and sets the ``args`` and ``exc_text`` attributes...
you want to convert the record to a dict or JSON string, or send a modified copy of the record while leaving the original intact. .. note:: The base implementation formats the message with arguments, sets the ``message`` and ``msg`` attributes to the formatted message and sets the ``args`` and ``exc_text`` attributes...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5c2578c-6d33-487e-8bea-84b5d67c1ec5
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,030
supabase-export-v2
b5fa21fdb6a5ace3
rotating file handlers, :class:`RotatingFileHandler` and :class:`TimedRotatingFileHandler`. You should not need to instantiate this class, but it has attributes and methods you may need to override. .. class:: BaseRotatingHandler(filename, mode, encoding=None, delay=False, errors=None)
trusted_official_docs
CPython Docs
rotating file handlers, :class:`RotatingFileHandler` and :class:`TimedRotatingFileHandler`. You should not need to instantiate this class, but it has attributes and methods you may need to override. .. class:: BaseRotatingHandler(filename, mode, encoding=None, delay=False, errors=None)
rotating file handlers, :class:`RotatingFileHandler` and :class:`TimedRotatingFileHandler`. You should not need to instantiate this class, but it has attributes and methods you may need to override. .. class:: BaseRotatingHandler(filename, mode, encoding=None, delay=False, errors=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
d95c2a94-99d4-4118-8b8a-7aa89fa38af1
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,081
supabase-export-v2
ff5c5ee695152fe0
If the *utc* argument is true, times in UTC will be used; otherwise local time is used. If *backupCount* is nonzero, at most *backupCount* files will be kept, and if more would be created when rollover occurs, the oldest one is deleted. The deletion logic uses the interval to determine which files to delete, so chan...
trusted_official_docs
CPython Docs
If the *utc* argument is true, times in UTC will be used; otherwise local time is used. If *backupCount* is nonzero, at most *backupCount* files will be kept, and if more would be created when rollover occurs, the oldest one is deleted. The deletion logic uses the interval to determine which files to delete, so chan...
If the *utc* argument is true, times in UTC will be used; otherwise local time is used. If *backupCount* is nonzero, at most *backupCount* files will be kept, and if more would be created when rollover occurs, the oldest one is deleted. The deletion logic uses the interval to determine which files to delete, so chan...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9677e5f-980b-4597-90d0-e1dee583df5a
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,244
supabase-export-v2
40b6061c1832ae64
queue is not *required* to have the task tracking API (though it's used if available), which means that you can use :class:`~queue.SimpleQueue` instances for *queue*. .. note:: If you are using :mod:`multiprocessing`, you should avoid using :class:`~queue.SimpleQueue` and instead use :class:`multiprocessing.Queue`.
trusted_official_docs
CPython Docs
queue is not *required* to have the task tracking API (though it's used if available), which means that you can use :class:`~queue.SimpleQueue` instances for *queue*. .. note:: If you are using :mod:`multiprocessing`, you should avoid using :class:`~queue.SimpleQueue` and instead use :class:`multiprocessing.Queue`.
queue is not *required* to have the task tracking API (though it's used if available), which means that you can use :class:`~queue.SimpleQueue` instances for *queue*. .. note:: If you are using :mod:`multiprocessing`, you should avoid using :class:`~queue.SimpleQueue` and instead use :class:`multiprocessing.Queue`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d97cfea4-9085-4618-b1af-f9047b9624de
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,226
supabase-export-v2
c6c3f8e3ea957ddb
.. warning:: The :mod:`multiprocessing` module uses an internal logger created and accessed via :meth:`~multiprocessing.get_logger`. :class:`multiprocessing.Queue` will log ``DEBUG`` level messages upon items being queued. If those log messages are processed by a :class:`QueueHandler` using the same :class:`multipro...
trusted_official_docs
CPython Docs
.. warning:: The :mod:`multiprocessing` module uses an internal logger created and accessed via :meth:`~multiprocessing.get_logger`. :class:`multiprocessing.Queue` will log ``DEBUG`` level messages upon items being queued. If those log messages are processed by a :class:`QueueHandler` using the same :class:`multipro...
.. warning:: The :mod:`multiprocessing` module uses an internal logger created and accessed via :meth:`~multiprocessing.get_logger`. :class:`multiprocessing.Queue` will log ``DEBUG`` level messages upon items being queued. If those log messages are processed by a :class:`QueueHandler` using the same :class:`multipro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
db8fe746-1dbc-455d-b82b-d80cca915443
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,105
supabase-export-v2
46f1fcf9a313a33b
.. method:: handleError() Handles an error which has occurred during :meth:`emit`. The most likely cause is a lost connection. Closes the socket so that we can retry on the next event.
trusted_official_docs
CPython Docs
.. method:: handleError() Handles an error which has occurred during :meth:`emit`. The most likely cause is a lost connection. Closes the socket so that we can retry on the next event.
.. method:: handleError() Handles an error which has occurred during :meth:`emit`. The most likely cause is a lost connection. Closes the socket so that we can retry on the next event.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dffa56f6-3419-462c-8c57-147380cbd7ca
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,024
supabase-export-v2
3588cea440449860
.. method:: reopenIfNeeded() Checks to see if the file has changed. If it has, the existing stream is flushed and closed and the file opened again, typically as a precursor to outputting the record to the file.
trusted_official_docs
CPython Docs
.. method:: reopenIfNeeded() Checks to see if the file has changed. If it has, the existing stream is flushed and closed and the file opened again, typically as a precursor to outputting the record to the file.
.. method:: reopenIfNeeded() Checks to see if the file has changed. If it has, the existing stream is flushed and closed and the file opened again, typically as a precursor to outputting the record to the file.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e175de70-615d-47ae-9ff7-6a6436a9c6b2
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,079
supabase-export-v2
d0ec468d7e8e3aee
appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the rollover interval. When computing the next rollover time for the first time (when the handler is created), the last modification time of an existi...
trusted_official_docs
CPython Docs
appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the rollover interval. When computing the next rollover time for the first time (when the handler is created), the last modification time of an existi...
appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the rollover interval. When computing the next rollover time for the first time (when the handler is created), the last modification time of an existi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e2ec0d14-4855-442d-8bc3-e0c7e1b94328
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,019
supabase-export-v2
5ff9d3909e698ef0
- and so there is no need for such a handler. Furthermore, *ST_INO* is not supported under Windows; :func:`~os.stat` always returns zero for this value. .. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
trusted_official_docs
CPython Docs
- and so there is no need for such a handler. Furthermore, *ST_INO* is not supported under Windows; :func:`~os.stat` always returns zero for this value. .. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
- and so there is no need for such a handler. Furthermore, *ST_INO* is not supported under Windows; :func:`~os.stat` always returns zero for this value. .. class:: WatchedFileHandler(filename, mode='a', encoding=None, delay=False, errors=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4c6ecb6-ec20-4ef9-86a3-147efa3ea1a5
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,231
supabase-export-v2
a4aadc4123c0fe84
Prepares a record for queuing. The object returned by this method is enqueued. The base implementation formats the record to merge the message, arguments, exception and stack information, if present. It also removes unpickleable items from the record in-place. Specifically, it overwrites the record's :attr:`msg` and...
trusted_official_docs
CPython Docs
Prepares a record for queuing. The object returned by this method is enqueued. The base implementation formats the record to merge the message, arguments, exception and stack information, if present. It also removes unpickleable items from the record in-place. Specifically, it overwrites the record's :attr:`msg` and...
Prepares a record for queuing. The object returned by this method is enqueued. The base implementation formats the record to merge the message, arguments, exception and stack information, if present. It also removes unpickleable items from the record in-place. Specifically, it overwrites the record's :attr:`msg` and...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9d42eb6-9196-48cc-87ef-d782ff4fc0ab
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,136
supabase-export-v2
0a473417c72fbac1
.. class:: SysLogHandler(address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER, socktype=socket.SOCK_DGRAM, timeout=None) Returns a new instance of the :class:`SysLogHandler` class intended to communicate with a remote Unix machine whose address is given by *address* in the form of a ``(host, port)`` tuple. If *a...
trusted_official_docs
CPython Docs
.. class:: SysLogHandler(address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER, socktype=socket.SOCK_DGRAM, timeout=None) Returns a new instance of the :class:`SysLogHandler` class intended to communicate with a remote Unix machine whose address is given by *address* in the form of a ``(host, port)`` tuple. If *a...
.. class:: SysLogHandler(address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER, socktype=socket.SOCK_DGRAM, timeout=None) Returns a new instance of the :class:`SysLogHandler` class intended to communicate with a remote Unix machine whose address is given by *address* in the form of a ``(host, port)`` tuple. If *a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea81aa8e-8ae8-45a6-b652-323755a924d0
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,059
supabase-export-v2
cc493db411e17c4d
.. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False, errors=None) Returns a new instance of the :class:`RotatingFileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``...
trusted_official_docs
CPython Docs
.. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False, errors=None) Returns a new instance of the :class:`RotatingFileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``...
.. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False, errors=None) Returns a new instance of the :class:`RotatingFileHandler` class. The specified file is opened and used as the stream for logging. If *mode* is not specified, ``'a'`` is used. If *encoding* is not ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ede86c7a-d246-4a20-8b06-ae6f0732e462
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,083
supabase-export-v2
9d4ed884c8cd1bf4
If *delay* is true, then file opening is deferred until the first call to :meth:`emit`. If *atTime* is not ``None``, it must be a ``datetime.time`` instance which specifies the time of day when rollover occurs, for the cases where rollover is set to happen "at midnight" or "on a particular weekday". Note that in the...
trusted_official_docs
CPython Docs
If *delay* is true, then file opening is deferred until the first call to :meth:`emit`. If *atTime* is not ``None``, it must be a ``datetime.time`` instance which specifies the time of day when rollover occurs, for the cases where rollover is set to happen "at midnight" or "on a particular weekday". Note that in the...
If *delay* is true, then file opening is deferred until the first call to :meth:`emit`. If *atTime* is not ``None``, it must be a ``datetime.time`` instance which specifies the time of day when rollover occurs, for the cases where rollover is set to happen "at midnight" or "on a particular weekday". Note that in the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee1e4588-4a5f-420d-8432-bd1ff707ad8f
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,146
supabase-export-v2
c3770ffe86872a46
.. method:: createSocket() Tries to create a socket and, if it's not a datagram socket, connect it to the other end. This method is called during handler initialization, but it's not regarded as an error if the other end isn't listening at this point - the method will be called again when emitting an event, if ther...
trusted_official_docs
CPython Docs
.. method:: createSocket() Tries to create a socket and, if it's not a datagram socket, connect it to the other end. This method is called during handler initialization, but it's not regarded as an error if the other end isn't listening at this point - the method will be called again when emitting an event, if ther...
.. method:: createSocket() Tries to create a socket and, if it's not a datagram socket, connect it to the other end. This method is called during handler initialization, but it's not regarded as an error if the other end isn't listening at this point - the method will be called again when emitting an event, if ther...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee3df07f-bf65-4a53-a015-bb21b08ae0ac
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,179
supabase-export-v2
327e9966a8f521c6
.. class:: SMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=1.0) Returns a new instance of the :class:`SMTPHandler` class. The instance is initialized with the from and to addresses and subject line of the email. The *toaddrs* should be a list of strings. To specify a non-stand...
trusted_official_docs
CPython Docs
.. class:: SMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=1.0) Returns a new instance of the :class:`SMTPHandler` class. The instance is initialized with the from and to addresses and subject line of the email. The *toaddrs* should be a list of strings. To specify a non-stand...
.. class:: SMTPHandler(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=1.0) Returns a new instance of the :class:`SMTPHandler` class. The instance is initialized with the from and to addresses and subject line of the email. The *toaddrs* should be a list of strings. To specify a non-stand...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f0ee1352-8e9c-4113-9cfb-c1c1ef8706a1
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,223
supabase-export-v2
02d457b1006541e7
.. class:: QueueHandler(queue) Returns a new instance of the :class:`QueueHandler` class. The instance is initialized with the queue to send messages to. The *queue* can be any queue-like object; it's used as-is by the :meth:`enqueue` method, which needs to know how to send messages to it. The queue is not *required...
trusted_official_docs
CPython Docs
.. class:: QueueHandler(queue) Returns a new instance of the :class:`QueueHandler` class. The instance is initialized with the queue to send messages to. The *queue* can be any queue-like object; it's used as-is by the :meth:`enqueue` method, which needs to know how to send messages to it. The queue is not *required...
.. class:: QueueHandler(queue) Returns a new instance of the :class:`QueueHandler` class. The instance is initialized with the queue to send messages to. The *queue* can be any queue-like object; it's used as-is by the :meth:`enqueue` method, which needs to know how to send messages to it. The queue is not *required...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f450cb21-9fb7-45b8-ab36-c304d381d0af
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,111
supabase-export-v2
04f870a122dab7a4
data = pickle.dumps(record_attr_dict, 1) datalen = struct.pack('>L', len(data)) return datalen + data Note that pickles aren't completely secure. If you are concerned about security, you may want to override this method to implement a more secure mechanism. For example, you can sign pickles using HMAC and then verify...
trusted_official_docs
CPython Docs
data = pickle.dumps(record_attr_dict, 1) datalen = struct.pack('>L', len(data)) return datalen + data Note that pickles aren't completely secure. If you are concerned about security, you may want to override this method to implement a more secure mechanism. For example, you can sign pickles using HMAC and then verify...
data = pickle.dumps(record_attr_dict, 1) datalen = struct.pack('>L', len(data)) return datalen + data Note that pickles aren't completely secure. If you are concerned about security, you may want to override this method to implement a more secure mechanism. For example, you can sign pickles using HMAC and then verify...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f5a9b124-5efb-4c7d-89b1-95ced4d055a7
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,228
supabase-export-v2
e3bf98ac914f5d53
.. method:: emit(record) Enqueues the result of preparing the LogRecord. Should an exception occur (e.g. because a bounded queue has filled up), the :meth:`~logging.Handler.handleError` method is called to handle the error. This can result in the record silently being dropped (if :data:`logging.raiseExceptions` is ...
trusted_official_docs
CPython Docs
.. method:: emit(record) Enqueues the result of preparing the LogRecord. Should an exception occur (e.g. because a bounded queue has filled up), the :meth:`~logging.Handler.handleError` method is called to handle the error. This can result in the record silently being dropped (if :data:`logging.raiseExceptions` is ...
.. method:: emit(record) Enqueues the result of preparing the LogRecord. Should an exception occur (e.g. because a bounded queue has filled up), the :meth:`~logging.Handler.handleError` method is called to handle the error. This can result in the record silently being dropped (if :data:`logging.raiseExceptions` is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f774d7fd-8bc3-434e-a1e2-e2c165528e0e
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,250
supabase-export-v2
2c559609cce18190
Dequeues a record and return it, optionally blocking. The base implementation uses ``get()``. You may want to override this method if you want to use timeouts or work with custom queue implementations.
trusted_official_docs
CPython Docs
Dequeues a record and return it, optionally blocking. The base implementation uses ``get()``. You may want to override this method if you want to use timeouts or work with custom queue implementations.
Dequeues a record and return it, optionally blocking. The base implementation uses ``get()``. You may want to override this method if you want to use timeouts or work with custom queue implementations.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7a41c78-8ea4-422c-8582-6c07f3e75b0b
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,997
supabase-export-v2
c8f4f2e2b863a00e
until the first call to :meth:`emit`. By default, the file grows indefinitely. If *errors* is specified, it's used to determine how encoding errors are handled. .. versionchanged:: 3.6 As well as string values, :class:`~pathlib.Path` objects are also accepted for the *filename* argument.
trusted_official_docs
CPython Docs
until the first call to :meth:`emit`. By default, the file grows indefinitely. If *errors* is specified, it's used to determine how encoding errors are handled. .. versionchanged:: 3.6 As well as string values, :class:`~pathlib.Path` objects are also accepted for the *filename* argument.
until the first call to :meth:`emit`. By default, the file grows indefinitely. If *errors* is specified, it's used to determine how encoding errors are handled. .. versionchanged:: 3.6 As well as string values, :class:`~pathlib.Path` objects are also accepted for the *filename* argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f815ecbe-932f-4108-aa99-e577d2388315
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,044
supabase-export-v2
ccb90d3f48be4ed0
This is provided so that a custom filename can be provided. The default implementation calls the 'namer' attribute of the handler, if it's callable, passing the default name to it. If the attribute isn't callable (the default is ``None``), the name is returned unchanged.
trusted_official_docs
CPython Docs
This is provided so that a custom filename can be provided. The default implementation calls the 'namer' attribute of the handler, if it's callable, passing the default name to it. If the attribute isn't callable (the default is ``None``), the name is returned unchanged.
This is provided so that a custom filename can be provided. The default implementation calls the 'namer' attribute of the handler, if it's callable, passing the default name to it. If the attribute isn't callable (the default is ``None``), the name is returned unchanged.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fa30e18a-7766-4b2b-95f1-4e7fb086cfcb
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
17,976
supabase-export-v2
029753fc662b9b11
.. currentmodule:: logging The following useful handlers are provided in the package. Note that three of the handlers (:class:`StreamHandler`, :class:`FileHandler` and :class:`NullHandler`) are actually defined in the :mod:`logging` module itself, but have been documented here along with the other handlers.
trusted_official_docs
CPython Docs
.. currentmodule:: logging The following useful handlers are provided in the package. Note that three of the handlers (:class:`StreamHandler`, :class:`FileHandler` and :class:`NullHandler`) are actually defined in the :mod:`logging` module itself, but have been documented here along with the other handlers.
.. currentmodule:: logging The following useful handlers are provided in the package. Note that three of the handlers (:class:`StreamHandler`, :class:`FileHandler` and :class:`NullHandler`) are actually defined in the :mod:`logging` module itself, but have been documented here along with the other handlers.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fb1f068f-c1da-4d36-8da5-dca6cc232bf1
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,218
supabase-export-v2
f7de8693c0e17d1e
the record to the web server as a URL-encoded dictionary. The :meth:`mapLogRecord` method is used to convert the record to the dictionary to be sent. .. note:: Since preparing a record for sending it to a web server is not the same as a generic formatting operation, using :meth:`~logging.Handler.setFormatter` to spec...
trusted_official_docs
CPython Docs
the record to the web server as a URL-encoded dictionary. The :meth:`mapLogRecord` method is used to convert the record to the dictionary to be sent. .. note:: Since preparing a record for sending it to a web server is not the same as a generic formatting operation, using :meth:`~logging.Handler.setFormatter` to spec...
the record to the web server as a URL-encoded dictionary. The :meth:`mapLogRecord` method is used to convert the record to the dictionary to be sent. .. note:: Since preparing a record for sending it to a web server is not the same as a generic formatting operation, using :meth:`~logging.Handler.setFormatter` to spec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fccdb5c0-e7a5-48b7-8a37-65b03d182e92
CPython Docs
file://datasets/cpython/Doc/library/logging.handlers.rst
unknown
282416c4-7b1b-4e29-b486-13efc02caf3e
18,060
supabase-export-v2
73c3a78bc0edf96b
is deferred until the first call to :meth:`emit`. By default, the file grows indefinitely. If *errors* is provided, it determines how encoding errors are handled. You can use the *maxBytes* and *backupCount* values to allow the file to :dfn:`rollover` at a predetermined size. When the size is about to be exceeded, th...
trusted_official_docs
CPython Docs
is deferred until the first call to :meth:`emit`. By default, the file grows indefinitely. If *errors* is provided, it determines how encoding errors are handled. You can use the *maxBytes* and *backupCount* values to allow the file to :dfn:`rollover` at a predetermined size. When the size is about to be exceeded, th...
is deferred until the first call to :meth:`emit`. By default, the file grows indefinitely. If *errors* is provided, it determines how encoding errors are handled. You can use the *maxBytes* and *backupCount* values to allow the file to :dfn:`rollover` at a predetermined size. When the size is about to be exceeded, th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
01fd185e-1228-4117-96e6-f1eafcf45973
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,286
supabase-export-v2
55b73ca7727e2ab2
import winsound # Play Windows exit sound. winsound.PlaySound("SystemExit", winsound.SND_ALIAS) # Probably play Windows default sound, if any is registered (because # "*" probably isn't the registered name of any sound). winsound.PlaySound("*", winsound.SND_ALIAS)
trusted_official_docs
CPython Docs
import winsound # Play Windows exit sound. winsound.PlaySound("SystemExit", winsound.SND_ALIAS) # Probably play Windows default sound, if any is registered (because # "*" probably isn't the registered name of any sound). winsound.PlaySound("*", winsound.SND_ALIAS)
import winsound # Play Windows exit sound. winsound.PlaySound("SystemExit", winsound.SND_ALIAS) # Probably play Windows default sound, if any is registered (because # "*" probably isn't the registered name of any sound). winsound.PlaySound("*", winsound.SND_ALIAS)
python, official-docs, cpython, P0
Local_Trusted_Corpus
133dcee6-00cf-412a-b157-6a7a50abc14b
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,275
supabase-export-v2
8434460c49196a7e
.. function:: PlaySound(sound, flags) Call the underlying :c:func:`!PlaySound` function from the Platform API. The *sound* parameter may be a filename, a system sound alias, audio data as a :term:`bytes-like object`, or ``None``. Its interpretation depends on the value of *flags*, which can be a bitwise ORed combin...
trusted_official_docs
CPython Docs
.. function:: PlaySound(sound, flags) Call the underlying :c:func:`!PlaySound` function from the Platform API. The *sound* parameter may be a filename, a system sound alias, audio data as a :term:`bytes-like object`, or ``None``. Its interpretation depends on the value of *flags*, which can be a bitwise ORed combin...
.. function:: PlaySound(sound, flags) Call the underlying :c:func:`!PlaySound` function from the Platform API. The *sound* parameter may be a filename, a system sound alias, audio data as a :term:`bytes-like object`, or ``None``. Its interpretation depends on the value of *flags*, which can be a bitwise ORed combin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6cfcb09b-7ff6-4253-8f81-51569478024b
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,282
supabase-export-v2
76590d16e9058403
such name, play the system default sound unless :const:`SND_NODEFAULT` is also specified. If no default sound is registered, raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`. All Win32 systems support at least the following; most systems support many more:
trusted_official_docs
CPython Docs
such name, play the system default sound unless :const:`SND_NODEFAULT` is also specified. If no default sound is registered, raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`. All Win32 systems support at least the following; most systems support many more:
such name, play the system default sound unless :const:`SND_NODEFAULT` is also specified. If no default sound is registered, raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`. All Win32 systems support at least the following; most systems support many more:
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f45194c-273e-4c5b-8086-94a35310320a
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,277
supabase-export-v2
a2a45bd835146ee5
.. function:: MessageBeep(type=MB_OK) Call the underlying :c:func:`!MessageBeep` function from the Platform API. This plays a sound as specified in the registry. The *type* argument specifies which sound to play; possible values are ``-1``, ``MB_ICONASTERISK``, ``MB_ICONEXCLAMATION``, ``MB_ICONHAND``, ``MB_ICONQUEST...
trusted_official_docs
CPython Docs
.. function:: MessageBeep(type=MB_OK) Call the underlying :c:func:`!MessageBeep` function from the Platform API. This plays a sound as specified in the registry. The *type* argument specifies which sound to play; possible values are ``-1``, ``MB_ICONASTERISK``, ``MB_ICONEXCLAMATION``, ``MB_ICONHAND``, ``MB_ICONQUEST...
.. function:: MessageBeep(type=MB_OK) Call the underlying :c:func:`!MessageBeep` function from the Platform API. This plays a sound as specified in the registry. The *type* argument specifies which sound to play; possible values are ``-1``, ``MB_ICONASTERISK``, ``MB_ICONEXCLAMATION``, ``MB_ICONHAND``, ``MB_ICONQUEST...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a100168d-e7bf-4e43-8639-2b7086d16fd5
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,281
supabase-export-v2
2dd9341b7c13e403
.. data:: SND_ALIAS The *sound* parameter is a sound association name from the registry. If the registry contains no such name, play the system default sound unless :const:`SND_NODEFAULT` is also specified. If no default sound is registered, raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`.
trusted_official_docs
CPython Docs
.. data:: SND_ALIAS The *sound* parameter is a sound association name from the registry. If the registry contains no such name, play the system default sound unless :const:`SND_NODEFAULT` is also specified. If no default sound is registered, raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`.
.. data:: SND_ALIAS The *sound* parameter is a sound association name from the registry. If the registry contains no such name, play the system default sound unless :const:`SND_NODEFAULT` is also specified. If no default sound is registered, raise :exc:`RuntimeError`. Do not use with :const:`SND_FILENAME`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e6f08f69-68c4-4288-8bbf-67504ce19af1
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,283
supabase-export-v2
b727bc523e714837
All Win32 systems support at least the following; most systems support many more: +--------------------------+----------------------------------------+ | :func:`PlaySound` *name* | Corresponding Control Panel Sound name | +==========================+========================================+ | ``'SystemAsterisk'`` | ...
trusted_official_docs
CPython Docs
All Win32 systems support at least the following; most systems support many more: +--------------------------+----------------------------------------+ | :func:`PlaySound` *name* | Corresponding Control Panel Sound name | +==========================+========================================+ | ``'SystemAsterisk'`` | ...
All Win32 systems support at least the following; most systems support many more: +--------------------------+----------------------------------------+ | :func:`PlaySound` *name* | Corresponding Control Panel Sound name | +==========================+========================================+ | ``'SystemAsterisk'`` | ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f66c4db6-db7d-4aa6-8776-6f7859d96e90
CPython Docs
file://datasets/cpython/Doc/library/winsound.rst
unknown
81418472-ae5d-4ca1-8319-114516795236
18,273
supabase-export-v2
2b309bc6020340de
.. function:: Beep(frequency, duration) Beep the PC's speaker. The *frequency* parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The *duration* parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, :exc:`R...
trusted_official_docs
CPython Docs
.. function:: Beep(frequency, duration) Beep the PC's speaker. The *frequency* parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The *duration* parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, :exc:`R...
.. function:: Beep(frequency, duration) Beep the PC's speaker. The *frequency* parameter specifies frequency, in hertz, of the sound, and must be in the range 37 through 32,767. The *duration* parameter specifies the number of milliseconds the sound should last. If the system is not able to beep the speaker, :exc:`R...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0619d302-b48b-4952-8d9f-f5003e61fdc2
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,343
supabase-export-v2
9741391f51a09dd2
pickle file that you want to examine comes from an untrusted source, ``-m pickletools`` is a safer option because it does not execute pickle bytecode. For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:
trusted_official_docs
CPython Docs
pickle file that you want to examine comes from an untrusted source, ``-m pickletools`` is a safer option because it does not execute pickle bytecode. For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:
pickle file that you want to examine comes from an untrusted source, ``-m pickletools`` is a safer option because it does not execute pickle bytecode. For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b516683-5e0f-4acf-b2c3-78ddb1714756
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,361
supabase-export-v2
d746933d29894749
A pickle file to read, or ``-`` to indicate reading from standard input. .. versionadded:: next Output is in color by default and can be :ref:`controlled using environment variables <using-on-controlling-color>`.
trusted_official_docs
CPython Docs
A pickle file to read, or ``-`` to indicate reading from standard input. .. versionadded:: next Output is in color by default and can be :ref:`controlled using environment variables <using-on-controlling-color>`.
A pickle file to read, or ``-`` to indicate reading from standard input. .. versionadded:: next Output is in color by default and can be :ref:`controlled using environment variables <using-on-controlling-color>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2627868e-273d-4efc-ac1a-d6a3528624f0
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,342
supabase-export-v2
a035ce0d4313eda5
.. versionadded:: 3.2 When invoked from the command line, ``python -m pickletools`` will disassemble the contents of one or more pickle files. Note that if you want to see the Python object stored in the pickle rather than the details of pickle format, you may want to use ``-m pickle`` instead. However, when the pickle...
trusted_official_docs
CPython Docs
.. versionadded:: 3.2 When invoked from the command line, ``python -m pickletools`` will disassemble the contents of one or more pickle files. Note that if you want to see the Python object stored in the pickle rather than the details of pickle format, you may want to use ``-m pickle`` instead. However, when the pickle...
.. versionadded:: 3.2 When invoked from the command line, ``python -m pickletools`` will disassemble the contents of one or more pickle files. Note that if you want to see the Python object stored in the pickle rather than the details of pickle format, you may want to use ``-m pickle`` instead. However, when the pickle...
python, official-docs, cpython, P0
Local_Trusted_Corpus
45ff27ab-ea56-42b0-8fe3-fcad77f36397
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,365
supabase-export-v2
de13e76440e4ac60
in the output is annotated with a short description. The value of *annotate* is used as a hint for the column where annotation should start. .. versionchanged:: 3.2 Added the *annotate* parameter.
trusted_official_docs
CPython Docs
in the output is annotated with a short description. The value of *annotate* is used as a hint for the column where annotation should start. .. versionchanged:: 3.2 Added the *annotate* parameter.
in the output is annotated with a short description. The value of *annotate* is used as a hint for the column where annotation should start. .. versionchanged:: 3.2 Added the *annotate* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
90f3bca8-6389-46b5-8b1d-635486d25e43
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,338
supabase-export-v2
ba6e57943cb4ff05
-------------- This module contains various constants relating to the intimate details of the :mod:`pickle` module, some lengthy comments about the implementation, and a few useful functions for analyzing pickled data. The contents of this module are useful for Python core developers who are working on the :mod:`pickle...
trusted_official_docs
CPython Docs
-------------- This module contains various constants relating to the intimate details of the :mod:`pickle` module, some lengthy comments about the implementation, and a few useful functions for analyzing pickled data. The contents of this module are useful for Python core developers who are working on the :mod:`pickle...
-------------- This module contains various constants relating to the intimate details of the :mod:`pickle` module, some lengthy comments about the implementation, and a few useful functions for analyzing pickled data. The contents of this module are useful for Python core developers who are working on the :mod:`pickle...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b11aeb6e-d7cc-4719-9397-fc9d6b928b0a
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,364
supabase-export-v2
9c53091b3bef6c63
.. function:: dis(pickle, out=None, memo=None, indentlevel=4, annotate=0) Outputs a symbolic disassembly of the pickle to the file-like object *out*, defaulting to ``sys.stdout``. *pickle* can be a string or a file-like object. *memo* can be a Python dictionary that will be used as the pickle's memo; it can be used ...
trusted_official_docs
CPython Docs
.. function:: dis(pickle, out=None, memo=None, indentlevel=4, annotate=0) Outputs a symbolic disassembly of the pickle to the file-like object *out*, defaulting to ``sys.stdout``. *pickle* can be a string or a file-like object. *memo* can be a Python dictionary that will be used as the pickle's memo; it can be used ...
.. function:: dis(pickle, out=None, memo=None, indentlevel=4, annotate=0) Outputs a symbolic disassembly of the pickle to the file-like object *out*, defaulting to ``sys.stdout``. *pickle* can be a string or a file-like object. *memo* can be a Python dictionary that will be used as the pickle's memo; it can be used ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b503fc22-c3a9-4b05-ac10-e9bd226f00c3
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,367
supabase-export-v2
cb392db4a45a84b6
.. function:: genops(pickle) Provides an :term:`iterator` over all of the opcodes in a pickle, returning a sequence of ``(opcode, arg, pos)`` triples. *opcode* is an instance of an :class:`OpcodeInfo` class; *arg* is the decoded value, as a Python object, of the opcode's argument; *pos* is the position at which this...
trusted_official_docs
CPython Docs
.. function:: genops(pickle) Provides an :term:`iterator` over all of the opcodes in a pickle, returning a sequence of ``(opcode, arg, pos)`` triples. *opcode* is an instance of an :class:`OpcodeInfo` class; *arg* is the decoded value, as a Python object, of the opcode's argument; *pos* is the position at which this...
.. function:: genops(pickle) Provides an :term:`iterator` over all of the opcodes in a pickle, returning a sequence of ``(opcode, arg, pos)`` triples. *opcode* is an instance of an :class:`OpcodeInfo` class; *arg* is the decoded value, as a Python object, of the opcode's argument; *pos* is the position at which this...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c1650d52-8326-42da-a4ba-5425c7f5d218
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,346
supabase-export-v2
08fe81b9c6cf5159
$ python -m pickle x.pickle (1, 2) $ python -m pickletools x.pickle 0: \x80 PROTO 3 2: K BININT1 1 4: K BININT1 2 6: \x86 TUPLE2 7: q BINPUT 0 9: . STOP highest protocol among opcodes = 2
trusted_official_docs
CPython Docs
$ python -m pickle x.pickle (1, 2) $ python -m pickletools x.pickle 0: \x80 PROTO 3 2: K BININT1 1 4: K BININT1 2 6: \x86 TUPLE2 7: q BINPUT 0 9: . STOP highest protocol among opcodes = 2
$ python -m pickle x.pickle (1, 2) $ python -m pickletools x.pickle 0: \x80 PROTO 3 2: K BININT1 1 4: K BININT1 2 6: \x86 TUPLE2 7: q BINPUT 0 9: . STOP highest protocol among opcodes = 2
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe5dd3cc-7e68-42f9-bae5-c058909ebbee
CPython Docs
file://datasets/cpython/Doc/library/pickletools.rst
unknown
374be36c-c4ca-4abf-ad35-b427e07660fe
18,369
supabase-export-v2
bb8b828e313b78c8
.. function:: optimize(picklestring) Returns a new equivalent pickle string after eliminating unused ``PUT`` opcodes. The optimized pickle is shorter, takes less transmission time, requires less storage space, and unpickles more efficiently.
trusted_official_docs
CPython Docs
.. function:: optimize(picklestring) Returns a new equivalent pickle string after eliminating unused ``PUT`` opcodes. The optimized pickle is shorter, takes less transmission time, requires less storage space, and unpickles more efficiently.
.. function:: optimize(picklestring) Returns a new equivalent pickle string after eliminating unused ``PUT`` opcodes. The optimized pickle is shorter, takes less transmission time, requires less storage space, and unpickles more efficiently.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1fb28ae8-2699-489c-b570-b253a5a939e7
CPython Docs
file://datasets/cpython/Doc/library/distribution.rst
unknown
97dfa11b-b54d-4f55-9df1-0c5b3fe15cff
18,371
supabase-export-v2
2add90371fc0c99c
*********************************** Software Packaging and Distribution *********************************** These libraries help you with publishing and installing Python software. While these modules are designed to work in conjunction with the `Python Package Index <https://pypi.org>`__, they can also be used with a ...
trusted_official_docs
CPython Docs
*********************************** Software Packaging and Distribution *********************************** These libraries help you with publishing and installing Python software. While these modules are designed to work in conjunction with the `Python Package Index <https://pypi.org>`__, they can also be used with a ...
*********************************** Software Packaging and Distribution *********************************** These libraries help you with publishing and installing Python software. While these modules are designed to work in conjunction with the `Python Package Index <https://pypi.org>`__, they can also be used with a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
01bd4b7a-babe-445d-8d6a-8c9ef09b8db5
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,448
supabase-export-v2
2ba3f603659321bb
Enable *capability* (see :rfc:`5161`). Most capabilities do not need to be enabled. Currently only the ``UTF8=ACCEPT`` capability is supported (see :RFC:`6855`). .. versionadded:: 3.5 The :meth:`enable` method itself, and :RFC:`6855` support.
trusted_official_docs
CPython Docs
Enable *capability* (see :rfc:`5161`). Most capabilities do not need to be enabled. Currently only the ``UTF8=ACCEPT`` capability is supported (see :RFC:`6855`). .. versionadded:: 3.5 The :meth:`enable` method itself, and :RFC:`6855` support.
Enable *capability* (see :rfc:`5161`). Most capabilities do not need to be enabled. Currently only the ``UTF8=ACCEPT`` capability is supported (see :RFC:`6855`). .. versionadded:: 3.5 The :meth:`enable` method itself, and :RFC:`6855` support.
python, official-docs, cpython, P0
Local_Trusted_Corpus
01ff94fc-abde-4cba-a431-5fc54f88909f
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,480
supabase-export-v2
4b9374b68c39e2f9
.. note:: The :class:`!Idler` class name and structure are internal interfaces, subject to change. Calling code can rely on its context management, iteration, and public method to remain stable, but should not subclass, instantiate, compare, or otherwise directly reference the class.
trusted_official_docs
CPython Docs
.. note:: The :class:`!Idler` class name and structure are internal interfaces, subject to change. Calling code can rely on its context management, iteration, and public method to remain stable, but should not subclass, instantiate, compare, or otherwise directly reference the class.
.. note:: The :class:`!Idler` class name and structure are internal interfaces, subject to change. Calling code can rely on its context management, iteration, and public method to remain stable, but should not subclass, instantiate, compare, or otherwise directly reference the class.
python, official-docs, cpython, P0
Local_Trusted_Corpus
04838742-537f-4607-97d7-003a8b6cf377
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,500
supabase-export-v2
9ec3db0619cdf7f3
.. method:: IMAP4.open(host, port, timeout=None) Opens socket to *port* at *host*. The optional *timeout* parameter specifies a timeout in seconds for the connection attempt. If timeout is not given or is ``None``, the global default socket timeout is used. Also note that if the *timeout* parameter is set to be zero,...
trusted_official_docs
CPython Docs
.. method:: IMAP4.open(host, port, timeout=None) Opens socket to *port* at *host*. The optional *timeout* parameter specifies a timeout in seconds for the connection attempt. If timeout is not given or is ``None``, the global default socket timeout is used. Also note that if the *timeout* parameter is set to be zero,...
.. method:: IMAP4.open(host, port, timeout=None) Opens socket to *port* at *host*. The optional *timeout* parameter specifies a timeout in seconds for the connection attempt. If timeout is not given or is ``None``, the global default socket timeout is used. Also note that if the *timeout* parameter is set to be zero,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
08ffca16-104c-4441-aaca-09437bf5d5b9
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,394
supabase-export-v2
15d757eea3c8bf7b
.. exception:: IMAP4.readonly This exception is raised when a writable mailbox has its status changed by the server. This is a sub-class of :exc:`IMAP4.error`. Some other client now has write permission, and the mailbox will need to be re-opened to re-obtain write permission.
trusted_official_docs
CPython Docs
.. exception:: IMAP4.readonly This exception is raised when a writable mailbox has its status changed by the server. This is a sub-class of :exc:`IMAP4.error`. Some other client now has write permission, and the mailbox will need to be re-opened to re-obtain write permission.
.. exception:: IMAP4.readonly This exception is raised when a writable mailbox has its status changed by the server. This is a sub-class of :exc:`IMAP4.error`. Some other client now has write permission, and the mailbox will need to be re-opened to re-obtain write permission.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b3085eb-f894-41c7-ab7c-74e1902f3b7b
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,385
supabase-export-v2
69bfd3168829ffb7
The :class:`IMAP4` class supports the :keyword:`with` statement. When used like this, the IMAP4 ``LOGOUT`` command is issued automatically when the :keyword:`!with` statement exits. E.g.:: >>> from imaplib import IMAP4 >>> with IMAP4("domain.org") as M: ... M.noop() ... ('OK', [b'Nothing Accomplished. d25if65hy903we...
trusted_official_docs
CPython Docs
The :class:`IMAP4` class supports the :keyword:`with` statement. When used like this, the IMAP4 ``LOGOUT`` command is issued automatically when the :keyword:`!with` statement exits. E.g.:: >>> from imaplib import IMAP4 >>> with IMAP4("domain.org") as M: ... M.noop() ... ('OK', [b'Nothing Accomplished. d25if65hy903we...
The :class:`IMAP4` class supports the :keyword:`with` statement. When used like this, the IMAP4 ``LOGOUT`` command is issued automatically when the :keyword:`!with` statement exits. E.g.:: >>> from imaplib import IMAP4 >>> with IMAP4("domain.org") as M: ... M.noop() ... ('OK', [b'Nothing Accomplished. d25if65hy903we...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1d4f40f3-4678-41e1-8a5f-026e3caf8f72
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,501
supabase-export-v2
ee754e754ac36367
:class:`IMAP4` constructor. The connection objects established by this method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`, :meth:`IMAP4.send`, and :meth:`IMAP4.shutdown` methods. You may override this method. .. audit-event:: imaplib.open self,host,port imaplib.IMAP4.open
trusted_official_docs
CPython Docs
:class:`IMAP4` constructor. The connection objects established by this method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`, :meth:`IMAP4.send`, and :meth:`IMAP4.shutdown` methods. You may override this method. .. audit-event:: imaplib.open self,host,port imaplib.IMAP4.open
:class:`IMAP4` constructor. The connection objects established by this method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`, :meth:`IMAP4.send`, and :meth:`IMAP4.shutdown` methods. You may override this method. .. audit-event:: imaplib.open self,host,port imaplib.IMAP4.open
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ee341e4-5858-4b27-977e-d1bc3bd98d05
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,421
supabase-export-v2
e20a228b4f78af1e
All IMAP4rev1 commands are represented by methods of the same name, either uppercase or lowercase. All arguments to commands are converted to strings, except for ``AUTHENTICATE``, and the last argument to ``APPEND`` which is passed as an IMAP4 literal. If necessary (the string contains IMAP4 protocol-sensitive characte...
trusted_official_docs
CPython Docs
All IMAP4rev1 commands are represented by methods of the same name, either uppercase or lowercase. All arguments to commands are converted to strings, except for ``AUTHENTICATE``, and the last argument to ``APPEND`` which is passed as an IMAP4 literal. If necessary (the string contains IMAP4 protocol-sensitive characte...
All IMAP4rev1 commands are represented by methods of the same name, either uppercase or lowercase. All arguments to commands are converted to strings, except for ``AUTHENTICATE``, and the last argument to ``APPEND`` which is passed as an IMAP4 literal. If necessary (the string contains IMAP4 protocol-sensitive characte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2490b4cd-e530-4563-920a-93fcf2f3cf02
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,414
supabase-export-v2
cae018939842f773
.. function:: Time2Internaldate(date_time) Convert *date_time* to an IMAP4 ``INTERNALDATE`` representation. The return value is a string in the form: ``"DD-Mmm-YYYY HH:MM:SS +HHMM"`` (including double-quotes). The *date_time* argument can be a number (int or float) representing seconds since epoch (as returned by :f...
trusted_official_docs
CPython Docs
.. function:: Time2Internaldate(date_time) Convert *date_time* to an IMAP4 ``INTERNALDATE`` representation. The return value is a string in the form: ``"DD-Mmm-YYYY HH:MM:SS +HHMM"`` (including double-quotes). The *date_time* argument can be a number (int or float) representing seconds since epoch (as returned by :f...
.. function:: Time2Internaldate(date_time) Convert *date_time* to an IMAP4 ``INTERNALDATE`` representation. The return value is a string in the form: ``"DD-Mmm-YYYY HH:MM:SS +HHMM"`` (including double-quotes). The *date_time* argument can be a number (int or float) representing seconds since epoch (as returned by :f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
25e67fe9-20b9-4c90-9d7e-440ff2f0ff0a
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,466
supabase-export-v2
098bd1af8be785e1
Responses are represented as ``(type, [data, ...])`` tuples, as described in :ref:`IMAP4 Objects <imap4-objects>`. The *duration* argument sets a maximum duration (in seconds) to keep idling, after which any ongoing iteration will stop. It can be an :class:`int` or :class:`float`, or ``None`` for no time limit. Calle...
trusted_official_docs
CPython Docs
Responses are represented as ``(type, [data, ...])`` tuples, as described in :ref:`IMAP4 Objects <imap4-objects>`. The *duration* argument sets a maximum duration (in seconds) to keep idling, after which any ongoing iteration will stop. It can be an :class:`int` or :class:`float`, or ``None`` for no time limit. Calle...
Responses are represented as ``(type, [data, ...])`` tuples, as described in :ref:`IMAP4 Objects <imap4-objects>`. The *duration* argument sets a maximum duration (in seconds) to keep idling, after which any ongoing iteration will stop. It can be an :class:`int` or :class:`float`, or ``None`` for no time limit. Calle...
python, official-docs, cpython, P0
Local_Trusted_Corpus
25ece080-b874-47ce-9d91-63385e2f9582
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,558
supabase-export-v2
c512aee39aed1a80
Thread members consist of zero or more messages numbers, delimited by spaces, indicating successive parent and child. Thread has two arguments before the *search_criterion* argument(s); a *threading_algorithm*, and the searching *charset*. Note that unlike ``search``, the searching *charset* argument is mandatory. Th...
trusted_official_docs
CPython Docs
Thread members consist of zero or more messages numbers, delimited by spaces, indicating successive parent and child. Thread has two arguments before the *search_criterion* argument(s); a *threading_algorithm*, and the searching *charset*. Note that unlike ``search``, the searching *charset* argument is mandatory. Th...
Thread members consist of zero or more messages numbers, delimited by spaces, indicating successive parent and child. Thread has two arguments before the *search_criterion* argument(s); a *threading_algorithm*, and the searching *charset*. Note that unlike ``search``, the searching *charset* argument is mandatory. Th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
26ebbc7e-72a0-4fb2-ad74-85c334a52097
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,383
supabase-export-v2
2a704ad45f24c997
.. class:: IMAP4(host='', port=IMAP4_PORT, timeout=None) This class implements the actual IMAP4 protocol. The connection is created and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is initialized. If *host* is not specified, ``''`` (the local host) is used. If *port* is omitted, the standard...
trusted_official_docs
CPython Docs
.. class:: IMAP4(host='', port=IMAP4_PORT, timeout=None) This class implements the actual IMAP4 protocol. The connection is created and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is initialized. If *host* is not specified, ``''`` (the local host) is used. If *port* is omitted, the standard...
.. class:: IMAP4(host='', port=IMAP4_PORT, timeout=None) This class implements the actual IMAP4 protocol. The connection is created and protocol version (IMAP4 or IMAP4rev1) is determined when the instance is initialized. If *host* is not specified, ``''`` (the local host) is used. If *port* is omitted, the standard...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2730b79c-cf6b-4d67-bba8-0e82a4c7db4b
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,471
supabase-export-v2
d078d339c20b6b97
Yield a burst of responses no more than *interval* seconds apart (expressed as an :class:`int` or :class:`float`). This :term:`generator` is an alternative to iterating one response at a time, intended to aid in efficient batch processing. It retrieves the next response along with any immediately available subsequent...
trusted_official_docs
CPython Docs
Yield a burst of responses no more than *interval* seconds apart (expressed as an :class:`int` or :class:`float`). This :term:`generator` is an alternative to iterating one response at a time, intended to aid in efficient batch processing. It retrieves the next response along with any immediately available subsequent...
Yield a burst of responses no more than *interval* seconds apart (expressed as an :class:`int` or :class:`float`). This :term:`generator` is an alternative to iterating one response at a time, intended to aid in efficient batch processing. It retrieves the next response along with any immediately available subsequent...
python, official-docs, cpython, P0
Local_Trusted_Corpus
331e1fa8-bf89-4f53-84ee-8a2995c1e7ee
CPython Docs
file://datasets/cpython/Doc/library/imaplib.rst
unknown
664c2bc9-0281-46d5-a4ec-22afd589f5a4
18,565
supabase-export-v2
332f39d982bbc4db
.. method:: IMAP4.unselect() :meth:`imaplib.IMAP4.unselect` frees server's resources associated with the selected mailbox and returns the server to the authenticated state. This command performs the same actions as :meth:`imaplib.IMAP4.close`, except that no messages are permanently removed from the currently selec...
trusted_official_docs
CPython Docs
.. method:: IMAP4.unselect() :meth:`imaplib.IMAP4.unselect` frees server's resources associated with the selected mailbox and returns the server to the authenticated state. This command performs the same actions as :meth:`imaplib.IMAP4.close`, except that no messages are permanently removed from the currently selec...
.. method:: IMAP4.unselect() :meth:`imaplib.IMAP4.unselect` frees server's resources associated with the selected mailbox and returns the server to the authenticated state. This command performs the same actions as :meth:`imaplib.IMAP4.close`, except that no messages are permanently removed from the currently selec...
python, official-docs, cpython, P0
Local_Trusted_Corpus