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
285571b6-d7a7-48d8-ac7b-5e8f0698cbd9
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,636
supabase-export-v2
2c91bd474b308f7e
is called to parse the input. During parsing, methods on the handler objects are called based on structural and syntactic events from the input data. For these objects, only the interfaces are relevant; they are normally not instantiated by the application itself. Since Python does not have an explicit notion of interf...
trusted_official_docs
CPython Docs
is called to parse the input. During parsing, methods on the handler objects are called based on structural and syntactic events from the input data. For these objects, only the interfaces are relevant; they are normally not instantiated by the application itself. Since Python does not have an explicit notion of interf...
is called to parse the input. During parsing, methods on the handler objects are called based on structural and syntactic events from the input data. For these objects, only the interfaces are relevant; they are normally not instantiated by the application itself. Since Python does not have an explicit notion of interf...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40c1690c-6be1-4844-9c60-9def1f3f41fb
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,645
supabase-export-v2
ee8a5a83975562a7
.. exception:: SAXNotRecognizedException(msg, exception=None) Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader.XMLReader` is confronted with an unrecognized feature or property. SAX applications and extensions may use this class for similar purposes.
trusted_official_docs
CPython Docs
.. exception:: SAXNotRecognizedException(msg, exception=None) Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader.XMLReader` is confronted with an unrecognized feature or property. SAX applications and extensions may use this class for similar purposes.
.. exception:: SAXNotRecognizedException(msg, exception=None) Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader.XMLReader` is confronted with an unrecognized feature or property. SAX applications and extensions may use this class for similar purposes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a85a677-9c3e-42e6-be73-d7161d8141be
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,647
supabase-export-v2
8c87b52ac5815595
.. exception:: SAXNotSupportedException(msg, exception=None) Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader.XMLReader` is asked to enable a feature that is not supported, or to set a property to a value that the implementation does not support. SAX applications and extensions may use th...
trusted_official_docs
CPython Docs
.. exception:: SAXNotSupportedException(msg, exception=None) Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader.XMLReader` is asked to enable a feature that is not supported, or to set a property to a value that the implementation does not support. SAX applications and extensions may use th...
.. exception:: SAXNotSupportedException(msg, exception=None) Subclass of :exc:`SAXException` raised when a SAX :class:`~xml.sax.xmlreader.XMLReader` is asked to enable a feature that is not supported, or to set a property to a value that the implementation does not support. SAX applications and extensions may use th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
748efb1c-ca53-431e-aaea-32c38e443776
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,650
supabase-export-v2
3d0cbb7f324b0774
point for the definition of the SAX API. It provides a Java implementation and online documentation. Links to implementations and historical information are also available. Module :mod:`xml.sax.handler` Definitions of the interfaces for application-provided objects.
trusted_official_docs
CPython Docs
point for the definition of the SAX API. It provides a Java implementation and online documentation. Links to implementations and historical information are also available. Module :mod:`xml.sax.handler` Definitions of the interfaces for application-provided objects.
point for the definition of the SAX API. It provides a Java implementation and online documentation. Links to implementations and historical information are also available. Module :mod:`xml.sax.handler` Definitions of the interfaces for application-provided objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7555fc91-8c40-4b2d-b051-1108addbfe45
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,628
supabase-export-v2
e2a93264bbc37954
.. function:: make_parser(parser_list=[]) Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The first parser found will be used. If *parser_list* is provided, it must be an iterable of strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* wi...
trusted_official_docs
CPython Docs
.. function:: make_parser(parser_list=[]) Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The first parser found will be used. If *parser_list* is provided, it must be an iterable of strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* wi...
.. function:: make_parser(parser_list=[]) Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The first parser found will be used. If *parser_list* is provided, it must be an iterable of strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* wi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
75beaf70-fc60-4886-844a-eef4c1728151
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,641
supabase-export-v2
25932190ccd19b4e
optional *exception* parameter, if given, should be ``None`` or an exception that was caught by the parsing code and is being passed along as information. This is the base class for the other SAX exception classes.
trusted_official_docs
CPython Docs
optional *exception* parameter, if given, should be ``None`` or an exception that was caught by the parsing code and is being passed along as information. This is the base class for the other SAX exception classes.
optional *exception* parameter, if given, should be ``None`` or an exception that was caught by the parsing code and is being passed along as information. This is the base class for the other SAX exception classes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7700c5e7-60e9-4e28-b80a-707773184c51
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,625
supabase-export-v2
6234ffbee9eb54b2
.. versionchanged:: 3.7.1 The SAX parser no longer processes general external entities by default to increase security. Before, the parser created network connections to fetch remote files or loaded local files from the file system for DTD and entities. The feature can be enabled again with method :meth:`~xml.sax.x...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.7.1 The SAX parser no longer processes general external entities by default to increase security. Before, the parser created network connections to fetch remote files or loaded local files from the file system for DTD and entities. The feature can be enabled again with method :meth:`~xml.sax.x...
.. versionchanged:: 3.7.1 The SAX parser no longer processes general external entities by default to increase security. Before, the parser created network connections to fetch remote files or loaded local files from the file system for DTD and entities. The feature can be enabled again with method :meth:`~xml.sax.x...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7df70213-c628-49aa-b83e-605ab357cd0a
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,629
supabase-export-v2
21a9794ffe5f3926
strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* will be used before modules in the default list of parsers. .. versionchanged:: 3.8 The *parser_list* argument can be any iterable, not just a list.
trusted_official_docs
CPython Docs
strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* will be used before modules in the default list of parsers. .. versionchanged:: 3.8 The *parser_list* argument can be any iterable, not just a list.
strings which name modules that have a function named :func:`create_parser`. Modules listed in *parser_list* will be used before modules in the default list of parsers. .. versionchanged:: 3.8 The *parser_list* argument can be any iterable, not just a list.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b38fe654-18d3-4b42-a8e8-fcb002ca9c2f
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,637
supabase-export-v2
3f6d094c8b278e36
defined in :mod:`xml.sax.handler`. For convenience, :class:`~xml.sax.xmlreader.InputSource` (which is often instantiated directly) and the handler classes are also available from :mod:`!xml.sax`. These interfaces are described below. In addition to these classes, :mod:`!xml.sax` provides the following exception classes...
trusted_official_docs
CPython Docs
defined in :mod:`xml.sax.handler`. For convenience, :class:`~xml.sax.xmlreader.InputSource` (which is often instantiated directly) and the handler classes are also available from :mod:`!xml.sax`. These interfaces are described below. In addition to these classes, :mod:`!xml.sax` provides the following exception classes...
defined in :mod:`xml.sax.handler`. For convenience, :class:`~xml.sax.xmlreader.InputSource` (which is often instantiated directly) and the handler classes are also available from :mod:`!xml.sax`. These interfaces are described below. In addition to these classes, :mod:`!xml.sax` provides the following exception classes...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9390664-8694-44dd-8c48-6dabc7942a9f
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,640
supabase-export-v2
926dc583d312e050
interface receive instances of this exception, it is not required to actually raise the exception --- it is also useful as a container for information. When instantiated, *msg* should be a human-readable description of the error. The optional *exception* parameter, if given, should be ``None`` or an exception that was...
trusted_official_docs
CPython Docs
interface receive instances of this exception, it is not required to actually raise the exception --- it is also useful as a container for information. When instantiated, *msg* should be a human-readable description of the error. The optional *exception* parameter, if given, should be ``None`` or an exception that was...
interface receive instances of this exception, it is not required to actually raise the exception --- it is also useful as a container for information. When instantiated, *msg* should be a human-readable description of the error. The optional *exception* parameter, if given, should be ``None`` or an exception that was...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc7b79bd-a8f2-4547-9dec-32bbb78a1fd7
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,621
supabase-export-v2
a05a4d642a500dff
-------------- The :mod:`!xml.sax` package provides a number of modules which implement the Simple API for XML (SAX) interface for Python. The package itself provides the SAX exceptions and the convenience functions which will be most used by users of the SAX API.
trusted_official_docs
CPython Docs
-------------- The :mod:`!xml.sax` package provides a number of modules which implement the Simple API for XML (SAX) interface for Python. The package itself provides the SAX exceptions and the convenience functions which will be most used by users of the SAX API.
-------------- The :mod:`!xml.sax` package provides a number of modules which implement the Simple API for XML (SAX) interface for Python. The package itself provides the SAX exceptions and the convenience functions which will be most used by users of the SAX API.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc822090-0a55-4f70-a0a1-fb306797bd2f
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,643
supabase-export-v2
38a3a311e8b76334
.. exception:: SAXParseException(msg, exception, locator) Subclass of :exc:`SAXException` raised on parse errors. Instances of this class are passed to the methods of the SAX :class:`~xml.sax.handler.ErrorHandler` interface to provide information about the parse error. This class supports the SAX :class:`~xml.sax.x...
trusted_official_docs
CPython Docs
.. exception:: SAXParseException(msg, exception, locator) Subclass of :exc:`SAXException` raised on parse errors. Instances of this class are passed to the methods of the SAX :class:`~xml.sax.handler.ErrorHandler` interface to provide information about the parse error. This class supports the SAX :class:`~xml.sax.x...
.. exception:: SAXParseException(msg, exception, locator) Subclass of :exc:`SAXException` raised on parse errors. Instances of this class are passed to the methods of the SAX :class:`~xml.sax.handler.ErrorHandler` interface to provide information about the parse error. This class supports the SAX :class:`~xml.sax.x...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca13588b-efb4-47fd-8fa4-05cdcd594c6b
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,635
supabase-export-v2
3bd5554e53bd6fdf
.. versionchanged:: 3.5 Added support of :class:`str` instances. A typical SAX application uses three kinds of objects: readers, handlers and input sources. "Reader" in this context is another term for parser, i.e. some piece of code that reads the bytes or characters from the input source, and produces a sequence of e...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5 Added support of :class:`str` instances. A typical SAX application uses three kinds of objects: readers, handlers and input sources. "Reader" in this context is another term for parser, i.e. some piece of code that reads the bytes or characters from the input source, and produces a sequence of e...
.. versionchanged:: 3.5 Added support of :class:`str` instances. A typical SAX application uses three kinds of objects: readers, handlers and input sources. "Reader" in this context is another term for parser, i.e. some piece of code that reads the bytes or characters from the input source, and produces a sequence of e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce0a1343-3f8f-4b00-af25-8fd2b9a1668d
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,631
supabase-export-v2
b01af168e5f395d7
.. function:: parse(filename_or_stream, handler, error_handler=handler.ErrorHandler()) Create a SAX parser and use it to parse a document. The document, passed in as *filename_or_stream*, can be a filename or a file object. The *handler* parameter needs to be a SAX :class:`~handler.ContentHandler` instance. If *erro...
trusted_official_docs
CPython Docs
.. function:: parse(filename_or_stream, handler, error_handler=handler.ErrorHandler()) Create a SAX parser and use it to parse a document. The document, passed in as *filename_or_stream*, can be a filename or a file object. The *handler* parameter needs to be a SAX :class:`~handler.ContentHandler` instance. If *erro...
.. function:: parse(filename_or_stream, handler, error_handler=handler.ErrorHandler()) Create a SAX parser and use it to parse a document. The document, passed in as *filename_or_stream*, can be a filename or a file object. The *handler* parameter needs to be a SAX :class:`~handler.ContentHandler` instance. If *erro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d43cf0fe-9911-4933-bbf3-41c88cbe7436
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,632
supabase-export-v2
705ef60332c74fa6
instance; if omitted, :exc:`SAXParseException` will be raised on all errors. There is no return value; all work must be done by the *handler* passed in. .. function:: parseString(string, handler, error_handler=handler.ErrorHandler())
trusted_official_docs
CPython Docs
instance; if omitted, :exc:`SAXParseException` will be raised on all errors. There is no return value; all work must be done by the *handler* passed in. .. function:: parseString(string, handler, error_handler=handler.ErrorHandler())
instance; if omitted, :exc:`SAXParseException` will be raised on all errors. There is no return value; all work must be done by the *handler* passed in. .. function:: parseString(string, handler, error_handler=handler.ErrorHandler())
python, official-docs, cpython, P0
Local_Trusted_Corpus
f2dcbcfe-9550-4351-979a-b80822d36e27
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,649
supabase-export-v2
ea7653ba6d28c253
.. seealso:: `SAX: The Simple API for XML <http://www.saxproject.org/>`_ This site is the focal point for the definition of the SAX API. It provides a Java implementation and online documentation. Links to implementations and historical information are also available.
trusted_official_docs
CPython Docs
.. seealso:: `SAX: The Simple API for XML <http://www.saxproject.org/>`_ This site is the focal point for the definition of the SAX API. It provides a Java implementation and online documentation. Links to implementations and historical information are also available.
.. seealso:: `SAX: The Simple API for XML <http://www.saxproject.org/>`_ This site is the focal point for the definition of the SAX API. It provides a Java implementation and online documentation. Links to implementations and historical information are also available.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ff2da7fc-265a-440e-a6cc-700420407253
CPython Docs
file://datasets/cpython/Doc/library/xml.sax.rst
unknown
51e3f59f-684e-4338-82cc-c2f09b013811
19,639
supabase-export-v2
106d7dfd188018f0
.. exception:: SAXException(msg, exception=None) Encapsulate an XML error or warning. This class can contain basic error or warning information from either the XML parser or the application: it can be subclassed to provide additional functionality or to add localization. Note that although the handlers defined in th...
trusted_official_docs
CPython Docs
.. exception:: SAXException(msg, exception=None) Encapsulate an XML error or warning. This class can contain basic error or warning information from either the XML parser or the application: it can be subclassed to provide additional functionality or to add localization. Note that although the handlers defined in th...
.. exception:: SAXException(msg, exception=None) Encapsulate an XML error or warning. This class can contain basic error or warning information from either the XML parser or the application: it can be subclassed to provide additional functionality or to add localization. Note that although the handlers defined in th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e5f035d-8275-4b1a-b9b9-bd47ae3dae45
CPython Docs
file://datasets/cpython/Doc/library/compression.rst
unknown
a550a543-5535-42f3-a8b5-900c36c5a9f7
19,663
supabase-export-v2
1cfc30e72513f8a7
their original names for compatibility reasons, and will not be removed without a deprecation cycle. The use of modules in :mod:`!compression` is encouraged where practical. * :mod:`!compression.bz2` -- Re-exports :mod:`bz2` * :mod:`!compression.gzip` -- Re-exports :mod:`gzip` * :mod:`!compression.lzma` -- Re-exports :...
trusted_official_docs
CPython Docs
their original names for compatibility reasons, and will not be removed without a deprecation cycle. The use of modules in :mod:`!compression` is encouraged where practical. * :mod:`!compression.bz2` -- Re-exports :mod:`bz2` * :mod:`!compression.gzip` -- Re-exports :mod:`gzip` * :mod:`!compression.lzma` -- Re-exports :...
their original names for compatibility reasons, and will not be removed without a deprecation cycle. The use of modules in :mod:`!compression` is encouraged where practical. * :mod:`!compression.bz2` -- Re-exports :mod:`bz2` * :mod:`!compression.gzip` -- Re-exports :mod:`gzip` * :mod:`!compression.lzma` -- Re-exports :...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f818346f-7da1-4989-a074-80cabe852f51
CPython Docs
file://datasets/cpython/Doc/library/compression.rst
unknown
a550a543-5535-42f3-a8b5-900c36c5a9f7
19,662
supabase-export-v2
f3e9412f009577e0
.. versionadded:: 3.14 The :mod:`!compression` package contains the canonical compression modules containing interfaces to several different compression algorithms. Some of these modules have historically been available as separate modules; those will continue to be available under their original names for compatibilit...
trusted_official_docs
CPython Docs
.. versionadded:: 3.14 The :mod:`!compression` package contains the canonical compression modules containing interfaces to several different compression algorithms. Some of these modules have historically been available as separate modules; those will continue to be available under their original names for compatibilit...
.. versionadded:: 3.14 The :mod:`!compression` package contains the canonical compression modules containing interfaces to several different compression algorithms. Some of these modules have historically been available as separate modules; those will continue to be available under their original names for compatibilit...
python, official-docs, cpython, P0
Local_Trusted_Corpus
03388639-caa5-451e-969e-7ee8f1fa2be5
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,870
supabase-export-v2
3ddd8fb0ee135293
.. method:: format(limit=None, most_recent_first=False) Format the traceback as a list of lines. Use the :mod:`linecache` module to retrieve lines from the source code. If *limit* is set, format the *limit* most recent frames if *limit* is positive. Otherwise, format the ``abs(limit)`` oldest frames. If *most_recent...
trusted_official_docs
CPython Docs
.. method:: format(limit=None, most_recent_first=False) Format the traceback as a list of lines. Use the :mod:`linecache` module to retrieve lines from the source code. If *limit* is set, format the *limit* most recent frames if *limit* is positive. Otherwise, format the ``abs(limit)`` oldest frames. If *most_recent...
.. method:: format(limit=None, most_recent_first=False) Format the traceback as a list of lines. Use the :mod:`linecache` module to retrieve lines from the source code. If *limit* is set, format the *limit* most recent frames if *limit* is positive. Otherwise, format the ``abs(limit)`` oldest frames. If *most_recent...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0d20f36e-09d6-4a58-9604-4268a0808904
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,670
supabase-export-v2
0d8c83ea41fac24c
The tracemalloc module is a debug tool to trace memory blocks allocated by Python. It provides the following information: * Traceback where an object was allocated * Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated memory blocks * Compute the diff...
trusted_official_docs
CPython Docs
The tracemalloc module is a debug tool to trace memory blocks allocated by Python. It provides the following information: * Traceback where an object was allocated * Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated memory blocks * Compute the diff...
The tracemalloc module is a debug tool to trace memory blocks allocated by Python. It provides the following information: * Traceback where an object was allocated * Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated memory blocks * Compute the diff...
python, official-docs, cpython, P0
Local_Trusted_Corpus
13740212-d6da-4226-a466-29e9d02d2abe
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,702
supabase-export-v2
2839f9deaa8a3616
Example of output of the Python test suite (traceback limited to 25 frames):: 903 memory blocks: 870.1 KiB File "<frozen importlib._bootstrap>", line 716 File "<frozen importlib._bootstrap>", line 1036 File "<frozen importlib._bootstrap>", line 934 File "<frozen importlib._bootstrap>", line 1068 File "<frozen impo...
trusted_official_docs
CPython Docs
Example of output of the Python test suite (traceback limited to 25 frames):: 903 memory blocks: 870.1 KiB File "<frozen importlib._bootstrap>", line 716 File "<frozen importlib._bootstrap>", line 1036 File "<frozen importlib._bootstrap>", line 934 File "<frozen importlib._bootstrap>", line 1068 File "<frozen impo...
Example of output of the Python test suite (traceback limited to 25 frames):: 903 memory blocks: 870.1 KiB File "<frozen importlib._bootstrap>", line 716 File "<frozen importlib._bootstrap>", line 1036 File "<frozen importlib._bootstrap>", line 934 File "<frozen importlib._bootstrap>", line 1068 File "<frozen impo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
13787116-9f9b-404f-94ba-c18a9c9698ce
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,727
supabase-export-v2
b2a2e649dc432cfa
first_size=664, first_peak=3592984 second_size=804, second_peak=29704 Using :func:`reset_peak` ensured we could accurately record the peak during the computation of ``small_sum``, even though it is much smaller than the overall peak size of memory blocks since the :func:`start` call. Without the call to :func:`reset_pe...
trusted_official_docs
CPython Docs
first_size=664, first_peak=3592984 second_size=804, second_peak=29704 Using :func:`reset_peak` ensured we could accurately record the peak during the computation of ``small_sum``, even though it is much smaller than the overall peak size of memory blocks since the :func:`start` call. Without the call to :func:`reset_pe...
first_size=664, first_peak=3592984 second_size=804, second_peak=29704 Using :func:`reset_peak` ensured we could accurately record the peak during the computation of ``small_sum``, even though it is much smaller than the overall peak size of memory blocks since the :func:`start` call. Without the call to :func:`reset_pe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
14bc9459-ccb6-4bcb-b0ae-9cce62aaa892
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,864
supabase-export-v2
cd2879a53fa664f3
frames of the traceback is stored in the :attr:`Traceback.total_nframe` attribute. That allows one to know if a traceback has been truncated by the traceback limit. The :attr:`Trace.traceback` attribute is a :class:`Traceback` instance.
trusted_official_docs
CPython Docs
frames of the traceback is stored in the :attr:`Traceback.total_nframe` attribute. That allows one to know if a traceback has been truncated by the traceback limit. The :attr:`Trace.traceback` attribute is a :class:`Traceback` instance.
frames of the traceback is stored in the :attr:`Traceback.total_nframe` attribute. That allows one to know if a traceback has been truncated by the traceback limit. The :attr:`Trace.traceback` attribute is a :class:`Traceback` instance.
python, official-docs, cpython, P0
Local_Trusted_Corpus
15379594-cd87-48cb-aec5-93a1f88b15da
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,786
supabase-export-v2
b1f7abac29c68430
Address space of a memory block (``int`` or ``None``). tracemalloc uses the domain ``0`` to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
trusted_official_docs
CPython Docs
Address space of a memory block (``int`` or ``None``). tracemalloc uses the domain ``0`` to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
Address space of a memory block (``int`` or ``None``). tracemalloc uses the domain ``0`` to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2b2be0a3-4d71-43f7-9958-f2f6a9bf8b1c
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,810
supabase-export-v2
dcd9ca8539aa9297
.. method:: filter_traces(filters) Create a new :class:`Snapshot` instance with a filtered :attr:`traces` sequence, *filters* is a list of :class:`DomainFilter` and :class:`Filter` instances. If *filters* is an empty list, return a new :class:`Snapshot` instance with a copy of the traces.
trusted_official_docs
CPython Docs
.. method:: filter_traces(filters) Create a new :class:`Snapshot` instance with a filtered :attr:`traces` sequence, *filters* is a list of :class:`DomainFilter` and :class:`Filter` instances. If *filters* is an empty list, return a new :class:`Snapshot` instance with a copy of the traces.
.. method:: filter_traces(filters) Create a new :class:`Snapshot` instance with a filtered :attr:`traces` sequence, *filters* is a list of :class:`DomainFilter` and :class:`Filter` instances. If *filters* is an empty list, return a new :class:`Snapshot` instance with a copy of the traces.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ce01cf5-19be-49f4-b1ad-1c969044d496
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,681
supabase-export-v2
66c9dfea9ca3501a
Example of output of the Python test suite:: [ Top 10 ] <frozen importlib._bootstrap>:716: size=4855 KiB, count=39328, average=126 B <frozen importlib._bootstrap>:284: size=521 KiB, count=3199, average=167 B /usr/lib/python3.4/collections/__init__.py:368: size=244 KiB, count=2315, average=108 B /usr/lib/python3.4/u...
trusted_official_docs
CPython Docs
Example of output of the Python test suite:: [ Top 10 ] <frozen importlib._bootstrap>:716: size=4855 KiB, count=39328, average=126 B <frozen importlib._bootstrap>:284: size=521 KiB, count=3199, average=167 B /usr/lib/python3.4/collections/__init__.py:368: size=244 KiB, count=2315, average=108 B /usr/lib/python3.4/u...
Example of output of the Python test suite:: [ Top 10 ] <frozen importlib._bootstrap>:716: size=4855 KiB, count=39328, average=126 B <frozen importlib._bootstrap>:284: size=521 KiB, count=3199, average=167 B /usr/lib/python3.4/collections/__init__.py:368: size=244 KiB, count=2315, average=108 B /usr/lib/python3.4/u...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2f0758d0-0040-439a-9228-7252f95b5387
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,760
supabase-export-v2
923d6c20e4d1e0ca
Stop tracing Python memory allocations: uninstall hooks on Python memory allocators. Also clears all previously collected traces of memory blocks allocated by Python. Call :func:`take_snapshot` function to take a snapshot of traces before clearing them.
trusted_official_docs
CPython Docs
Stop tracing Python memory allocations: uninstall hooks on Python memory allocators. Also clears all previously collected traces of memory blocks allocated by Python. Call :func:`take_snapshot` function to take a snapshot of traces before clearing them.
Stop tracing Python memory allocations: uninstall hooks on Python memory allocators. Also clears all previously collected traces of memory blocks allocated by Python. Call :func:`take_snapshot` function to take a snapshot of traces before clearing them.
python, official-docs, cpython, P0
Local_Trusted_Corpus
321aa67b-2def-40e2-b201-b512b76196a4
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,753
supabase-export-v2
4056f3b918a0b7b7
default, a trace of a memory block only stores the most recent frame: the limit is ``1``. *nframe* must be greater or equal to ``1``. You can still read the original number of total frames that composed the traceback by looking at the :attr:`Traceback.total_nframe` attribute.
trusted_official_docs
CPython Docs
default, a trace of a memory block only stores the most recent frame: the limit is ``1``. *nframe* must be greater or equal to ``1``. You can still read the original number of total frames that composed the traceback by looking at the :attr:`Traceback.total_nframe` attribute.
default, a trace of a memory block only stores the most recent frame: the limit is ``1``. *nframe* must be greater or equal to ``1``. You can still read the original number of total frames that composed the traceback by looking at the :attr:`Traceback.total_nframe` attribute.
python, official-docs, cpython, P0
Local_Trusted_Corpus
35b44725-dde9-4ac2-87b4-855640eca19f
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,703
supabase-export-v2
c042c48014bcac7a
match_tests=ns.match_tests) File "/usr/lib/python3.4/test/regrtest.py", line 1563 main() File "/usr/lib/python3.4/test/__main__.py", line 3 regrtest.main_in_temp_cwd() File "/usr/lib/python3.4/runpy.py", line 73 exec(code, run_globals) File "/usr/lib/python3.4/runpy.py", line 160 "__main__", fname, loader, pkg_name) We...
trusted_official_docs
CPython Docs
match_tests=ns.match_tests) File "/usr/lib/python3.4/test/regrtest.py", line 1563 main() File "/usr/lib/python3.4/test/__main__.py", line 3 regrtest.main_in_temp_cwd() File "/usr/lib/python3.4/runpy.py", line 73 exec(code, run_globals) File "/usr/lib/python3.4/runpy.py", line 160 "__main__", fname, loader, pkg_name) We...
match_tests=ns.match_tests) File "/usr/lib/python3.4/test/regrtest.py", line 1563 main() File "/usr/lib/python3.4/test/__main__.py", line 3 regrtest.main_in_temp_cwd() File "/usr/lib/python3.4/runpy.py", line 73 exec(code, run_globals) File "/usr/lib/python3.4/runpy.py", line 160 "__main__", fname, loader, pkg_name) We...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ed4940c-4043-48c9-adab-909be7443e2f
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,764
supabase-export-v2
c9000b2e2e44975e
Take a snapshot of traces of memory blocks allocated by Python. Return a new :class:`Snapshot` instance. The snapshot does not include memory blocks allocated before the :mod:`!tracemalloc` module started to trace memory allocations.
trusted_official_docs
CPython Docs
Take a snapshot of traces of memory blocks allocated by Python. Return a new :class:`Snapshot` instance. The snapshot does not include memory blocks allocated before the :mod:`!tracemalloc` module started to trace memory allocations.
Take a snapshot of traces of memory blocks allocated by Python. Return a new :class:`Snapshot` instance. The snapshot does not include memory blocks allocated before the :mod:`!tracemalloc` module started to trace memory allocations.
python, official-docs, cpython, P0
Local_Trusted_Corpus
466c50f8-1005-4845-8a5d-a6af11c023b7
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,736
supabase-export-v2
90035ec54ca2e953
Get the maximum number of frames stored in the traceback of a trace. The :mod:`!tracemalloc` module must be tracing memory allocations to get the limit, otherwise an exception is raised.
trusted_official_docs
CPython Docs
Get the maximum number of frames stored in the traceback of a trace. The :mod:`!tracemalloc` module must be tracing memory allocations to get the limit, otherwise an exception is raised.
Get the maximum number of frames stored in the traceback of a trace. The :mod:`!tracemalloc` module must be tracing memory allocations to get the limit, otherwise an exception is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4be92a97-7c8c-4e9a-b7ce-b505a45568dd
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,714
supabase-export-v2
e16c9900abe72118
Example of output of the Python test suite:: Top 10 lines #1: Lib/base64.py:414: 419.8 KiB _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars] #2: Lib/base64.py:306: 419.8 KiB _a85chars2 = [(a + b) for a in _a85chars for b in _a85chars] #3: collections/__init__.py:368: 293.6 KiB exec(class_definition, na...
trusted_official_docs
CPython Docs
Example of output of the Python test suite:: Top 10 lines #1: Lib/base64.py:414: 419.8 KiB _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars] #2: Lib/base64.py:306: 419.8 KiB _a85chars2 = [(a + b) for a in _a85chars for b in _a85chars] #3: collections/__init__.py:368: 293.6 KiB exec(class_definition, na...
Example of output of the Python test suite:: Top 10 lines #1: Lib/base64.py:414: 419.8 KiB _b85chars2 = [(a + b) for a in _b85chars for b in _b85chars] #2: Lib/base64.py:306: 419.8 KiB _a85chars2 = [(a + b) for a in _a85chars for b in _a85chars] #3: collections/__init__.py:368: 293.6 KiB exec(class_definition, na...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5127d95a-dfa7-4840-93d6-f33791091321
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,693
supabase-export-v2
09ab5cb3ac02315d
snapshot was taken. Similarly, the :mod:`linecache` module has cached ``940 KiB`` of Python source code to format tracebacks, all of it since the previous snapshot. If the system has little free memory, snapshots can be written on disk using the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the...
trusted_official_docs
CPython Docs
snapshot was taken. Similarly, the :mod:`linecache` module has cached ``940 KiB`` of Python source code to format tracebacks, all of it since the previous snapshot. If the system has little free memory, snapshots can be written on disk using the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the...
snapshot was taken. Similarly, the :mod:`linecache` module has cached ``940 KiB`` of Python source code to format tracebacks, all of it since the previous snapshot. If the system has little free memory, snapshots can be written on disk using the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
51aa0091-f83e-4c06-821c-a328b0541ec0
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,766
supabase-export-v2
320c8f17fe01a8e9
Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use the *nframe* parameter of the :func:`start` function to store more frames. The :mod:`!tracemalloc` module must be tracing memory allocations to take a snapshot, see the :func:`start` function.
trusted_official_docs
CPython Docs
Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use the *nframe* parameter of the :func:`start` function to store more frames. The :mod:`!tracemalloc` module must be tracing memory allocations to take a snapshot, see the :func:`start` function.
Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use the *nframe* parameter of the :func:`start` function to store more frames. The :mod:`!tracemalloc` module must be tracing memory allocations to take a snapshot, see the :func:`start` function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5b432cdc-e42a-4edd-b3b7-d07992620a9a
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,709
supabase-export-v2
113457ee4c491be7
1): frame = stat.traceback[0] print("#%s: %s:%s: %.1f KiB" % (index, frame.filename, frame.lineno, stat.size / 1024)) line = linecache.getline(frame.filename, frame.lineno).strip() if line: print(' %s' % line) other = top_stats[limit:] if other: size = sum(stat.size for stat in other) print("%s other: %.1f KiB" % (l...
trusted_official_docs
CPython Docs
1): frame = stat.traceback[0] print("#%s: %s:%s: %.1f KiB" % (index, frame.filename, frame.lineno, stat.size / 1024)) line = linecache.getline(frame.filename, frame.lineno).strip() if line: print(' %s' % line) other = top_stats[limit:] if other: size = sum(stat.size for stat in other) print("%s other: %.1f KiB" % (l...
1): frame = stat.traceback[0] print("#%s: %s:%s: %.1f KiB" % (index, frame.filename, frame.lineno, stat.size / 1024)) line = linecache.getline(frame.filename, frame.lineno).strip() if line: print(' %s' % line) other = top_stats[limit:] if other: size = sum(stat.size for stat in other) print("%s other: %.1f KiB" % (l...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5c267c5b-7b5d-4236-9db8-669d97df77ff
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,782
supabase-export-v2
0f6054b1e5eb2c5e
* ``Filter(True, subprocess.__file__)`` only includes traces of the :mod:`subprocess` module * ``Filter(False, tracemalloc.__file__)`` excludes traces of the :mod:`!tracemalloc` module * ``Filter(False, "<unknown>")`` excludes empty tracebacks .. versionchanged:: 3.5 The ``'.pyo'`` file extension is no longer replaced...
trusted_official_docs
CPython Docs
* ``Filter(True, subprocess.__file__)`` only includes traces of the :mod:`subprocess` module * ``Filter(False, tracemalloc.__file__)`` excludes traces of the :mod:`!tracemalloc` module * ``Filter(False, "<unknown>")`` excludes empty tracebacks .. versionchanged:: 3.5 The ``'.pyo'`` file extension is no longer replaced...
* ``Filter(True, subprocess.__file__)`` only includes traces of the :mod:`subprocess` module * ``Filter(False, tracemalloc.__file__)`` excludes traces of the :mod:`!tracemalloc` module * ``Filter(False, "<unknown>")`` excludes empty tracebacks .. versionchanged:: 3.5 The ``'.pyo'`` file extension is no longer replaced...
python, official-docs, cpython, P0
Local_Trusted_Corpus
604b85ee-88f3-4c3e-a41f-c928e932dc51
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,717
supabase-export-v2
f9c7627585f42e6f
Record the current and peak size of all traced memory blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The following code computes two sums like ``0 + 1 + 2 + ...`` inefficiently, by creating a list of those numbers. This list consumes a lot of memory temporarily. We can use :func:`get_traced_memory`...
trusted_official_docs
CPython Docs
Record the current and peak size of all traced memory blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The following code computes two sums like ``0 + 1 + 2 + ...`` inefficiently, by creating a list of those numbers. This list consumes a lot of memory temporarily. We can use :func:`get_traced_memory`...
Record the current and peak size of all traced memory blocks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The following code computes two sums like ``0 + 1 + 2 + ...`` inefficiently, by creating a list of those numbers. This list consumes a lot of memory temporarily. We can use :func:`get_traced_memory`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
61f653af-304c-4207-b55e-317fc03a2868
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,805
supabase-export-v2
73d3cc7ad38ca628
See the :meth:`Snapshot.statistics` method for *key_type* and *cumulative* parameters. The result is sorted from the biggest to the smallest by: absolute value of :attr:`StatisticDiff.size_diff`, :attr:`StatisticDiff.size`, absolute value of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by :attr...
trusted_official_docs
CPython Docs
See the :meth:`Snapshot.statistics` method for *key_type* and *cumulative* parameters. The result is sorted from the biggest to the smallest by: absolute value of :attr:`StatisticDiff.size_diff`, :attr:`StatisticDiff.size`, absolute value of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by :attr...
See the :meth:`Snapshot.statistics` method for *key_type* and *cumulative* parameters. The result is sorted from the biggest to the smallest by: absolute value of :attr:`StatisticDiff.size_diff`, :attr:`StatisticDiff.size`, absolute value of :attr:`StatisticDiff.count_diff`, :attr:`Statistic.count` and then by :attr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6bf07950-4c38-43dc-b377-010f4f7726df
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,708
supabase-export-v2
fb02ac4c1fea6906
def display_top(snapshot, key_type='lineno', limit=10): snapshot = snapshot.filter_traces(( tracemalloc.Filter(False, "<frozen importlib._bootstrap>"), tracemalloc.Filter(False, "<unknown>"), )) top_stats = snapshot.statistics(key_type) print("Top %s lines" % limit) for index, stat in enumerate(top_stats[:limit], 1): ...
trusted_official_docs
CPython Docs
def display_top(snapshot, key_type='lineno', limit=10): snapshot = snapshot.filter_traces(( tracemalloc.Filter(False, "<frozen importlib._bootstrap>"), tracemalloc.Filter(False, "<unknown>"), )) top_stats = snapshot.statistics(key_type) print("Top %s lines" % limit) for index, stat in enumerate(top_stats[:limit], 1): ...
def display_top(snapshot, key_type='lineno', limit=10): snapshot = snapshot.filter_traces(( tracemalloc.Filter(False, "<frozen importlib._bootstrap>"), tracemalloc.Filter(False, "<unknown>"), )) top_stats = snapshot.statistics(key_type) print("Top %s lines" % limit) for index, stat in enumerate(top_stats[:limit], 1): ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f195946-b6c0-425b-aad7-b027eec9ff8d
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,683
supabase-export-v2
17d21fbc9443128f
can see that Python loaded ``4855 KiB`` data (bytecode and constants) from modules and that the :mod:`collections` module allocated ``244 KiB`` to build :class:`~collections.namedtuple` types. See :meth:`Snapshot.statistics` for more options.
trusted_official_docs
CPython Docs
can see that Python loaded ``4855 KiB`` data (bytecode and constants) from modules and that the :mod:`collections` module allocated ``244 KiB`` to build :class:`~collections.namedtuple` types. See :meth:`Snapshot.statistics` for more options.
can see that Python loaded ``4855 KiB`` data (bytecode and constants) from modules and that the :mod:`collections` module allocated ``244 KiB`` to build :class:`~collections.namedtuple` types. See :meth:`Snapshot.statistics` for more options.
python, official-docs, cpython, P0
Local_Trusted_Corpus
700d9721-021e-4615-8dc8-77a2454e1d96
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,855
supabase-export-v2
ec3a3a8aca38d3e3
Address space of a memory block (``int``). Read-only property. tracemalloc uses the domain ``0`` to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
trusted_official_docs
CPython Docs
Address space of a memory block (``int``). Read-only property. tracemalloc uses the domain ``0`` to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
Address space of a memory block (``int``). Read-only property. tracemalloc uses the domain ``0`` to trace memory allocations made by Python. C extensions can use other domains to trace other resources.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7519c881-d9a3-4c68-8e57-26275b1bf9f5
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,819
supabase-export-v2
85ab423ce0084723
===================== ======================== key_type description ===================== ======================== ``'filename'`` filename ``'lineno'`` filename and line number ``'traceback'`` traceback ===================== ======================== If *cumulative* is ``True``, cumulate size and count of memory blocks ...
trusted_official_docs
CPython Docs
===================== ======================== key_type description ===================== ======================== ``'filename'`` filename ``'lineno'`` filename and line number ``'traceback'`` traceback ===================== ======================== If *cumulative* is ``True``, cumulate size and count of memory blocks ...
===================== ======================== key_type description ===================== ======================== ``'filename'`` filename ``'lineno'`` filename and line number ``'traceback'`` traceback ===================== ======================== If *cumulative* is ``True``, cumulate size and count of memory blocks ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
78221f14-5b9c-4964-9fe6-76cd69163d29
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,752
supabase-export-v2
489ea083ab737662
.. function:: start(nframe: int=1) Start tracing Python memory allocations: install hooks on Python memory allocators. Collected tracebacks of traces will be limited to *nframe* frames. By default, a trace of a memory block only stores the most recent frame: the limit is ``1``. *nframe* must be greater or equal to `...
trusted_official_docs
CPython Docs
.. function:: start(nframe: int=1) Start tracing Python memory allocations: install hooks on Python memory allocators. Collected tracebacks of traces will be limited to *nframe* frames. By default, a trace of a memory block only stores the most recent frame: the limit is ``1``. *nframe* must be greater or equal to `...
.. function:: start(nframe: int=1) Start tracing Python memory allocations: install hooks on Python memory allocators. Collected tracebacks of traces will be limited to *nframe* frames. By default, a trace of a memory block only stores the most recent frame: the limit is ``1``. *nframe* must be greater or equal to `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
788a9efc-21c8-486b-9910-33a662654add
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,868
supabase-export-v2
f428247b411daa42
Total number of frames that composed the traceback before truncation. This attribute can be set to ``None`` if the information is not available. .. versionchanged:: 3.9 The :attr:`Traceback.total_nframe` attribute was added.
trusted_official_docs
CPython Docs
Total number of frames that composed the traceback before truncation. This attribute can be set to ``None`` if the information is not available. .. versionchanged:: 3.9 The :attr:`Traceback.total_nframe` attribute was added.
Total number of frames that composed the traceback before truncation. This attribute can be set to ``None`` if the information is not available. .. versionchanged:: 3.9 The :attr:`Traceback.total_nframe` attribute was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
82b50414-e802-4e1b-9be8-441df9db61ff
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,812
supabase-export-v2
2501e50af60c99d0
applied at once, a trace is ignored if no inclusive filters match it. A trace is ignored if at least one exclusive filter matches it. .. versionchanged:: 3.6 :class:`DomainFilter` instances are now also accepted in *filters*.
trusted_official_docs
CPython Docs
applied at once, a trace is ignored if no inclusive filters match it. A trace is ignored if at least one exclusive filter matches it. .. versionchanged:: 3.6 :class:`DomainFilter` instances are now also accepted in *filters*.
applied at once, a trace is ignored if no inclusive filters match it. A trace is ignored if at least one exclusive filter matches it. .. versionchanged:: 3.6 :class:`DomainFilter` instances are now also accepted in *filters*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
83364ecc-2890-440f-962d-709a054be535
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,732
supabase-export-v2
c59a86e8268d0a6e
.. function:: get_object_traceback(obj) Get the traceback where the Python object *obj* was allocated. Return a :class:`Traceback` instance, or ``None`` if the :mod:`!tracemalloc` module is not tracing memory allocations or did not trace the allocation of the object.
trusted_official_docs
CPython Docs
.. function:: get_object_traceback(obj) Get the traceback where the Python object *obj* was allocated. Return a :class:`Traceback` instance, or ``None`` if the :mod:`!tracemalloc` module is not tracing memory allocations or did not trace the allocation of the object.
.. function:: get_object_traceback(obj) Get the traceback where the Python object *obj* was allocated. Return a :class:`Traceback` instance, or ``None`` if the :mod:`!tracemalloc` module is not tracing memory allocations or did not trace the allocation of the object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a0e5c88-374a-43c6-b10e-82ccc7ae7ed8
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,811
supabase-export-v2
a782a21e213305bd
is a list of :class:`DomainFilter` and :class:`Filter` instances. If *filters* is an empty list, return a new :class:`Snapshot` instance with a copy of the traces. All inclusive filters are applied at once, a trace is ignored if no inclusive filters match it. A trace is ignored if at least one exclusive filter matche...
trusted_official_docs
CPython Docs
is a list of :class:`DomainFilter` and :class:`Filter` instances. If *filters* is an empty list, return a new :class:`Snapshot` instance with a copy of the traces. All inclusive filters are applied at once, a trace is ignored if no inclusive filters match it. A trace is ignored if at least one exclusive filter matche...
is a list of :class:`DomainFilter` and :class:`Filter` instances. If *filters* is an empty list, return a new :class:`Snapshot` instance with a copy of the traces. All inclusive filters are applied at once, a trace is ignored if no inclusive filters match it. A trace is ignored if at least one exclusive filter matche...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f820606-8050-4606-a235-b2aac7ad4f34
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,862
supabase-export-v2
c821accb04f82e7a
Sequence of :class:`Frame` instances sorted from the oldest frame to the most recent frame. A traceback contains at least ``1`` frame. If the ``tracemalloc`` module failed to get a frame, the filename ``"<unknown>"`` at line number ``0`` is used.
trusted_official_docs
CPython Docs
Sequence of :class:`Frame` instances sorted from the oldest frame to the most recent frame. A traceback contains at least ``1`` frame. If the ``tracemalloc`` module failed to get a frame, the filename ``"<unknown>"`` at line number ``0`` is used.
Sequence of :class:`Frame` instances sorted from the oldest frame to the most recent frame. A traceback contains at least ``1`` frame. If the ``tracemalloc`` module failed to get a frame, the filename ``"<unknown>"`` at line number ``0`` is used.
python, official-docs, cpython, P0
Local_Trusted_Corpus
986a5371-70f9-432b-a006-a5520c2d246c
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,671
supabase-export-v2
90964a9a663999e5
and per line number: total size, number and average size of allocated memory blocks * Compute the differences between two snapshots to detect memory leaks To trace most memory blocks allocated by Python, the module should be started as early as possible by setting the :envvar:`PYTHONTRACEMALLOC` environment variable to...
trusted_official_docs
CPython Docs
and per line number: total size, number and average size of allocated memory blocks * Compute the differences between two snapshots to detect memory leaks To trace most memory blocks allocated by Python, the module should be started as early as possible by setting the :envvar:`PYTHONTRACEMALLOC` environment variable to...
and per line number: total size, number and average size of allocated memory blocks * Compute the differences between two snapshots to detect memory leaks To trace most memory blocks allocated by Python, the module should be started as early as possible by setting the :envvar:`PYTHONTRACEMALLOC` environment variable to...
python, official-docs, cpython, P0
Local_Trusted_Corpus
995a4917-8bd8-4ede-976b-4c31e00e489f
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,755
supabase-export-v2
f1180d27b25fdb1a
Storing more than ``1`` frame is only useful to compute statistics grouped by ``'traceback'`` or to compute cumulative statistics: see the :meth:`Snapshot.compare_to` and :meth:`Snapshot.statistics` methods. Storing more frames increases the memory and CPU overhead of the :mod:`!tracemalloc` module. Use the :func:`get...
trusted_official_docs
CPython Docs
Storing more than ``1`` frame is only useful to compute statistics grouped by ``'traceback'`` or to compute cumulative statistics: see the :meth:`Snapshot.compare_to` and :meth:`Snapshot.statistics` methods. Storing more frames increases the memory and CPU overhead of the :mod:`!tracemalloc` module. Use the :func:`get...
Storing more than ``1`` frame is only useful to compute statistics grouped by ``'traceback'`` or to compute cumulative statistics: see the :meth:`Snapshot.compare_to` and :meth:`Snapshot.statistics` methods. Storing more frames increases the memory and CPU overhead of the :mod:`!tracemalloc` module. Use the :func:`get...
python, official-docs, cpython, P0
Local_Trusted_Corpus
99d3130b-cd28-454b-8c2f-40f30bfb8c7d
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,789
supabase-export-v2
d9a6ea98d5bdfb95
If *inclusive* is ``True`` (include), only match memory blocks allocated in a file with a name matching :attr:`filename_pattern` at line number :attr:`lineno`. If *inclusive* is ``False`` (exclude), ignore memory blocks allocated in a file with a name matching :attr:`filename_pattern` at line number :attr:`lineno`.
trusted_official_docs
CPython Docs
If *inclusive* is ``True`` (include), only match memory blocks allocated in a file with a name matching :attr:`filename_pattern` at line number :attr:`lineno`. If *inclusive* is ``False`` (exclude), ignore memory blocks allocated in a file with a name matching :attr:`filename_pattern` at line number :attr:`lineno`.
If *inclusive* is ``True`` (include), only match memory blocks allocated in a file with a name matching :attr:`filename_pattern` at line number :attr:`lineno`. If *inclusive* is ``False`` (exclude), ignore memory blocks allocated in a file with a name matching :attr:`filename_pattern` at line number :attr:`lineno`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3007ff3-7e04-4868-bee2-38eff02abf4f
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,756
supabase-export-v2
ca8ebcdd47dd73cf
increases the memory and CPU overhead of the :mod:`!tracemalloc` module. Use the :func:`get_tracemalloc_memory` function to measure how much memory is used by the :mod:`!tracemalloc` module. The :envvar:`PYTHONTRACEMALLOC` environment variable (``PYTHONTRACEMALLOC=NFRAME``) and the :option:`-X` ``tracemalloc=NFRAME`` ...
trusted_official_docs
CPython Docs
increases the memory and CPU overhead of the :mod:`!tracemalloc` module. Use the :func:`get_tracemalloc_memory` function to measure how much memory is used by the :mod:`!tracemalloc` module. The :envvar:`PYTHONTRACEMALLOC` environment variable (``PYTHONTRACEMALLOC=NFRAME``) and the :option:`-X` ``tracemalloc=NFRAME`` ...
increases the memory and CPU overhead of the :mod:`!tracemalloc` module. Use the :func:`get_tracemalloc_memory` function to measure how much memory is used by the :mod:`!tracemalloc` module. The :envvar:`PYTHONTRACEMALLOC` environment variable (``PYTHONTRACEMALLOC=NFRAME``) and the :option:`-X` ``tracemalloc=NFRAME`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a941e6e4-a3ab-409d-9947-1dc21d293614
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,692
supabase-export-v2
1210aaab5bcebaf9
KiB (+77.7 KiB), count=143 (+143), average=557 B /usr/lib/python3.4/urllib/parse.py:476: size=71.8 KiB (+71.8 KiB), count=969 (+969), average=76 B /usr/lib/python3.4/contextlib.py:38: size=67.2 KiB (+67.2 KiB), count=126 (+126), average=546 B We can see that Python has loaded ``8173 KiB`` of module data (bytecode and c...
trusted_official_docs
CPython Docs
KiB (+77.7 KiB), count=143 (+143), average=557 B /usr/lib/python3.4/urllib/parse.py:476: size=71.8 KiB (+71.8 KiB), count=969 (+969), average=76 B /usr/lib/python3.4/contextlib.py:38: size=67.2 KiB (+67.2 KiB), count=126 (+126), average=546 B We can see that Python has loaded ``8173 KiB`` of module data (bytecode and c...
KiB (+77.7 KiB), count=143 (+143), average=557 B /usr/lib/python3.4/urllib/parse.py:476: size=71.8 KiB (+71.8 KiB), count=969 (+969), average=76 B /usr/lib/python3.4/contextlib.py:38: size=67.2 KiB (+67.2 KiB), count=126 (+126), average=546 B We can see that Python has loaded ``8173 KiB`` of module data (bytecode and c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b531c47c-7ad9-41bc-a624-d125f44eff62
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,682
supabase-export-v2
76da0b0acc3fe6b2
importlib._bootstrap>:1446: size=70.4 KiB, count=911, average=79 B <frozen importlib._bootstrap>:1454: size=52.0 KiB, count=25, average=2131 B <string>:5: size=49.7 KiB, count=148, average=344 B /usr/lib/python3.4/sysconfig.py:411: size=48.0 KiB, count=1, average=48.0 KiB We can see that Python loaded ``4855 KiB`` data...
trusted_official_docs
CPython Docs
importlib._bootstrap>:1446: size=70.4 KiB, count=911, average=79 B <frozen importlib._bootstrap>:1454: size=52.0 KiB, count=25, average=2131 B <string>:5: size=49.7 KiB, count=148, average=344 B /usr/lib/python3.4/sysconfig.py:411: size=48.0 KiB, count=1, average=48.0 KiB We can see that Python loaded ``4855 KiB`` data...
importlib._bootstrap>:1446: size=70.4 KiB, count=911, average=79 B <frozen importlib._bootstrap>:1454: size=52.0 KiB, count=25, average=2131 B <string>:5: size=49.7 KiB, count=148, average=344 B /usr/lib/python3.4/sysconfig.py:411: size=48.0 KiB, count=1, average=48.0 KiB We can see that Python loaded ``4855 KiB`` data...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba97fd60-cc63-4688-a534-28f51132ba94
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,672
supabase-export-v2
9da1434f4bd5c49f
variable to ``1``, or by using :option:`-X` ``tracemalloc`` command line option. The :func:`tracemalloc.start` function can be called at runtime to start tracing Python memory allocations. By default, a trace of an allocated memory block only stores the most recent frame (1 frame). To store 25 frames at startup: set th...
trusted_official_docs
CPython Docs
variable to ``1``, or by using :option:`-X` ``tracemalloc`` command line option. The :func:`tracemalloc.start` function can be called at runtime to start tracing Python memory allocations. By default, a trace of an allocated memory block only stores the most recent frame (1 frame). To store 25 frames at startup: set th...
variable to ``1``, or by using :option:`-X` ``tracemalloc`` command line option. The :func:`tracemalloc.start` function can be called at runtime to start tracing Python memory allocations. By default, a trace of an allocated memory block only stores the most recent frame (1 frame). To store 25 frames at startup: set th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bdc51e67-b4b4-4b49-8047-1b9c41c2bcaf
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,820
supabase-export-v2
4b1585103e522f80
the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with *key_type* equal to ``'filename'`` and ``'lineno'``. The result is sorted from the biggest to the smallest by: :attr:`Statistic.size`, :attr:`Statistic.count` and then by :attr:`Statistic.traceback`.
trusted_official_docs
CPython Docs
the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with *key_type* equal to ``'filename'`` and ``'lineno'``. The result is sorted from the biggest to the smallest by: :attr:`Statistic.size`, :attr:`Statistic.count` and then by :attr:`Statistic.traceback`.
the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with *key_type* equal to ``'filename'`` and ``'lineno'``. The result is sorted from the biggest to the smallest by: :attr:`Statistic.size`, :attr:`Statistic.count` and then by :attr:`Statistic.traceback`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c34725b7-fd4b-4f40-a231-fe18b01f3ac2
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,700
supabase-export-v2
e69bf6f8be43171b
snapshot = tracemalloc.take_snapshot() top_stats = snapshot.statistics('traceback') # pick the biggest memory block stat = top_stats[0] print("%s memory blocks: %.1f KiB" % (stat.count, stat.size / 1024)) for line in stat.traceback.format(): print(line)
trusted_official_docs
CPython Docs
snapshot = tracemalloc.take_snapshot() top_stats = snapshot.statistics('traceback') # pick the biggest memory block stat = top_stats[0] print("%s memory blocks: %.1f KiB" % (stat.count, stat.size / 1024)) for line in stat.traceback.format(): print(line)
snapshot = tracemalloc.take_snapshot() top_stats = snapshot.statistics('traceback') # pick the biggest memory block stat = top_stats[0] print("%s memory blocks: %.1f KiB" % (stat.count, stat.size / 1024)) for line in stat.traceback.format(): print(line)
python, official-docs, cpython, P0
Local_Trusted_Corpus
c96e4b73-4a5c-4fb0-97dc-f341c2db1c33
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,743
supabase-export-v2
0c026345a46ad386
Do nothing if the :mod:`!tracemalloc` module is not tracing memory allocations. This function only modifies the recorded peak size, and does not modify or clear any traces, unlike :func:`clear_traces`. Snapshots taken with :func:`take_snapshot` before a call to :func:`reset_peak` can be meaningfully compared to snap...
trusted_official_docs
CPython Docs
Do nothing if the :mod:`!tracemalloc` module is not tracing memory allocations. This function only modifies the recorded peak size, and does not modify or clear any traces, unlike :func:`clear_traces`. Snapshots taken with :func:`take_snapshot` before a call to :func:`reset_peak` can be meaningfully compared to snap...
Do nothing if the :mod:`!tracemalloc` module is not tracing memory allocations. This function only modifies the recorded peak size, and does not modify or clear any traces, unlike :func:`clear_traces`. Snapshots taken with :func:`take_snapshot` before a call to :func:`reset_peak` can be meaningfully compared to snap...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca6de1c9-c6a5-4d16-8da1-20d2850dc220
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,701
supabase-export-v2
51c1c0684ec52338
# pick the biggest memory block stat = top_stats[0] print("%s memory blocks: %.1f KiB" % (stat.count, stat.size / 1024)) for line in stat.traceback.format(): print(line) Example of output of the Python test suite (traceback limited to 25 frames)::
trusted_official_docs
CPython Docs
# pick the biggest memory block stat = top_stats[0] print("%s memory blocks: %.1f KiB" % (stat.count, stat.size / 1024)) for line in stat.traceback.format(): print(line) Example of output of the Python test suite (traceback limited to 25 frames)::
# pick the biggest memory block stat = top_stats[0] print("%s memory blocks: %.1f KiB" % (stat.count, stat.size / 1024)) for line in stat.traceback.format(): print(line) Example of output of the Python test suite (traceback limited to 25 frames)::
python, official-docs, cpython, P0
Local_Trusted_Corpus
d090ee85-5f26-4e73-8a3c-3dda92aa1d88
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,871
supabase-export-v2
b8bb8d3815a404e5
the ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order of the formatted frames is reversed, returning the most recent frame first instead of last. Similar to the :func:`traceback.format_tb` function, except that :meth:`.format` does not include newlines.
trusted_official_docs
CPython Docs
the ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order of the formatted frames is reversed, returning the most recent frame first instead of last. Similar to the :func:`traceback.format_tb` function, except that :meth:`.format` does not include newlines.
the ``abs(limit)`` oldest frames. If *most_recent_first* is ``True``, the order of the formatted frames is reversed, returning the most recent frame first instead of last. Similar to the :func:`traceback.format_tb` function, except that :meth:`.format` does not include newlines.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d302059a-f51d-4adf-92f3-325c3dde9d95
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,691
supabase-export-v2
866aff552bdbaaa9
Example of output before/after running some tests of the Python test suite:: [ Top 10 differences ] <frozen importlib._bootstrap>:716: size=8173 KiB (+4428 KiB), count=71332 (+39369), average=117 B /usr/lib/python3.4/linecache.py:127: size=940 KiB (+940 KiB), count=8106 (+8106), average=119 B /usr/lib/python3.4/unit...
trusted_official_docs
CPython Docs
Example of output before/after running some tests of the Python test suite:: [ Top 10 differences ] <frozen importlib._bootstrap>:716: size=8173 KiB (+4428 KiB), count=71332 (+39369), average=117 B /usr/lib/python3.4/linecache.py:127: size=940 KiB (+940 KiB), count=8106 (+8106), average=119 B /usr/lib/python3.4/unit...
Example of output before/after running some tests of the Python test suite:: [ Top 10 differences ] <frozen importlib._bootstrap>:716: size=8173 KiB (+4428 KiB), count=71332 (+39369), average=117 B /usr/lib/python3.4/linecache.py:127: size=940 KiB (+940 KiB), count=8106 (+8106), average=119 B /usr/lib/python3.4/unit...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5828f88-b8cd-4008-8727-5f421bb12636
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,733
supabase-export-v2
68f62cb5d5f3440f
allocated. Return a :class:`Traceback` instance, or ``None`` if the :mod:`!tracemalloc` module is not tracing memory allocations or did not trace the allocation of the object. See also :func:`gc.get_referrers` and :func:`sys.getsizeof` functions.
trusted_official_docs
CPython Docs
allocated. Return a :class:`Traceback` instance, or ``None`` if the :mod:`!tracemalloc` module is not tracing memory allocations or did not trace the allocation of the object. See also :func:`gc.get_referrers` and :func:`sys.getsizeof` functions.
allocated. Return a :class:`Traceback` instance, or ``None`` if the :mod:`!tracemalloc` module is not tracing memory allocations or did not trace the allocation of the object. See also :func:`gc.get_referrers` and :func:`sys.getsizeof` functions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dce6bff6-7c18-4741-954d-c68d557bc7d0
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,765
supabase-export-v2
76c6d73da4cdd79f
The snapshot does not include memory blocks allocated before the :mod:`!tracemalloc` module started to trace memory allocations. Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use the *nframe* parameter of the :func:`start` function to store more frames.
trusted_official_docs
CPython Docs
The snapshot does not include memory blocks allocated before the :mod:`!tracemalloc` module started to trace memory allocations. Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use the *nframe* parameter of the :func:`start` function to store more frames.
The snapshot does not include memory blocks allocated before the :mod:`!tracemalloc` module started to trace memory allocations. Tracebacks of traces are limited to :func:`get_traceback_limit` frames. Use the *nframe* parameter of the :func:`start` function to store more frames.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e1dec6f2-07fe-4705-8cd5-cc07ccbbbfa2
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,863
supabase-export-v2
4bba5869152b4b62
A traceback contains at least ``1`` frame. If the ``tracemalloc`` module failed to get a frame, the filename ``"<unknown>"`` at line number ``0`` is used. When a snapshot is taken, tracebacks of traces are limited to :func:`get_traceback_limit` frames. See the :func:`take_snapshot` function. The original number of fra...
trusted_official_docs
CPython Docs
A traceback contains at least ``1`` frame. If the ``tracemalloc`` module failed to get a frame, the filename ``"<unknown>"`` at line number ``0`` is used. When a snapshot is taken, tracebacks of traces are limited to :func:`get_traceback_limit` frames. See the :func:`take_snapshot` function. The original number of fra...
A traceback contains at least ``1`` frame. If the ``tracemalloc`` module failed to get a frame, the filename ``"<unknown>"`` at line number ``0`` is used. When a snapshot is taken, tracebacks of traces are limited to :func:`get_traceback_limit` frames. See the :func:`take_snapshot` function. The original number of fra...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e3f795bd-8239-4d71-987d-11164605ef73
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,715
supabase-export-v2
45d3e0404ae69421
Lib/base64.py:142: 59.8 KiB _b32tab2 = [a + b for a in _b32tab for b in _b32tab] 6220 other: 3602.8 KiB Total allocated size: 5303.1 KiB See :meth:`Snapshot.statistics` for more options.
trusted_official_docs
CPython Docs
Lib/base64.py:142: 59.8 KiB _b32tab2 = [a + b for a in _b32tab for b in _b32tab] 6220 other: 3602.8 KiB Total allocated size: 5303.1 KiB See :meth:`Snapshot.statistics` for more options.
Lib/base64.py:142: 59.8 KiB _b32tab2 = [a + b for a in _b32tab for b in _b32tab] 6220 other: 3602.8 KiB Total allocated size: 5303.1 KiB See :meth:`Snapshot.statistics` for more options.
python, official-docs, cpython, P0
Local_Trusted_Corpus
eef05364-9bf1-4be5-b175-a24b28f4282b
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,754
supabase-export-v2
949f9ae6ba9d9cfb
You can still read the original number of total frames that composed the traceback by looking at the :attr:`Traceback.total_nframe` attribute. Storing more than ``1`` frame is only useful to compute statistics grouped by ``'traceback'`` or to compute cumulative statistics: see the :meth:`Snapshot.compare_to` and :met...
trusted_official_docs
CPython Docs
You can still read the original number of total frames that composed the traceback by looking at the :attr:`Traceback.total_nframe` attribute. Storing more than ``1`` frame is only useful to compute statistics grouped by ``'traceback'`` or to compute cumulative statistics: see the :meth:`Snapshot.compare_to` and :met...
You can still read the original number of total frames that composed the traceback by looking at the :attr:`Traceback.total_nframe` attribute. Storing more than ``1`` frame is only useful to compute statistics grouped by ``'traceback'`` or to compute cumulative statistics: see the :meth:`Snapshot.compare_to` and :met...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f12e886f-f633-4833-9e34-5d54c8021988
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,694
supabase-export-v2
1a87a4de0cbb5067
free memory, snapshots can be written on disk using the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the :meth:`Snapshot.load` method reload the snapshot. Get the traceback of a memory block ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trusted_official_docs
CPython Docs
free memory, snapshots can be written on disk using the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the :meth:`Snapshot.load` method reload the snapshot. Get the traceback of a memory block ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
free memory, snapshots can be written on disk using the :meth:`Snapshot.dump` method to analyze the snapshot offline. Then use the :meth:`Snapshot.load` method reload the snapshot. Get the traceback of a memory block ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc5bf31b-02a6-43d2-a424-ee5c0bd2834a
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,847
supabase-export-v2
84effda02a7ef243
.. attribute:: size_diff Difference of total size of memory blocks in bytes between the old and the new snapshots (``int``): ``0`` if the memory blocks have been allocated in the new snapshot.
trusted_official_docs
CPython Docs
.. attribute:: size_diff Difference of total size of memory blocks in bytes between the old and the new snapshots (``int``): ``0`` if the memory blocks have been allocated in the new snapshot.
.. attribute:: size_diff Difference of total size of memory blocks in bytes between the old and the new snapshots (``int``): ``0`` if the memory blocks have been allocated in the new snapshot.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fec473cd-5bbc-43f4-ada5-8f7704d7f333
CPython Docs
file://datasets/cpython/Doc/library/tracemalloc.rst
unknown
3fb65af2-ecde-4436-9f6f-b1e6243ef9d8
19,796
supabase-export-v2
58d21f87c8403440
If *all_frames* is ``True``, all frames of the traceback are checked. If *all_frames* is ``False``, only the most recent frame is checked. This attribute has no effect if the traceback limit is ``1``. See the :func:`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` attribute.
trusted_official_docs
CPython Docs
If *all_frames* is ``True``, all frames of the traceback are checked. If *all_frames* is ``False``, only the most recent frame is checked. This attribute has no effect if the traceback limit is ``1``. See the :func:`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` attribute.
If *all_frames* is ``True``, all frames of the traceback are checked. If *all_frames* is ``False``, only the most recent frame is checked. This attribute has no effect if the traceback limit is ``1``. See the :func:`get_traceback_limit` function and :attr:`Snapshot.traceback_limit` attribute.
python, official-docs, cpython, P0
Local_Trusted_Corpus
003ec2be-0a5c-4385-8eb6-22c7d519b6fc
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,027
supabase-export-v2
51ac121a05478d34
specified in the constructor) to the writer's file object, formatted according to the current dialect. Return the return value of the :meth:`csvwriter.writerow` call used internally. .. versionadded:: 3.2 .. versionchanged:: 3.8 :meth:`writeheader` now also returns the value returned by the :meth:`csvwriter.writerow...
trusted_official_docs
CPython Docs
specified in the constructor) to the writer's file object, formatted according to the current dialect. Return the return value of the :meth:`csvwriter.writerow` call used internally. .. versionadded:: 3.2 .. versionchanged:: 3.8 :meth:`writeheader` now also returns the value returned by the :meth:`csvwriter.writerow...
specified in the constructor) to the writer's file object, formatted according to the current dialect. Return the return value of the :meth:`csvwriter.writerow` call used internally. .. versionadded:: 3.2 .. versionchanged:: 3.8 :meth:`writeheader` now also returns the value returned by the :meth:`csvwriter.writerow...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0695dbc5-34dc-450a-9682-c0321479b7b5
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,987
supabase-export-v2
a5f981d509ddc963
the characters in *lineterminator* are escaped if *quoting* is set to :const:`QUOTE_NONE`; * the *quotechar* is escaped if *doublequote* is :const:`False`; * the *escapechar* itself. On reading, the *escapechar* removes any special meaning from the following character. It defaults to :const:`None`, which disables esca...
trusted_official_docs
CPython Docs
the characters in *lineterminator* are escaped if *quoting* is set to :const:`QUOTE_NONE`; * the *quotechar* is escaped if *doublequote* is :const:`False`; * the *escapechar* itself. On reading, the *escapechar* removes any special meaning from the following character. It defaults to :const:`None`, which disables esca...
the characters in *lineterminator* are escaped if *quoting* is set to :const:`QUOTE_NONE`; * the *quotechar* is escaped if *doublequote* is :const:`False`; * the *escapechar* itself. On reading, the *escapechar* removes any special meaning from the following character. It defaults to :const:`None`, which disables esca...
python, official-docs, cpython, P0
Local_Trusted_Corpus
06a8975a-cad5-4622-963f-9c9784efa9e5
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,986
supabase-export-v2
485a43ed29bb69a2
A one-character string used by the writer to escape characters that require escaping: * the *delimiter*, the *quotechar*, ``'\r'``, ``'\n'`` and any of the characters in *lineterminator* are escaped if *quoting* is set to :const:`QUOTE_NONE`; * the *quotechar* is escaped if *doublequote* is :const:`False`; * the *e...
trusted_official_docs
CPython Docs
A one-character string used by the writer to escape characters that require escaping: * the *delimiter*, the *quotechar*, ``'\r'``, ``'\n'`` and any of the characters in *lineterminator* are escaped if *quoting* is set to :const:`QUOTE_NONE`; * the *quotechar* is escaped if *doublequote* is :const:`False`; * the *e...
A one-character string used by the writer to escape characters that require escaping: * the *delimiter*, the *quotechar*, ``'\r'``, ``'\n'`` and any of the characters in *lineterminator* are escaped if *quoting* is set to :const:`QUOTE_NONE`; * the *quotechar* is escaped if *doublequote* is :const:`False`; * the *e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
170db756-666d-40ff-8fa3-70556d85c6a0
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,913
supabase-export-v2
18e7dbebeddef8a7
be used and the first row will be included in the results. Regardless of how the fieldnames are determined, the dictionary preserves their original ordering. If a row has more fields than fieldnames, the remaining data is put in a list and stored with the fieldname specified by *restkey* (which defaults to ``None``)....
trusted_official_docs
CPython Docs
be used and the first row will be included in the results. Regardless of how the fieldnames are determined, the dictionary preserves their original ordering. If a row has more fields than fieldnames, the remaining data is put in a list and stored with the fieldname specified by *restkey* (which defaults to ``None``)....
be used and the first row will be included in the results. Regardless of how the fieldnames are determined, the dictionary preserves their original ordering. If a row has more fields than fieldnames, the remaining data is put in a list and stored with the fieldname specified by *restkey* (which defaults to ``None``)....
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a224b50-e7f2-493e-b561-0be7e80a0c1c
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,017
supabase-export-v2
2b5864ba479a7c32
.. method:: csvwriter.writerow(row, /) Write the *row* parameter to the writer's file object, formatted according to the current :class:`Dialect`. Return the return value of the call to the *write* method of the underlying file object.
trusted_official_docs
CPython Docs
.. method:: csvwriter.writerow(row, /) Write the *row* parameter to the writer's file object, formatted according to the current :class:`Dialect`. Return the return value of the call to the *write* method of the underlying file object.
.. method:: csvwriter.writerow(row, /) Write the *row* parameter to the writer's file object, formatted according to the current :class:`Dialect`. Return the return value of the call to the *write* method of the underlying file object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c85822f-02e7-44fd-8db9-a5934270e07c
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,890
supabase-export-v2
ead8e9020bf08dfb
.. function:: reader(csvfile, /, dialect='excel', **fmtparams) Return a :ref:`reader object <reader-objects>` that will process lines from the given *csvfile*. A csvfile must be an iterable of strings, each in the reader's defined csv format. A csvfile is most commonly a file-like object or list. If *csvfile* is a fi...
trusted_official_docs
CPython Docs
.. function:: reader(csvfile, /, dialect='excel', **fmtparams) Return a :ref:`reader object <reader-objects>` that will process lines from the given *csvfile*. A csvfile must be an iterable of strings, each in the reader's defined csv format. A csvfile is most commonly a file-like object or list. If *csvfile* is a fi...
.. function:: reader(csvfile, /, dialect='excel', **fmtparams) Return a :ref:`reader object <reader-objects>` that will process lines from the given *csvfile*. A csvfile must be an iterable of strings, each in the reader's defined csv format. A csvfile is most commonly a file-like object or list. If *csvfile* is a fi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
203f5b6e-2777-4dbd-bb3f-4af3e38b6943
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,930
supabase-export-v2
721100e78f4651a8
Due to the lack of a strict CSV specification, different applications produce subtly different CSV data. :class:`Dialect` instances define how :class:`reader` and :class:`writer` instances behave. All available :class:`Dialect` names are returned by :func:`list_dialects`, and they can be registered with specific :clas...
trusted_official_docs
CPython Docs
Due to the lack of a strict CSV specification, different applications produce subtly different CSV data. :class:`Dialect` instances define how :class:`reader` and :class:`writer` instances behave. All available :class:`Dialect` names are returned by :func:`list_dialects`, and they can be registered with specific :clas...
Due to the lack of a strict CSV specification, different applications produce subtly different CSV data. :class:`Dialect` instances define how :class:`reader` and :class:`writer` instances behave. All available :class:`Dialect` names are returned by :func:`list_dialects`, and they can be registered with specific :clas...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2121484e-3e3f-46e9-bf76-5379e21eb594
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,018
supabase-export-v2
863c23d623ef217a
writer's file object, formatted according to the current :class:`Dialect`. Return the return value of the call to the *write* method of the underlying file object. .. versionchanged:: 3.5 Added support of arbitrary iterables.
trusted_official_docs
CPython Docs
writer's file object, formatted according to the current :class:`Dialect`. Return the return value of the call to the *write* method of the underlying file object. .. versionchanged:: 3.5 Added support of arbitrary iterables.
writer's file object, formatted according to the current :class:`Dialect`. Return the return value of the call to the *write* method of the underlying file object. .. versionchanged:: 3.5 Added support of arbitrary iterables.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2b1aa529-4b26-4579-b985-5c3413fd0989
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,021
supabase-export-v2
dda2aaf5bfb99c40
Write all elements in *rows* (an iterable of *row* objects as described above) to the writer's file object, formatted according to the current dialect. Writer objects have the following public attribute:
trusted_official_docs
CPython Docs
Write all elements in *rows* (an iterable of *row* objects as described above) to the writer's file object, formatted according to the current dialect. Writer objects have the following public attribute:
Write all elements in *rows* (an iterable of *row* objects as described above) to the writer's file object, formatted according to the current dialect. Writer objects have the following public attribute:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2c28ccb3-acb9-479c-89d4-ae3425b713a1
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,898
supabase-export-v2
a361c81ceea160d0
A short usage example:: import csv with open('eggs.csv', 'w', newline='') as csvfile: spamwriter = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL) spamwriter.writerow(['Spam'] * 5 + ['Baked Beans']) spamwriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
trusted_official_docs
CPython Docs
A short usage example:: import csv with open('eggs.csv', 'w', newline='') as csvfile: spamwriter = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL) spamwriter.writerow(['Spam'] * 5 + ['Baked Beans']) spamwriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
A short usage example:: import csv with open('eggs.csv', 'w', newline='') as csvfile: spamwriter = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL) spamwriter.writerow(['Spam'] * 5 + ['Baked Beans']) spamwriter.writerow(['Spam', 'Lovely Spam', 'Wonderful Spam'])
python, official-docs, cpython, P0
Local_Trusted_Corpus
30ecd87e-9ac0-4577-8b39-3e083fc81323
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,891
supabase-export-v2
8190780e45fdf7ae
arguments can be given to override individual formatting parameters in the current dialect. For full details about the dialect and formatting parameters, see section :ref:`csv-fmt-params`. Each row read from the csv file is returned as a list of strings. No automatic data type conversion is performed unless the :data:...
trusted_official_docs
CPython Docs
arguments can be given to override individual formatting parameters in the current dialect. For full details about the dialect and formatting parameters, see section :ref:`csv-fmt-params`. Each row read from the csv file is returned as a list of strings. No automatic data type conversion is performed unless the :data:...
arguments can be given to override individual formatting parameters in the current dialect. For full details about the dialect and formatting parameters, see section :ref:`csv-fmt-params`. Each row read from the csv file is returned as a list of strings. No automatic data type conversion is performed unless the :data:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
326f5361-a91a-45d7-be5a-dd35bb2f28dc
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,997
supabase-export-v2
a7d96ef7e89b8be1
.. attribute:: Dialect.quoting Controls when quotes should be generated by the writer and recognised by the reader. It can take on any of the :ref:`QUOTE_\* constants <csv-constants>` and defaults to :const:`QUOTE_MINIMAL` if *quotechar* is not ``None``, and :const:`QUOTE_NONE` otherwise.
trusted_official_docs
CPython Docs
.. attribute:: Dialect.quoting Controls when quotes should be generated by the writer and recognised by the reader. It can take on any of the :ref:`QUOTE_\* constants <csv-constants>` and defaults to :const:`QUOTE_MINIMAL` if *quotechar* is not ``None``, and :const:`QUOTE_NONE` otherwise.
.. attribute:: Dialect.quoting Controls when quotes should be generated by the writer and recognised by the reader. It can take on any of the :ref:`QUOTE_\* constants <csv-constants>` and defaults to :const:`QUOTE_MINIMAL` if *quotechar* is not ``None``, and :const:`QUOTE_NONE` otherwise.
python, official-docs, cpython, P0
Local_Trusted_Corpus
344baa8b-f003-4d1f-b41e-bdf01306cfce
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,983
supabase-export-v2
68c02b81a0f9a0ad
themselves be quoted. When :const:`True`, the character is doubled. When :const:`False`, the *escapechar* is used as a prefix to the *quotechar*. It defaults to :const:`True`. On output, if *doublequote* is :const:`False` and no *escapechar* is set, :exc:`Error` is raised if a *quotechar* is found in a field.
trusted_official_docs
CPython Docs
themselves be quoted. When :const:`True`, the character is doubled. When :const:`False`, the *escapechar* is used as a prefix to the *quotechar*. It defaults to :const:`True`. On output, if *doublequote* is :const:`False` and no *escapechar* is set, :exc:`Error` is raised if a *quotechar* is found in a field.
themselves be quoted. When :const:`True`, the character is doubled. When :const:`False`, the *escapechar* is used as a prefix to the *quotechar*. It defaults to :const:`True`. On output, if *doublequote* is :const:`False` and no *escapechar* is set, :exc:`Error` is raised if a *quotechar* is found in a field.
python, official-docs, cpython, P0
Local_Trusted_Corpus
401ea8d5-199e-4c2d-a64f-cf8a4204475a
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,011
supabase-export-v2
bb9e1cb591ffd6b3
number of lines read from the source iterator. This is not the same as the number of records returned, as records can span multiple lines. DictReader objects have the following public attribute:
trusted_official_docs
CPython Docs
number of lines read from the source iterator. This is not the same as the number of records returned, as records can span multiple lines. DictReader objects have the following public attribute:
number of lines read from the source iterator. This is not the same as the number of records returned, as records can span multiple lines. DictReader objects have the following public attribute:
python, official-docs, cpython, P0
Local_Trusted_Corpus
437e6f5a-6872-405c-89c3-c61a5852b693
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,005
supabase-export-v2
d65cfd06dc02cbce
.. method:: csvreader.__next__() Return the next row of the reader's iterable object as a list (if the object was returned from :func:`reader`) or a dict (if it is a :class:`DictReader` instance), parsed according to the current :class:`Dialect`. Usually you should call this as ``next(reader)``.
trusted_official_docs
CPython Docs
.. method:: csvreader.__next__() Return the next row of the reader's iterable object as a list (if the object was returned from :func:`reader`) or a dict (if it is a :class:`DictReader` instance), parsed according to the current :class:`Dialect`. Usually you should call this as ``next(reader)``.
.. method:: csvreader.__next__() Return the next row of the reader's iterable object as a list (if the object was returned from :func:`reader`) or a dict (if it is a :class:`DictReader` instance), parsed according to the current :class:`Dialect`. Usually you should call this as ``next(reader)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4467d7aa-f94d-42a9-bb2f-3f742dd30757
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,947
supabase-export-v2
44a0d8677aa32312
values - the second through n-th rows contain strings where at least one value's length differs from that of the putative header of that column. Twenty-one rows after the header are sampled; if more than half of the columns + rows meet the criteria, :const:`True` is returned.
trusted_official_docs
CPython Docs
values - the second through n-th rows contain strings where at least one value's length differs from that of the putative header of that column. Twenty-one rows after the header are sampled; if more than half of the columns + rows meet the criteria, :const:`True` is returned.
values - the second through n-th rows contain strings where at least one value's length differs from that of the putative header of that column. Twenty-one rows after the header are sampled; if more than half of the columns + rows meet the criteria, :const:`True` is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c4f77dd-c842-47cb-b0e6-b52863632ee7
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,045
supabase-export-v2
1b5797fdb36249d0
.. rubric:: Footnotes .. [1] If ``newline=''`` is not specified, newlines embedded inside quoted fields will not be interpreted correctly, and on platforms that use ``\r\n`` line endings on write an extra ``\r`` will be added. It should always be safe to specify ``newline=''``, since the csv module does its own (:t...
trusted_official_docs
CPython Docs
.. rubric:: Footnotes .. [1] If ``newline=''`` is not specified, newlines embedded inside quoted fields will not be interpreted correctly, and on platforms that use ``\r\n`` line endings on write an extra ``\r`` will be added. It should always be safe to specify ``newline=''``, since the csv module does its own (:t...
.. rubric:: Footnotes .. [1] If ``newline=''`` is not specified, newlines embedded inside quoted fields will not be interpreted correctly, and on platforms that use ``\r\n`` line endings on write an extra ``\r`` will be added. It should always be safe to specify ``newline=''``, since the csv module does its own (:t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5d3a9693-62b6-4a9d-b722-618701ba9444
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,943
supabase-export-v2
987c15d4768db78b
.. method:: sniff(sample, delimiters=None) Analyze the given *sample* and return a :class:`Dialect` subclass reflecting the parameters found. If the optional *delimiters* parameter is given, it is interpreted as a string containing possible valid delimiter characters.
trusted_official_docs
CPython Docs
.. method:: sniff(sample, delimiters=None) Analyze the given *sample* and return a :class:`Dialect` subclass reflecting the parameters found. If the optional *delimiters* parameter is given, it is interpreted as a string containing possible valid delimiter characters.
.. method:: sniff(sample, delimiters=None) Analyze the given *sample* and return a :class:`Dialect` subclass reflecting the parameters found. If the optional *delimiters* parameter is given, it is interpreted as a string containing possible valid delimiter characters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e528a13-0220-4e2e-b125-ca10f498873c
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,883
supabase-export-v2
5a5629b96e7e7267
of the CSV format used by Excel. Programmers can also describe the CSV formats understood by other applications or define their own special-purpose CSV formats. The :mod:`!csv` module's :class:`reader` and :class:`writer` objects read and write sequences. Programmers can also read and write data in dictionary form usin...
trusted_official_docs
CPython Docs
of the CSV format used by Excel. Programmers can also describe the CSV formats understood by other applications or define their own special-purpose CSV formats. The :mod:`!csv` module's :class:`reader` and :class:`writer` objects read and write sequences. Programmers can also read and write data in dictionary form usin...
of the CSV format used by Excel. Programmers can also describe the CSV formats understood by other applications or define their own special-purpose CSV formats. The :mod:`!csv` module's :class:`reader` and :class:`writer` objects read and write sequences. Programmers can also read and write data in dictionary form usin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
674baaef-5cf8-4f18-8457-1586a7284d5e
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,964
supabase-export-v2
d6912ea5fa0dd5fb
*escapechar* is not set, the writer will raise :exc:`Error` if any characters that require escaping are encountered. Set *quotechar* to ``None`` to prevent its escaping. Instructs :class:`reader` objects to perform no special processing of quote characters.
trusted_official_docs
CPython Docs
*escapechar* is not set, the writer will raise :exc:`Error` if any characters that require escaping are encountered. Set *quotechar* to ``None`` to prevent its escaping. Instructs :class:`reader` objects to perform no special processing of quote characters.
*escapechar* is not set, the writer will raise :exc:`Error` if any characters that require escaping are encountered. Set *quotechar* to ``None`` to prevent its escaping. Instructs :class:`reader` objects to perform no special processing of quote characters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
686c1919-4509-4fa9-b65f-ab04a64a5573
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,967
supabase-export-v2
d539ce21aad0b668
all fields which are not ``None``. This is similar to :data:`QUOTE_ALL`, except that if a field value is ``None`` an empty (unquoted) string is written. Instructs :class:`reader` objects to interpret an empty (unquoted) field as ``None`` and to otherwise behave as :data:`QUOTE_ALL`.
trusted_official_docs
CPython Docs
all fields which are not ``None``. This is similar to :data:`QUOTE_ALL`, except that if a field value is ``None`` an empty (unquoted) string is written. Instructs :class:`reader` objects to interpret an empty (unquoted) field as ``None`` and to otherwise behave as :data:`QUOTE_ALL`.
all fields which are not ``None``. This is similar to :data:`QUOTE_ALL`, except that if a field value is ``None`` an empty (unquoted) string is written. Instructs :class:`reader` objects to interpret an empty (unquoted) field as ``None`` and to otherwise behave as :data:`QUOTE_ALL`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6c492888-95cb-4d21-aa72-673109ea8b1f
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,026
supabase-export-v2
5e79888054c884eb
.. method:: DictWriter.writeheader() Write a row with the field names (as specified in the constructor) to the writer's file object, formatted according to the current dialect. Return the return value of the :meth:`csvwriter.writerow` call used internally.
trusted_official_docs
CPython Docs
.. method:: DictWriter.writeheader() Write a row with the field names (as specified in the constructor) to the writer's file object, formatted according to the current dialect. Return the return value of the :meth:`csvwriter.writerow` call used internally.
.. method:: DictWriter.writeheader() Write a row with the field names (as specified in the constructor) to the writer's file object, formatted according to the current dialect. Return the return value of the :meth:`csvwriter.writerow` call used internally.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6cb1adf1-0b0e-495a-9db3-77dd05b9182f
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,946
supabase-export-v2
47d6bbfc7934500d
be a series of column headers. Inspecting each column, one of two key criteria will be considered to estimate if the sample contains a header: - the second through n-th rows contain numeric values - the second through n-th rows contain strings where at least one value's length differs from that of the putative header...
trusted_official_docs
CPython Docs
be a series of column headers. Inspecting each column, one of two key criteria will be considered to estimate if the sample contains a header: - the second through n-th rows contain numeric values - the second through n-th rows contain strings where at least one value's length differs from that of the putative header...
be a series of column headers. Inspecting each column, one of two key criteria will be considered to estimate if the sample contains a header: - the second through n-th rows contain numeric values - the second through n-th rows contain strings where at least one value's length differs from that of the putative header...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6cfc6755-bb58-4917-83d4-2020c5a52546
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,970
supabase-export-v2
c5459b38c3c2237d
quotes around fields which are strings. This is similar to :data:`QUOTE_NONNUMERIC`, except that if a field value is ``None`` an empty (unquoted) string is written. Instructs :class:`reader` objects to interpret an empty (unquoted) string as ``None`` and to otherwise behave as :data:`QUOTE_NONNUMERIC`.
trusted_official_docs
CPython Docs
quotes around fields which are strings. This is similar to :data:`QUOTE_NONNUMERIC`, except that if a field value is ``None`` an empty (unquoted) string is written. Instructs :class:`reader` objects to interpret an empty (unquoted) string as ``None`` and to otherwise behave as :data:`QUOTE_NONNUMERIC`.
quotes around fields which are strings. This is similar to :data:`QUOTE_NONNUMERIC`, except that if a field value is ``None`` an empty (unquoted) string is written. Instructs :class:`reader` objects to interpret an empty (unquoted) string as ``None`` and to otherwise behave as :data:`QUOTE_NONNUMERIC`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7ff95ebc-0f3d-4e74-9448-1d911ecdddd6
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,882
supabase-export-v2
e953c1c4f7b22f1e
is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer. The :mod:`!csv` module implements classes to read and write tabular data in CSV format. It allows programmers to say, "write this data in the format preferred by Excel...
trusted_official_docs
CPython Docs
is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer. The :mod:`!csv` module implements classes to read and write tabular data in CSV format. It allows programmers to say, "write this data in the format preferred by Excel...
is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer. The :mod:`!csv` module implements classes to read and write tabular data in CSV format. It allows programmers to say, "write this data in the format preferred by Excel...
python, official-docs, cpython, P0
Local_Trusted_Corpus
82ac9525-1451-492a-af7f-289b9ba7f02f
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,945
supabase-export-v2
d2a219543eb3f277
.. method:: has_header(sample) Analyze the sample text (presumed to be in CSV format) and return :const:`True` if the first row appears to be a series of column headers. Inspecting each column, one of two key criteria will be considered to estimate if the sample contains a header:
trusted_official_docs
CPython Docs
.. method:: has_header(sample) Analyze the sample text (presumed to be in CSV format) and return :const:`True` if the first row appears to be a series of column headers. Inspecting each column, one of two key criteria will be considered to estimate if the sample contains a header:
.. method:: has_header(sample) Analyze the sample text (presumed to be in CSV format) and return :const:`True` if the first row appears to be a series of column headers. Inspecting each column, one of two key criteria will be considered to estimate if the sample contains a header:
python, official-docs, cpython, P0
Local_Trusted_Corpus
87c4725b-fed8-4bcc-82fd-80e7501caef5
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,894
supabase-export-v2
1c95881ab681e848
= csv.reader(csvfile, delimiter=' ', quotechar='|') ... for row in spamreader: ... print(', '.join(row)) Spam, Spam, Spam, Spam, Spam, Baked Beans Spam, Lovely Spam, Wonderful Spam .. function:: writer(csvfile, /, dialect='excel', **fmtparams)
trusted_official_docs
CPython Docs
= csv.reader(csvfile, delimiter=' ', quotechar='|') ... for row in spamreader: ... print(', '.join(row)) Spam, Spam, Spam, Spam, Spam, Baked Beans Spam, Lovely Spam, Wonderful Spam .. function:: writer(csvfile, /, dialect='excel', **fmtparams)
= csv.reader(csvfile, delimiter=' ', quotechar='|') ... for row in spamreader: ... print(', '.join(row)) Spam, Spam, Spam, Spam, Spam, Baked Beans Spam, Lovely Spam, Wonderful Spam .. function:: writer(csvfile, /, dialect='excel', **fmtparams)
python, official-docs, cpython, P0
Local_Trusted_Corpus
88922822-93cc-48bf-87ba-2c554588186f
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,036
supabase-export-v2
24291b3b145eec1c
be decoded into unicode using the system default encoding (see :func:`locale.getencoding`). To decode a file using a different encoding, use the ``encoding`` argument of open:: import csv with open('some.csv', newline='', encoding='utf-8') as f: reader = csv.reader(f) for row in reader: print(row)
trusted_official_docs
CPython Docs
be decoded into unicode using the system default encoding (see :func:`locale.getencoding`). To decode a file using a different encoding, use the ``encoding`` argument of open:: import csv with open('some.csv', newline='', encoding='utf-8') as f: reader = csv.reader(f) for row in reader: print(row)
be decoded into unicode using the system default encoding (see :func:`locale.getencoding`). To decode a file using a different encoding, use the ``encoding`` argument of open:: import csv with open('some.csv', newline='', encoding='utf-8') as f: reader = csv.reader(f) for row in reader: print(row)
python, official-docs, cpython, P0
Local_Trusted_Corpus
88e7412f-b4d0-4527-9837-4443cdcb12ab
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
19,881
supabase-export-v2
1b5665f9fb2f2808
-------------- The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in :rfc:`4180`. The lack of a well-defined standard means that subtle differences...
trusted_official_docs
CPython Docs
-------------- The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in :rfc:`4180`. The lack of a well-defined standard means that subtle differences...
-------------- The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in :rfc:`4180`. The lack of a well-defined standard means that subtle differences...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8945b66a-a3da-4bcc-bf88-a1c06cc7226c
CPython Docs
file://datasets/cpython/Doc/library/csv.rst
unknown
ce4608c4-a14b-4139-ac99-bb1402e602b2
20,013
supabase-export-v2
f9d130f828c04b43
.. attribute:: DictReader.fieldnames If not passed as a parameter when creating the object, this attribute is initialized upon first access or when the first record is read from the file.
trusted_official_docs
CPython Docs
.. attribute:: DictReader.fieldnames If not passed as a parameter when creating the object, this attribute is initialized upon first access or when the first record is read from the file.
.. attribute:: DictReader.fieldnames If not passed as a parameter when creating the object, this attribute is initialized upon first access or when the first record is read from the file.
python, official-docs, cpython, P0
Local_Trusted_Corpus