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
33b69434-91af-4715-b0b7-bf94d522ef55
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,396
supabase-export-v2
d3f3554d51f9b361
A profiler object that collects execution statistics. The optional *timer* argument specifies a custom timing function. If not provided, the profiler uses a platform-appropriate default timer. When supplying a custom timer, it must return a single number representing the current time. If the timer returns integers, ...
trusted_official_docs
CPython Docs
A profiler object that collects execution statistics. The optional *timer* argument specifies a custom timing function. If not provided, the profiler uses a platform-appropriate default timer. When supplying a custom timer, it must return a single number representing the current time. If the timer returns integers, ...
A profiler object that collects execution statistics. The optional *timer* argument specifies a custom timing function. If not provided, the profiler uses a platform-appropriate default timer. When supplying a custom timer, it must return a single number representing the current time. If the timer returns integers, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3503edb7-1996-4428-b7cb-25eb49f796b0
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,346
supabase-export-v2
aa235dd07351a250
return, and exception event during program execution. The profiler measures the precise time intervals between these events, providing exact statistics about how the program behaves. In contrast to :ref:`statistical profiling <profiling-sampling>`, which samples the call stack periodically to estimate where time is spe...
trusted_official_docs
CPython Docs
return, and exception event during program execution. The profiler measures the precise time intervals between these events, providing exact statistics about how the program behaves. In contrast to :ref:`statistical profiling <profiling-sampling>`, which samples the call stack periodically to estimate where time is spe...
return, and exception event during program execution. The profiler measures the precise time intervals between these events, providing exact statistics about how the program behaves. In contrast to :ref:`statistical profiling <profiling-sampling>`, which samples the call stack periodically to estimate where time is spe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3e358a50-c605-4efd-9643-a47521288114
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,345
supabase-export-v2
294f0cd7794a088d
What is deterministic profiling? ================================ :dfn:`Deterministic profiling` captures every function call, function return, and exception event during program execution. The profiler measures the precise time intervals between these events, providing exact statistics about how the program behaves.
trusted_official_docs
CPython Docs
What is deterministic profiling? ================================ :dfn:`Deterministic profiling` captures every function call, function return, and exception event during program execution. The profiler measures the precise time intervals between these events, providing exact statistics about how the program behaves.
What is deterministic profiling? ================================ :dfn:`Deterministic profiling` captures every function call, function return, and exception event during program execution. The profiler measures the precise time intervals between these events, providing exact statistics about how the program behaves.
python, official-docs, cpython, P0
Local_Trusted_Corpus
475e13e3-38e6-47aa-9b58-c580394d735b
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,408
supabase-export-v2
f632eb8a2f596343
*sort* argument specifies the sorting order. It accepts a single key or a tuple of keys for multi-level sorting, using the same values as :meth:`pstats.Stats.sort_stats`. .. versionadded:: 3.13 Support for a tuple of sort keys.
trusted_official_docs
CPython Docs
*sort* argument specifies the sorting order. It accepts a single key or a tuple of keys for multi-level sorting, using the same values as :meth:`pstats.Stats.sort_stats`. .. versionadded:: 3.13 Support for a tuple of sort keys.
*sort* argument specifies the sorting order. It accepts a single key or a tuple of keys for multi-level sorting, using the same values as :meth:`pstats.Stats.sort_stats`. .. versionadded:: 3.13 Support for a tuple of sort keys.
python, official-docs, cpython, P0
Local_Trusted_Corpus
74c779f7-ea01-49b1-b485-d997ee4b2146
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,425
supabase-export-v2
61fc983a2ffd9478
# Timer returns time in milliseconds pr = profiling.tracing.Profile(my_ms_timer, 0.001) For best performance, the timer function should be as fast as possible. The profiler calls it frequently, so timer overhead directly affects profiling overhead.
trusted_official_docs
CPython Docs
# Timer returns time in milliseconds pr = profiling.tracing.Profile(my_ms_timer, 0.001) For best performance, the timer function should be as fast as possible. The profiler calls it frequently, so timer overhead directly affects profiling overhead.
# Timer returns time in milliseconds pr = profiling.tracing.Profile(my_ms_timer, 0.001) For best performance, the timer function should be as fast as possible. The profiler calls it frequently, so timer overhead directly affects profiling overhead.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b8623a7-bd11-4cbb-ad08-eca27c00258c
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,342
supabase-export-v2
dca62dc825349cad
available as ``cProfile`` for backward compatibility. The ``cProfile`` name will continue to work in all future Python versions. Use whichever import style suits your codebase:: # Preferred (new style) import profiling.tracing profiling.tracing.run('my_function()')
trusted_official_docs
CPython Docs
available as ``cProfile`` for backward compatibility. The ``cProfile`` name will continue to work in all future Python versions. Use whichever import style suits your codebase:: # Preferred (new style) import profiling.tracing profiling.tracing.run('my_function()')
available as ``cProfile`` for backward compatibility. The ``cProfile`` name will continue to work in all future Python versions. Use whichever import style suits your codebase:: # Preferred (new style) import profiling.tracing profiling.tracing.run('my_function()')
python, official-docs, cpython, P0
Local_Trusted_Corpus
97ce8d81-3ee1-47df-a715-5ebe094f6c8f
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,357
supabase-export-v2
8931ac7da0f62f8a
python -m profiling.tracing [-o output_file] [-s sort_order] (-m module | script.py) This runs the specified script or module under the profiler and prints the results to standard output (or saves them to a file).
trusted_official_docs
CPython Docs
python -m profiling.tracing [-o output_file] [-s sort_order] (-m module | script.py) This runs the specified script or module under the profiler and prints the results to standard output (or saves them to a file).
python -m profiling.tracing [-o output_file] [-s sort_order] (-m module | script.py) This runs the specified script or module under the profiler and prints the results to standard output (or saves them to a file).
python, official-docs, cpython, P0
Local_Trusted_Corpus
98bdeac3-678f-4e05-a06f-efd11ac6ef75
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,388
supabase-export-v2
d9a855060f36fe87
exec(command, __main__.__dict__, __main__.__dict__) If *filename* is not provided, the function creates a :class:`pstats.Stats` instance and prints a summary to standard output. If *filename* is provided, the raw profile data is saved to that file for later analysis with :mod:`pstats`.
trusted_official_docs
CPython Docs
exec(command, __main__.__dict__, __main__.__dict__) If *filename* is not provided, the function creates a :class:`pstats.Stats` instance and prints a summary to standard output. If *filename* is provided, the raw profile data is saved to that file for later analysis with :mod:`pstats`.
exec(command, __main__.__dict__, __main__.__dict__) If *filename* is not provided, the function creates a :class:`pstats.Stats` instance and prints a summary to standard output. If *filename* is provided, the raw profile data is saved to that file for later analysis with :mod:`pstats`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
99bae709-28b6-4807-a4d9-3646869f67c5
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,427
supabase-export-v2
e0f3f56390c6a2e7
The :mod:`time` module provides several functions suitable for use as custom timers: - :func:`time.perf_counter` for high-resolution wall-clock time - :func:`time.process_time` for CPU time (excluding sleep) - :func:`time.monotonic` for monotonic clock time
trusted_official_docs
CPython Docs
The :mod:`time` module provides several functions suitable for use as custom timers: - :func:`time.perf_counter` for high-resolution wall-clock time - :func:`time.process_time` for CPU time (excluding sleep) - :func:`time.monotonic` for monotonic clock time
The :mod:`time` module provides several functions suitable for use as custom timers: - :func:`time.perf_counter` for high-resolution wall-clock time - :func:`time.process_time` for CPU time (excluding sleep) - :func:`time.monotonic` for monotonic clock time
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b794fc6-96f3-4f19-aef6-8dacfda8184f
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,389
supabase-export-v2
76ea631a74e5af1e
and prints a summary to standard output. If *filename* is provided, the raw profile data is saved to that file for later analysis with :mod:`pstats`. The *sort* argument specifies the sort order for printed output, accepting any value recognized by :meth:`pstats.Stats.sort_stats`.
trusted_official_docs
CPython Docs
and prints a summary to standard output. If *filename* is provided, the raw profile data is saved to that file for later analysis with :mod:`pstats`. The *sort* argument specifies the sort order for printed output, accepting any value recognized by :meth:`pstats.Stats.sort_stats`.
and prints a summary to standard output. If *filename* is provided, the raw profile data is saved to that file for later analysis with :mod:`pstats`. The *sort* argument specifies the sort order for printed output, accepting any value recognized by :meth:`pstats.Stats.sort_stats`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae6c7e93-d617-401b-8af4-0c5b04ab9155
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,430
supabase-export-v2
55c1f68e38312b37
Deterministic profiling has inherent limitations related to timing accuracy. The underlying timer typically has a resolution of about one millisecond. Measurements cannot be more accurate than this resolution. With enough measurements, timing errors tend to average out, but individual measurements may be imprecise.
trusted_official_docs
CPython Docs
Deterministic profiling has inherent limitations related to timing accuracy. The underlying timer typically has a resolution of about one millisecond. Measurements cannot be more accurate than this resolution. With enough measurements, timing errors tend to average out, but individual measurements may be imprecise.
Deterministic profiling has inherent limitations related to timing accuracy. The underlying timer typically has a resolution of about one millisecond. Measurements cannot be more accurate than this resolution. With enough measurements, timing errors tend to average out, but individual measurements may be imprecise.
python, official-docs, cpython, P0
Local_Trusted_Corpus
afa250fb-9a4e-40ed-864a-aac3017e573e
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,349
supabase-export-v2
c8413c4c241275d6
Deterministic profiling helps answer questions like: - How many times was this function called? - What is the complete call graph of my program? - Which functions are called by a particular function? - Are there unexpected function calls happening?
trusted_official_docs
CPython Docs
Deterministic profiling helps answer questions like: - How many times was this function called? - What is the complete call graph of my program? - Which functions are called by a particular function? - Are there unexpected function calls happening?
Deterministic profiling helps answer questions like: - How many times was this function called? - What is the complete call graph of my program? - Which functions are called by a particular function? - Are there unexpected function calls happening?
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba50c6c0-e3a2-4ee3-98d4-af735141edf4
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,431
supabase-export-v2
6f638048d8bf7fbc
one millisecond. Measurements cannot be more accurate than this resolution. With enough measurements, timing errors tend to average out, but individual measurements may be imprecise. There is also latency between when an event occurs and when the profiler captures the timestamp. Similarly, there is latency after readin...
trusted_official_docs
CPython Docs
one millisecond. Measurements cannot be more accurate than this resolution. With enough measurements, timing errors tend to average out, but individual measurements may be imprecise. There is also latency between when an event occurs and when the profiler captures the timestamp. Similarly, there is latency after readin...
one millisecond. Measurements cannot be more accurate than this resolution. With enough measurements, timing errors tend to average out, but individual measurements may be imprecise. There is also latency between when an event occurs and when the profiler captures the timestamp. Similarly, there is latency after readin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c58036ad-c8e5-43fc-8075-129a98e115cc
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,348
supabase-export-v2
3ddcd9ac0b5da3c3
without requiring code modification. The overhead tends to be moderate relative to the inherent cost of interpretation, making deterministic profiling suitable for most development workflows. Deterministic profiling helps answer questions like:
trusted_official_docs
CPython Docs
without requiring code modification. The overhead tends to be moderate relative to the inherent cost of interpretation, making deterministic profiling suitable for most development workflows. Deterministic profiling helps answer questions like:
without requiring code modification. The overhead tends to be moderate relative to the inherent cost of interpretation, making deterministic profiling suitable for most development workflows. Deterministic profiling helps answer questions like:
python, official-docs, cpython, P0
Local_Trusted_Corpus
cdb590c9-8702-4d10-b12d-380e40598307
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,339
supabase-export-v2
8a0a674798088250
-------------- The :mod:`!profiling.tracing` module provides deterministic profiling of Python programs. It monitors every function call, function return, and exception event, recording precise timing for each. This approach provides exact call counts and complete visibility into program execution, making it ideal for ...
trusted_official_docs
CPython Docs
-------------- The :mod:`!profiling.tracing` module provides deterministic profiling of Python programs. It monitors every function call, function return, and exception event, recording precise timing for each. This approach provides exact call counts and complete visibility into program execution, making it ideal for ...
-------------- The :mod:`!profiling.tracing` module provides deterministic profiling of Python programs. It monitors every function call, function return, and exception event, recording precise timing for each. This approach provides exact call counts and complete visibility into program execution, making it ideal for ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce71afb4-c706-4f5f-9ae5-75257158849c
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,347
supabase-export-v2
d23b2c733514ac4a
means you get exact call counts rather than statistical approximations. The trade-off is that instrumenting every event introduces overhead that can slow down program execution. Python's interpreted nature makes deterministic profiling practical. The interpreter already dispatches events for function calls and returns,...
trusted_official_docs
CPython Docs
means you get exact call counts rather than statistical approximations. The trade-off is that instrumenting every event introduces overhead that can slow down program execution. Python's interpreted nature makes deterministic profiling practical. The interpreter already dispatches events for function calls and returns,...
means you get exact call counts rather than statistical approximations. The trade-off is that instrumenting every event introduces overhead that can slow down program execution. Python's interpreted nature makes deterministic profiling practical. The interpreter already dispatches events for function calls and returns,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d031d11b-db34-4e72-9e03-8dc76b4e3932
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,341
supabase-export-v2
38bf7468a56f42ca
.. note:: This module is also available as ``cProfile`` for backward compatibility. The ``cProfile`` name will continue to work in all future Python versions. Use whichever import style suits your codebase::
trusted_official_docs
CPython Docs
.. note:: This module is also available as ``cProfile`` for backward compatibility. The ``cProfile`` name will continue to work in all future Python versions. Use whichever import style suits your codebase::
.. note:: This module is also available as ``cProfile`` for backward compatibility. The ``cProfile`` name will continue to work in all future Python versions. Use whichever import style suits your codebase::
python, official-docs, cpython, P0
Local_Trusted_Corpus
e6f29b0a-eb4c-4440-b105-37583f6d5e93
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,421
supabase-export-v2
96975012d54093fb
Using a custom timer ==================== The :class:`Profile` class accepts a custom timing function, allowing you to measure different aspects of execution such as wall-clock time or CPU time. Pass the timing function to the constructor::
trusted_official_docs
CPython Docs
Using a custom timer ==================== The :class:`Profile` class accepts a custom timing function, allowing you to measure different aspects of execution such as wall-clock time or CPU time. Pass the timing function to the constructor::
Using a custom timer ==================== The :class:`Profile` class accepts a custom timing function, allowing you to measure different aspects of execution such as wall-clock time or CPU time. Pass the timing function to the constructor::
python, official-docs, cpython, P0
Local_Trusted_Corpus
e8e53b1d-8b6f-4a06-9405-6363369fe1f9
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,426
supabase-export-v2
944c3bea5b594ea0
For best performance, the timer function should be as fast as possible. The profiler calls it frequently, so timer overhead directly affects profiling overhead. The :mod:`time` module provides several functions suitable for use as custom timers:
trusted_official_docs
CPython Docs
For best performance, the timer function should be as fast as possible. The profiler calls it frequently, so timer overhead directly affects profiling overhead. The :mod:`time` module provides several functions suitable for use as custom timers:
For best performance, the timer function should be as fast as possible. The profiler calls it frequently, so timer overhead directly affects profiling overhead. The :mod:`time` module provides several functions suitable for use as custom timers:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f0485aa1-b9c3-49ca-9f6f-4202590c8ac9
CPython Docs
file://datasets/cpython/Doc/library/profiling.tracing.rst
unknown
5eeddcb2-78dd-4fdd-aa68-f074d2e579f6
52,432
supabase-export-v2
f6c4da5001125c3c
slower than they actually are. This error is typically less than one clock tick per call but can become significant for functions called many times. The :mod:`!profiling.tracing` module (and its ``cProfile`` alias) is implemented as a C extension with low overhead, so these timing issues are less pronounced than with t...
trusted_official_docs
CPython Docs
slower than they actually are. This error is typically less than one clock tick per call but can become significant for functions called many times. The :mod:`!profiling.tracing` module (and its ``cProfile`` alias) is implemented as a C extension with low overhead, so these timing issues are less pronounced than with t...
slower than they actually are. This error is typically less than one clock tick per call but can become significant for functions called many times. The :mod:`!profiling.tracing` module (and its ``cProfile`` alias) is implemented as a C extension with low overhead, so these timing issues are less pronounced than with t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
03742ea1-7e1a-4a23-9e9a-2045c44476e1
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,455
supabase-export-v2
82bee8003368f3ca
XML security ------------ An attacker can abuse XML features to carry out denial of service attacks, access local files, generate network connections to other machines, or circumvent firewalls when attacker-controlled XML is being parsed, in Python or elsewhere.
trusted_official_docs
CPython Docs
XML security ------------ An attacker can abuse XML features to carry out denial of service attacks, access local files, generate network connections to other machines, or circumvent firewalls when attacker-controlled XML is being parsed, in Python or elsewhere.
XML security ------------ An attacker can abuse XML features to carry out denial of service attacks, access local files, generate network connections to other machines, or circumvent firewalls when attacker-controlled XML is being parsed, in Python or elsewhere.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2dba5e39-4701-42bf-85b3-1c114b12cfc0
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,463
supabase-export-v2
c74e1a20521ce546
streams such as gzipped HTTP streams or LZMA-compressed files. For an attacker it can reduce the amount of transmitted data by three magnitudes or more. large tokens Expat needs to re-parse unfinished tokens; without the protection introduced in Expat 2.6.0, this can lead to quadratic runtime that can be used to cau...
trusted_official_docs
CPython Docs
streams such as gzipped HTTP streams or LZMA-compressed files. For an attacker it can reduce the amount of transmitted data by three magnitudes or more. large tokens Expat needs to re-parse unfinished tokens; without the protection introduced in Expat 2.6.0, this can lead to quadratic runtime that can be used to cau...
streams such as gzipped HTTP streams or LZMA-compressed files. For an attacker it can reduce the amount of transmitted data by three magnitudes or more. large tokens Expat needs to re-parse unfinished tokens; without the protection introduced in Expat 2.6.0, this can lead to quadratic runtime that can be used to cau...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4fbb3fac-ab2d-4dba-8c0b-b8bd8bed7fef
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,446
supabase-export-v2
b5cf10dc90093c19
that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the :mod:`xml.parsers.expat` module will always be available. The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the definition of the Python bindings for the DOM and SAX interfaces.
trusted_official_docs
CPython Docs
that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the :mod:`xml.parsers.expat` module will always be available. The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the definition of the Python bindings for the DOM and SAX interfaces.
that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the :mod:`xml.parsers.expat` module will always be available. The documentation for the :mod:`xml.dom` and :mod:`xml.sax` packages are the definition of the Python bindings for the DOM and SAX interfaces.
python, official-docs, cpython, P0
Local_Trusted_Corpus
72797a4b-908f-4dfc-9318-bfa6d2bfb91c
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,462
supabase-export-v2
c87c8c24d16aad07
chars over and over again. The attack isn't as efficient as the exponential case but it avoids triggering parser countermeasures that forbid deeply nested entities. decompression bomb Decompression bombs (aka `ZIP bomb`_) apply to all XML libraries that can parse compressed XML streams such as gzipped HTTP streams or...
trusted_official_docs
CPython Docs
chars over and over again. The attack isn't as efficient as the exponential case but it avoids triggering parser countermeasures that forbid deeply nested entities. decompression bomb Decompression bombs (aka `ZIP bomb`_) apply to all XML libraries that can parse compressed XML streams such as gzipped HTTP streams or...
chars over and over again. The attack isn't as efficient as the exponential case but it avoids triggering parser countermeasures that forbid deeply nested entities. decompression bomb Decompression bombs (aka `ZIP bomb`_) apply to all XML libraries that can parse compressed XML streams such as gzipped HTTP streams or...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7888e465-6dc1-4e96-ab43-70519ca929cc
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,461
supabase-export-v2
c9b5ec1015fb985b
the final entity definition contains a small string. The exponential expansion results in several gigabytes of text and consumes lots of memory and CPU time. quadratic blowup entity expansion A quadratic blowup attack is similar to a `Billion Laughs`_ attack; it abuses entity expansion, too. Instead of nested entitie...
trusted_official_docs
CPython Docs
the final entity definition contains a small string. The exponential expansion results in several gigabytes of text and consumes lots of memory and CPU time. quadratic blowup entity expansion A quadratic blowup attack is similar to a `Billion Laughs`_ attack; it abuses entity expansion, too. Instead of nested entitie...
the final entity definition contains a small string. The exponential expansion results in several gigabytes of text and consumes lots of memory and CPU time. quadratic blowup entity expansion A quadratic blowup attack is similar to a `Billion Laughs`_ attack; it abuses entity expansion, too. Instead of nested entitie...
python, official-docs, cpython, P0
Local_Trusted_Corpus
81fc7777-7ecb-4005-b366-dc098f85504d
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,445
supabase-export-v2
416c2353653d30a0
If you need to parse untrusted or unauthenticated data, see :ref:`xml-security`. It is important to note that modules in the :mod:`!xml` package require that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the :mod:`xml.parsers.expat` module will always be availabl...
trusted_official_docs
CPython Docs
If you need to parse untrusted or unauthenticated data, see :ref:`xml-security`. It is important to note that modules in the :mod:`!xml` package require that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the :mod:`xml.parsers.expat` module will always be availabl...
If you need to parse untrusted or unauthenticated data, see :ref:`xml-security`. It is important to note that modules in the :mod:`!xml` package require that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the :mod:`xml.parsers.expat` module will always be availabl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c289070f-6585-47b7-968a-bf4925113a67
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,464
supabase-export-v2
2d6f264a5cccf414
can lead to quadratic runtime that can be used to cause denial of service in the application parsing XML. The issue is known as :cve:`2023-52425`. .. _libexpat: https://github.com/libexpat/libexpat .. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs .. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
trusted_official_docs
CPython Docs
can lead to quadratic runtime that can be used to cause denial of service in the application parsing XML. The issue is known as :cve:`2023-52425`. .. _libexpat: https://github.com/libexpat/libexpat .. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs .. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
can lead to quadratic runtime that can be used to cause denial of service in the application parsing XML. The issue is known as :cve:`2023-52425`. .. _libexpat: https://github.com/libexpat/libexpat .. _Billion Laughs: https://en.wikipedia.org/wiki/Billion_laughs .. _ZIP bomb: https://en.wikipedia.org/wiki/Zip_bomb
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3de47f6-4585-4806-a3c5-ea2b1cf68ad2
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,460
supabase-export-v2
9251a68f8cd7b37f
:mod:`xmlrpc` is **vulnerable** to the "decompression bomb" attack. billion laughs / exponential entity expansion The `Billion Laughs`_ attack -- also known as exponential entity expansion -- uses multiple levels of nested entities. Each entity refers to another entity several times, and the final entity definition ...
trusted_official_docs
CPython Docs
:mod:`xmlrpc` is **vulnerable** to the "decompression bomb" attack. billion laughs / exponential entity expansion The `Billion Laughs`_ attack -- also known as exponential entity expansion -- uses multiple levels of nested entities. Each entity refers to another entity several times, and the final entity definition ...
:mod:`xmlrpc` is **vulnerable** to the "decompression bomb" attack. billion laughs / exponential entity expansion The `Billion Laughs`_ attack -- also known as exponential entity expansion -- uses multiple levels of nested entities. Each entity refers to another entity several times, and the final entity definition ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e976883a-044d-4674-b34d-a3c3dafdc061
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,458
supabase-export-v2
999f8489773f93ad
By default, Expat itself does not access local files or create network connections. Expat versions lower than 2.7.2 may be vulnerable to the "billion laughs", "quadratic blowup" and "large tokens" vulnerabilities, or to disproportional use of dynamic memory. Python bundles a copy of Expat, and whether Python uses the b...
trusted_official_docs
CPython Docs
By default, Expat itself does not access local files or create network connections. Expat versions lower than 2.7.2 may be vulnerable to the "billion laughs", "quadratic blowup" and "large tokens" vulnerabilities, or to disproportional use of dynamic memory. Python bundles a copy of Expat, and whether Python uses the b...
By default, Expat itself does not access local files or create network connections. Expat versions lower than 2.7.2 may be vulnerable to the "billion laughs", "quadratic blowup" and "large tokens" vulnerabilities, or to disproportional use of dynamic memory. Python bundles a copy of Expat, and whether Python uses the b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea9c76dc-7487-4552-bb2e-e06b98a4be7f
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,459
supabase-export-v2
3fa431d57231e925
how the Python interpreter :option:`has been configured <--with-system-expat>` in your environment. Python may be vulnerable if it uses such older versions of Expat. Check :const:`!pyexpat.EXPAT_VERSION`. :mod:`xmlrpc` is **vulnerable** to the "decompression bomb" attack.
trusted_official_docs
CPython Docs
how the Python interpreter :option:`has been configured <--with-system-expat>` in your environment. Python may be vulnerable if it uses such older versions of Expat. Check :const:`!pyexpat.EXPAT_VERSION`. :mod:`xmlrpc` is **vulnerable** to the "decompression bomb" attack.
how the Python interpreter :option:`has been configured <--with-system-expat>` in your environment. Python may be vulnerable if it uses such older versions of Expat. Check :const:`!pyexpat.EXPAT_VERSION`. :mod:`xmlrpc` is **vulnerable** to the "decompression bomb" attack.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f2d6cee5-ea80-4444-8f0d-0eefb854e9ad
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,457
supabase-export-v2
fea1ba5ff028b3f0
The built-in XML parsers of Python rely on the library `libexpat`_, commonly called Expat, for parsing XML. By default, Expat itself does not access local files or create network connections.
trusted_official_docs
CPython Docs
The built-in XML parsers of Python rely on the library `libexpat`_, commonly called Expat, for parsing XML. By default, Expat itself does not access local files or create network connections.
The built-in XML parsers of Python rely on the library `libexpat`_, commonly called Expat, for parsing XML. By default, Expat itself does not access local files or create network connections.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe1965e0-b0a2-4846-82af-db178df87826
CPython Docs
file://datasets/cpython/Doc/library/xml.rst
unknown
b6424c3d-a1bc-4b2d-8ed7-65a4330f558c
52,456
supabase-export-v2
3cc1cf7b24b26427
of service attacks, access local files, generate network connections to other machines, or circumvent firewalls when attacker-controlled XML is being parsed, in Python or elsewhere. The built-in XML parsers of Python rely on the library `libexpat`_, commonly called Expat, for parsing XML.
trusted_official_docs
CPython Docs
of service attacks, access local files, generate network connections to other machines, or circumvent firewalls when attacker-controlled XML is being parsed, in Python or elsewhere. The built-in XML parsers of Python rely on the library `libexpat`_, commonly called Expat, for parsing XML.
of service attacks, access local files, generate network connections to other machines, or circumvent firewalls when attacker-controlled XML is being parsed, in Python or elsewhere. The built-in XML parsers of Python rely on the library `libexpat`_, commonly called Expat, for parsing XML.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0482c7b0-1617-435f-849e-0d2c17db5e4b
CPython Docs
file://datasets/cpython/Doc/library/builtins.rst
unknown
02cadaef-7e03-4e1f-a612-e85ab5561bca
52,476
supabase-export-v2
c2e33ab93016e4c3
# ... As an implementation detail, most modules have the name ``__builtins__`` made available as part of their globals. The value of ``__builtins__`` is normally either this module or the value of this module's :attr:`~object.__dict__` attribute. Since this is an implementation detail, it may not be used by alternate i...
trusted_official_docs
CPython Docs
# ... As an implementation detail, most modules have the name ``__builtins__`` made available as part of their globals. The value of ``__builtins__`` is normally either this module or the value of this module's :attr:`~object.__dict__` attribute. Since this is an implementation detail, it may not be used by alternate i...
# ... As an implementation detail, most modules have the name ``__builtins__`` made available as part of their globals. The value of ``__builtins__`` is normally either this module or the value of this module's :attr:`~object.__dict__` attribute. Since this is an implementation detail, it may not be used by alternate i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
12caece7-f8f5-4def-b770-f5f96f771f1e
CPython Docs
file://datasets/cpython/Doc/library/builtins.rst
unknown
02cadaef-7e03-4e1f-a612-e85ab5561bca
52,469
supabase-export-v2
d1d85c462955e251
This module provides direct access to all 'built-in' identifiers of Python; for example, ``builtins.open`` is the full name for the built-in function :func:`open`. This module is not normally accessed explicitly by most applications, but can be useful in modules that provide objects with the same name as a built-in val...
trusted_official_docs
CPython Docs
This module provides direct access to all 'built-in' identifiers of Python; for example, ``builtins.open`` is the full name for the built-in function :func:`open`. This module is not normally accessed explicitly by most applications, but can be useful in modules that provide objects with the same name as a built-in val...
This module provides direct access to all 'built-in' identifiers of Python; for example, ``builtins.open`` is the full name for the built-in function :func:`open`. This module is not normally accessed explicitly by most applications, but can be useful in modules that provide objects with the same name as a built-in val...
python, official-docs, cpython, P0
Local_Trusted_Corpus
00fbf975-093a-48a6-90b0-3d5c3073abcc
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,602
supabase-export-v2
9730e61cff5964db
Return the path to an executable which would be run if the given *cmd* was called. If no *cmd* would be called, return ``None``. *mode* is a permission mask passed to :func:`os.access`, by default determining if the file exists and is executable.
trusted_official_docs
CPython Docs
Return the path to an executable which would be run if the given *cmd* was called. If no *cmd* would be called, return ``None``. *mode* is a permission mask passed to :func:`os.access`, by default determining if the file exists and is executable.
Return the path to an executable which would be run if the given *cmd* was called. If no *cmd* would be called, return ``None``. *mode* is a permission mask passed to :func:`os.access`, by default determining if the file exists and is executable.
python, official-docs, cpython, P0
Local_Trusted_Corpus
03aa8fc8-de54-49ef-b552-032e3f94ad65
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,563
supabase-export-v2
ec4bc5084af14c2e
If *onexc* is provided, it must be a callable that accepts three parameters: *function*, *path*, and *excinfo*. The first parameter, *function*, is the function which raised the exception; it depends on the platform and implementation. The second parameter, *path*, will be the path name passed to *function*. The thir...
trusted_official_docs
CPython Docs
If *onexc* is provided, it must be a callable that accepts three parameters: *function*, *path*, and *excinfo*. The first parameter, *function*, is the function which raised the exception; it depends on the platform and implementation. The second parameter, *path*, will be the path name passed to *function*. The thir...
If *onexc* is provided, it must be a callable that accepts three parameters: *function*, *path*, and *excinfo*. The first parameter, *function*, is the function which raised the exception; it depends on the platform and implementation. The second parameter, *path*, will be the path name passed to *function*. The thir...
python, official-docs, cpython, P0
Local_Trusted_Corpus
04beb383-168f-461a-9614-839b0c8de9e2
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,547
supabase-export-v2
c72fb44d803b2f00
optional *ignore_dangling_symlinks* flag to true if you want to silence this exception. Notice that this option has no effect on platforms that don't support :func:`os.symlink`. If *ignore* is given, it must be a callable that will receive as its arguments the directory being visited by :func:`copytree`, and a list of...
trusted_official_docs
CPython Docs
optional *ignore_dangling_symlinks* flag to true if you want to silence this exception. Notice that this option has no effect on platforms that don't support :func:`os.symlink`. If *ignore* is given, it must be a callable that will receive as its arguments the directory being visited by :func:`copytree`, and a list of...
optional *ignore_dangling_symlinks* flag to true if you want to silence this exception. Notice that this option has no effect on platforms that don't support :func:`os.symlink`. If *ignore* is given, it must be a callable that will receive as its arguments the directory being visited by :func:`copytree`, and a list of...
python, official-docs, cpython, P0
Local_Trusted_Corpus
054e56ee-ce7d-40aa-a860-2516ad1386c4
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,565
supabase-export-v2
4faa4aebf1d8ef41
The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`. .. seealso:: :ref:`shutil-rmtree-example` for an example of handling the removal of a directory tree that contains read-only files.
trusted_official_docs
CPython Docs
The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`. .. seealso:: :ref:`shutil-rmtree-example` for an example of handling the removal of a directory tree that contains read-only files.
The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`. .. seealso:: :ref:`shutil-rmtree-example` for an example of handling the removal of a directory tree that contains read-only files.
python, official-docs, cpython, P0
Local_Trusted_Corpus
079c345b-64d5-4cbc-a8be-09f80f1382ce
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,618
supabase-export-v2
3d3702717f25f02c
more efficiently (see :issue:`33671`). "fast-copy" means that the copying operation occurs within the kernel, avoiding the use of userspace buffers in Python as in "``outfd.write(infd.read())``". On macOS `fcopyfile`_ is used to copy the file content (not metadata).
trusted_official_docs
CPython Docs
more efficiently (see :issue:`33671`). "fast-copy" means that the copying operation occurs within the kernel, avoiding the use of userspace buffers in Python as in "``outfd.write(infd.read())``". On macOS `fcopyfile`_ is used to copy the file content (not metadata).
more efficiently (see :issue:`33671`). "fast-copy" means that the copying operation occurs within the kernel, avoiding the use of userspace buffers in Python as in "``outfd.write(infd.read())``". On macOS `fcopyfile`_ is used to copy the file content (not metadata).
python, official-docs, cpython, P0
Local_Trusted_Corpus
084e16e2-9a0f-48d8-82dd-ea35ec971bb7
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,495
supabase-export-v2
6d732ee56416b3c0
named *dst* and return *dst* in the most efficient way possible. *src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings. *dst* must be the complete target file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the sa...
trusted_official_docs
CPython Docs
named *dst* and return *dst* in the most efficient way possible. *src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings. *dst* must be the complete target file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the sa...
named *dst* and return *dst* in the most efficient way possible. *src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings. *dst* must be the complete target file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the sa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a9e25c6-3d91-40b5-a0f1-31297029987b
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,699
supabase-export-v2
46b725748947fda3
By default :mod:`!shutil` provides these formats: - *zip*: ZIP file (unpacking compressed files works only if the corresponding module is available). - *tar*: uncompressed tar file. - *gztar*: gzip'ed tar-file (if the :mod:`zlib` module is available). - *bztar*: bzip2'ed tar-file (if the :mod:`bz2` module is available...
trusted_official_docs
CPython Docs
By default :mod:`!shutil` provides these formats: - *zip*: ZIP file (unpacking compressed files works only if the corresponding module is available). - *tar*: uncompressed tar file. - *gztar*: gzip'ed tar-file (if the :mod:`zlib` module is available). - *bztar*: bzip2'ed tar-file (if the :mod:`bz2` module is available...
By default :mod:`!shutil` provides these formats: - *zip*: ZIP file (unpacking compressed files works only if the corresponding module is available). - *tar*: uncompressed tar file. - *gztar*: gzip'ed tar-file (if the :mod:`zlib` module is available). - *bztar*: bzip2'ed tar-file (if the :mod:`bz2` module is available...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0d530b0d-3e53-4c40-8542-98d538393cf4
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,656
supabase-export-v2
85bf4f57c2dc4410
*owner* and *group* are used when creating a tar archive. By default, uses the current owner and group. *logger* must be an object compatible with :pep:`282`, usually an instance of :class:`logging.Logger`.
trusted_official_docs
CPython Docs
*owner* and *group* are used when creating a tar archive. By default, uses the current owner and group. *logger* must be an object compatible with :pep:`282`, usually an instance of :class:`logging.Logger`.
*owner* and *group* are used when creating a tar archive. By default, uses the current owner and group. *logger* must be an object compatible with :pep:`282`, usually an instance of :class:`logging.Logger`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
136b3594-07e6-49a6-88b8-3a0a79334343
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,683
supabase-export-v2
97e4737b99beba85
tar files, it is recommended to use ``'data'`` (default since Python 3.14), unless using features specific to tar and UNIX-like filesystems. (See :ref:`tarfile-extraction-filter` for details.) .. audit-event:: shutil.unpack_archive filename,extract_dir,format shutil.unpack_archive
trusted_official_docs
CPython Docs
tar files, it is recommended to use ``'data'`` (default since Python 3.14), unless using features specific to tar and UNIX-like filesystems. (See :ref:`tarfile-extraction-filter` for details.) .. audit-event:: shutil.unpack_archive filename,extract_dir,format shutil.unpack_archive
tar files, it is recommended to use ``'data'`` (default since Python 3.14), unless using features specific to tar and UNIX-like filesystems. (See :ref:`tarfile-extraction-filter` for details.) .. audit-event:: shutil.unpack_archive filename,extract_dir,format shutil.unpack_archive
python, official-docs, cpython, P0
Local_Trusted_Corpus
1453e002-12bd-498b-a6a8-46d7bb62a627
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,686
supabase-export-v2
386c154e6f5ff07e
created outside of the path specified in the *extract_dir* argument, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..". Since Python 3.14, the defaults for both built-in formats (zip and tar files) will prevent the most dangerous of such security issues, but will not prevent ...
trusted_official_docs
CPython Docs
created outside of the path specified in the *extract_dir* argument, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..". Since Python 3.14, the defaults for both built-in formats (zip and tar files) will prevent the most dangerous of such security issues, but will not prevent ...
created outside of the path specified in the *extract_dir* argument, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..". Since Python 3.14, the defaults for both built-in formats (zip and tar files) will prevent the most dangerous of such security issues, but will not prevent ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1494cc80-52a8-4eea-8a6a-103febba34e3
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,693
supabase-export-v2
83e4e7b0db14f9a0
possibly a *filter* keyword argument, if it was given to :func:`unpack_archive`; - additional keyword arguments, specified by *extra_args* as a sequence of ``(name, value)`` tuples. *description* can be provided to describe the format, and will be returned by the :func:`get_unpack_formats` function.
trusted_official_docs
CPython Docs
possibly a *filter* keyword argument, if it was given to :func:`unpack_archive`; - additional keyword arguments, specified by *extra_args* as a sequence of ``(name, value)`` tuples. *description* can be provided to describe the format, and will be returned by the :func:`get_unpack_formats` function.
possibly a *filter* keyword argument, if it was given to :func:`unpack_archive`; - additional keyword arguments, specified by *extra_args* as a sequence of ``(name, value)`` tuples. *description* can be provided to describe the format, and will be returned by the :func:`get_unpack_formats` function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
14b02bd7-b86b-4828-b2f3-d4c3835d491f
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,707
supabase-export-v2
d79d347582a7b8f9
.. code-block:: shell-session $ tar -tzvf /Users/tarek/myarchive.tar.gz drwx------ tarek/staff 0 2010-02-01 16:23:40 ./ -rw-r--r-- tarek/staff 609 2008-06-09 13:26:54 ./authorized_keys -rwxr-xr-x tarek/staff 65 2008-06-09 13:26:54 ./config -rwx------ tarek/staff 668 2008-06-09 13:26:54 ./id_dsa -rwxr-xr-x tarek/st...
trusted_official_docs
CPython Docs
.. code-block:: shell-session $ tar -tzvf /Users/tarek/myarchive.tar.gz drwx------ tarek/staff 0 2010-02-01 16:23:40 ./ -rw-r--r-- tarek/staff 609 2008-06-09 13:26:54 ./authorized_keys -rwxr-xr-x tarek/staff 65 2008-06-09 13:26:54 ./config -rwx------ tarek/staff 668 2008-06-09 13:26:54 ./id_dsa -rwxr-xr-x tarek/st...
.. code-block:: shell-session $ tar -tzvf /Users/tarek/myarchive.tar.gz drwx------ tarek/staff 0 2010-02-01 16:23:40 ./ -rw-r--r-- tarek/staff 609 2008-06-09 13:26:54 ./authorized_keys -rwxr-xr-x tarek/staff 65 2008-06-09 13:26:54 ./config -rwx------ tarek/staff 668 2008-06-09 13:26:54 ./id_dsa -rwxr-xr-x tarek/st...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1537b4f7-7889-4cfe-8f18-f36b2c4127a0
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,541
supabase-export-v2
ff94ab8e11014bad
.. function:: ignore_patterns(*patterns) This factory function creates a function that can be used as a callable for :func:`copytree`\'s *ignore* argument, ignoring files and directories that match one of the glob-style *patterns* provided. See the example below.
trusted_official_docs
CPython Docs
.. function:: ignore_patterns(*patterns) This factory function creates a function that can be used as a callable for :func:`copytree`\'s *ignore* argument, ignoring files and directories that match one of the glob-style *patterns* provided. See the example below.
.. function:: ignore_patterns(*patterns) This factory function creates a function that can be used as a callable for :func:`copytree`\'s *ignore* argument, ignoring files and directories that match one of the glob-style *patterns* provided. See the example below.
python, official-docs, cpython, P0
Local_Trusted_Corpus
16a0ab89-1430-4af1-b6b6-c7ba7a34413f
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,622
supabase-export-v2
82f273ed81598dd4
reads and writes in a loop. :func:`shutil.copy2` uses the native ``CopyFile2`` call on Windows, which is the most efficient method, supports copy-on-write, and preserves metadata. If the fast-copy operation fails and no data was written in the destination file then shutil will silently fall back to less efficient :func...
trusted_official_docs
CPython Docs
reads and writes in a loop. :func:`shutil.copy2` uses the native ``CopyFile2`` call on Windows, which is the most efficient method, supports copy-on-write, and preserves metadata. If the fast-copy operation fails and no data was written in the destination file then shutil will silently fall back to less efficient :func...
reads and writes in a loop. :func:`shutil.copy2` uses the native ``CopyFile2`` call on Windows, which is the most efficient method, supports copy-on-write, and preserves metadata. If the fast-copy operation fails and no data was written in the destination file then shutil will silently fall back to less efficient :func...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b653b2a-a5c3-4ee9-95c3-08e02829e487
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,538
supabase-export-v2
96c0b8ad7122c1d6
.. audit-event:: shutil.copystat src,dst shutil.copy2 .. versionchanged:: 3.3 Added *follow_symlinks* argument, try to copy extended file system attributes too (currently Linux only). Now returns path to the newly created file.
trusted_official_docs
CPython Docs
.. audit-event:: shutil.copystat src,dst shutil.copy2 .. versionchanged:: 3.3 Added *follow_symlinks* argument, try to copy extended file system attributes too (currently Linux only). Now returns path to the newly created file.
.. audit-event:: shutil.copystat src,dst shutil.copy2 .. versionchanged:: 3.3 Added *follow_symlinks* argument, try to copy extended file system attributes too (currently Linux only). Now returns path to the newly created file.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1d58ec5d-b578-41fd-a2f8-25dcdc2ec2b2
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,492
supabase-export-v2
ec1fa90fe00122b6
position of the *fsrc* object is not 0, only the contents from the current file position to the end of the file will be copied. :func:`copyfileobj` will *not* guarantee that the destination stream has been flushed on completion of the copy. If you want to read from the destination at the completion of the copy operat...
trusted_official_docs
CPython Docs
position of the *fsrc* object is not 0, only the contents from the current file position to the end of the file will be copied. :func:`copyfileobj` will *not* guarantee that the destination stream has been flushed on completion of the copy. If you want to read from the destination at the completion of the copy operat...
position of the *fsrc* object is not 0, only the contents from the current file position to the end of the file will be copied. :func:`copyfileobj` will *not* guarantee that the destination stream has been flushed on completion of the copy. If you want to read from the destination at the completion of the copy operat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
20b7ddd5-93ca-4228-989f-3d7eba4f80ee
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,650
supabase-export-v2
a6eb1582feee473c
*base_name* is a string or :term:`path-like object` specifying the name of the file to create, including the path, minus any format-specific extension. *format* is the archive format: one of "zip" (if the :mod:`zlib` module is available), "tar", "gztar" (if the :mod:`zlib` module is available), "bztar" (if the :mod:`...
trusted_official_docs
CPython Docs
*base_name* is a string or :term:`path-like object` specifying the name of the file to create, including the path, minus any format-specific extension. *format* is the archive format: one of "zip" (if the :mod:`zlib` module is available), "tar", "gztar" (if the :mod:`zlib` module is available), "bztar" (if the :mod:`...
*base_name* is a string or :term:`path-like object` specifying the name of the file to create, including the path, minus any format-specific extension. *format* is the archive format: one of "zip" (if the :mod:`zlib` module is available), "tar", "gztar" (if the :mod:`zlib` module is available), "bztar" (if the :mod:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2752d85b-f859-423d-af57-8d2df21e1e28
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,724
supabase-export-v2
1ea518c0c1ce8ea6
a terminal, the value given in ``fallback`` parameter is used. ``fallback`` defaults to ``(80, 24)`` which is the default size used by many terminal emulators. The value returned is a named tuple of type :class:`os.terminal_size`.
trusted_official_docs
CPython Docs
a terminal, the value given in ``fallback`` parameter is used. ``fallback`` defaults to ``(80, 24)`` which is the default size used by many terminal emulators. The value returned is a named tuple of type :class:`os.terminal_size`.
a terminal, the value given in ``fallback`` parameter is used. ``fallback`` defaults to ``(80, 24)`` which is the default size used by many terminal emulators. The value returned is a named tuple of type :class:`os.terminal_size`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2950d192-71d1-4063-bbc0-cc4affa19658
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,691
supabase-export-v2
0f124873c7490316
unpack format. *name* is the name of the format and *extensions* is a list of extensions corresponding to the format, like ``.zip`` for Zip files. *function* is the callable that will be used to unpack archives. The callable will receive:
trusted_official_docs
CPython Docs
unpack format. *name* is the name of the format and *extensions* is a list of extensions corresponding to the format, like ``.zip`` for Zip files. *function* is the callable that will be used to unpack archives. The callable will receive:
unpack format. *name* is the name of the format and *extensions* is a list of extensions corresponding to the format, like ``.zip`` for Zip files. *function* is the callable that will be used to unpack archives. The callable will receive:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2fc6cec7-a025-4ddd-a3ee-dfbe18ddd6c6
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,714
supabase-export-v2
d0220dfff7004908
In the final archive, :file:`please_add.txt` should be included, but :file:`do_not_add.txt` should not. Therefore we use the following:: >>> from shutil import make_archive >>> import os >>> archive_name = os.path.expanduser(os.path.join('~', 'myarchive')) >>> make_archive( ... archive_name, ... 'tar', ... root_d...
trusted_official_docs
CPython Docs
In the final archive, :file:`please_add.txt` should be included, but :file:`do_not_add.txt` should not. Therefore we use the following:: >>> from shutil import make_archive >>> import os >>> archive_name = os.path.expanduser(os.path.join('~', 'myarchive')) >>> make_archive( ... archive_name, ... 'tar', ... root_d...
In the final archive, :file:`please_add.txt` should be included, but :file:`do_not_add.txt` should not. Therefore we use the following:: >>> from shutil import make_archive >>> import os >>> archive_name = os.path.expanduser(os.path.join('~', 'myarchive')) >>> make_archive( ... archive_name, ... 'tar', ... root_d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
321bc79c-79f5-47a1-8b36-dfb198e6b3dd
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,700
supabase-export-v2
01daf401d77791f4
:mod:`bz2` module is available). - *xztar*: xz'ed tar-file (if the :mod:`lzma` module is available). - *zstdtar*: Zstandard compressed tar-file (if the :mod:`compression.zstd` module is available). You can register new formats or provide your own unpacker for any existing formats, by using :func:`register_unpack_forma...
trusted_official_docs
CPython Docs
:mod:`bz2` module is available). - *xztar*: xz'ed tar-file (if the :mod:`lzma` module is available). - *zstdtar*: Zstandard compressed tar-file (if the :mod:`compression.zstd` module is available). You can register new formats or provide your own unpacker for any existing formats, by using :func:`register_unpack_forma...
:mod:`bz2` module is available). - *xztar*: xz'ed tar-file (if the :mod:`lzma` module is available). - *zstdtar*: Zstandard compressed tar-file (if the :mod:`compression.zstd` module is available). You can register new formats or provide your own unpacker for any existing formats, by using :func:`register_unpack_forma...
python, official-docs, cpython, P0
Local_Trusted_Corpus
32a54daa-76a8-41cf-b577-563b315ab919
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,660
supabase-export-v2
df43ba7b5a1ed02a
.. note:: This function is not thread-safe when custom archivers registered with :func:`register_archive_format` do not support the *root_dir* argument. In this case it temporarily changes the current working directory of the process to *root_dir* to perform archiving.
trusted_official_docs
CPython Docs
.. note:: This function is not thread-safe when custom archivers registered with :func:`register_archive_format` do not support the *root_dir* argument. In this case it temporarily changes the current working directory of the process to *root_dir* to perform archiving.
.. note:: This function is not thread-safe when custom archivers registered with :func:`register_archive_format` do not support the *root_dir* argument. In this case it temporarily changes the current working directory of the process to *root_dir* to perform archiving.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3350eb18-657d-4196-8046-5c70c4a1f684
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,646
supabase-export-v2
4cfe8ba88c7bfcb0
.. versionchanged:: 3.5 Added support for the *xztar* format. High-level utilities to create and read compressed and archived files are also provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5 Added support for the *xztar* format. High-level utilities to create and read compressed and archived files are also provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
.. versionchanged:: 3.5 Added support for the *xztar* format. High-level utilities to create and read compressed and archived files are also provided. They rely on the :mod:`zipfile` and :mod:`tarfile` modules.
python, official-docs, cpython, P0
Local_Trusted_Corpus
365431fd-880e-483e-85c4-c9147b8bb012
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,583
supabase-export-v2
4d212bd935a8f942
.. versionchanged:: 3.3 Added explicit symlink handling for foreign filesystems, thus adapting it to the behavior of GNU's :program:`mv`. Now returns *dst*. .. versionchanged:: 3.5 Added the *copy_function* keyword argument.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 Added explicit symlink handling for foreign filesystems, thus adapting it to the behavior of GNU's :program:`mv`. Now returns *dst*. .. versionchanged:: 3.5 Added the *copy_function* keyword argument.
.. versionchanged:: 3.3 Added explicit symlink handling for foreign filesystems, thus adapting it to the behavior of GNU's :program:`mv`. Now returns *dst*. .. versionchanged:: 3.5 Added the *copy_function* keyword argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
380f70f4-08c5-4068-b127-177479b6de9f
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,713
supabase-export-v2
f6c52bad026f3575
$ tree tmp tmp └── root └── structure ├── content └── please_add.txt └── do_not_add.txt In the final archive, :file:`please_add.txt` should be included, but :file:`do_not_add.txt` should not. Therefore we use the following::
trusted_official_docs
CPython Docs
$ tree tmp tmp └── root └── structure ├── content └── please_add.txt └── do_not_add.txt In the final archive, :file:`please_add.txt` should be included, but :file:`do_not_add.txt` should not. Therefore we use the following::
$ tree tmp tmp └── root └── structure ├── content └── please_add.txt └── do_not_add.txt In the final archive, :file:`please_add.txt` should be included, but :file:`do_not_add.txt` should not. Therefore we use the following::
python, official-docs, cpython, P0
Local_Trusted_Corpus
3cbffaef-1d66-49d7-93c5-de1d040c9361
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,668
supabase-export-v2
312fee9db8d452e7
:mod:`bz2` module is available). - *xztar*: xz'ed tar-file (if the :mod:`lzma` module is available). - *zstdtar*: Zstandard compressed tar-file (if the :mod:`compression.zstd` module is available). You can register new formats or provide your own archiver for any existing formats, by using :func:`register_archive_form...
trusted_official_docs
CPython Docs
:mod:`bz2` module is available). - *xztar*: xz'ed tar-file (if the :mod:`lzma` module is available). - *zstdtar*: Zstandard compressed tar-file (if the :mod:`compression.zstd` module is available). You can register new formats or provide your own archiver for any existing formats, by using :func:`register_archive_form...
:mod:`bz2` module is available). - *xztar*: xz'ed tar-file (if the :mod:`lzma` module is available). - *zstdtar*: Zstandard compressed tar-file (if the :mod:`compression.zstd` module is available). You can register new formats or provide your own archiver for any existing formats, by using :func:`register_archive_form...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ce098b3-2c59-41d6-8f28-1d530625142a
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,606
supabase-export-v2
0d04c9b431a0bf49
to determine if the current directory should be prepended to *path*. To avoid consulting the current working directory for executables: set the environment variable ``NoDefaultCurrentDirectoryInExePath``. Also on Windows, the :envvar:`PATHEXT` environment variable is used to resolve commands that may not already inclu...
trusted_official_docs
CPython Docs
to determine if the current directory should be prepended to *path*. To avoid consulting the current working directory for executables: set the environment variable ``NoDefaultCurrentDirectoryInExePath``. Also on Windows, the :envvar:`PATHEXT` environment variable is used to resolve commands that may not already inclu...
to determine if the current directory should be prepended to *path*. To avoid consulting the current working directory for executables: set the environment variable ``NoDefaultCurrentDirectoryInExePath``. Also on Windows, the :envvar:`PATHEXT` environment variable is used to resolve commands that may not already inclu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
41f10bba-7b8e-47ec-8ced-9cfeb4e848c0
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,519
supabase-export-v2
f4fc5fe9fd78380c
* If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the last access and modification times of a symbolic link. * If ``os.chflags in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the flags of a symbolic link. (``os.chflags`` is not available on all platfo...
trusted_official_docs
CPython Docs
* If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the last access and modification times of a symbolic link. * If ``os.chflags in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the flags of a symbolic link. (``os.chflags`` is not available on all platfo...
* If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the last access and modification times of a symbolic link. * If ``os.chflags in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the flags of a symbolic link. (``os.chflags`` is not available on all platfo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43b2c1fc-6509-4268-b06b-f0e8c09d9e40
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,498
supabase-export-v2
fee2a36592a151bc
If *follow_symlinks* is false and *src* is a symbolic link, a new symbolic link will be created instead of copying the file *src* points to. .. audit-event:: shutil.copyfile src,dst shutil.copyfile
trusted_official_docs
CPython Docs
If *follow_symlinks* is false and *src* is a symbolic link, a new symbolic link will be created instead of copying the file *src* points to. .. audit-event:: shutil.copyfile src,dst shutil.copyfile
If *follow_symlinks* is false and *src* is a symbolic link, a new symbolic link will be created instead of copying the file *src* points to. .. audit-event:: shutil.copyfile src,dst shutil.copyfile
python, official-docs, cpython, P0
Local_Trusted_Corpus
45cfa937-93ee-43d2-b44a-22ee7da97546
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,550
supabase-export-v2
8b90632f6b316aa6
path and the destination path as arguments. By default, :func:`~shutil.copy2` is used, but any function that supports the same signature (like :func:`~shutil.copy`) can be used. If *dirs_exist_ok* is false (the default) and *dst* already exists, a :exc:`FileExistsError` is raised. If *dirs_exist_ok* is true, the copyi...
trusted_official_docs
CPython Docs
path and the destination path as arguments. By default, :func:`~shutil.copy2` is used, but any function that supports the same signature (like :func:`~shutil.copy`) can be used. If *dirs_exist_ok* is false (the default) and *dst* already exists, a :exc:`FileExistsError` is raised. If *dirs_exist_ok* is true, the copyi...
path and the destination path as arguments. By default, :func:`~shutil.copy2` is used, but any function that supports the same signature (like :func:`~shutil.copy`) can be used. If *dirs_exist_ok* is false (the default) and *dst* already exists, a :exc:`FileExistsError` is raised. If *dirs_exist_ok* is true, the copyi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4957d530-d780-4553-85a3-c2691c9eb480
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,568
supabase-export-v2
2620e5214aeed252
.. versionchanged:: 3.3 Added a symlink attack resistant version that is used automatically if platform supports fd-based functions. .. versionchanged:: 3.8 On Windows, will no longer delete the contents of a directory junction before removing the junction.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 Added a symlink attack resistant version that is used automatically if platform supports fd-based functions. .. versionchanged:: 3.8 On Windows, will no longer delete the contents of a directory junction before removing the junction.
.. versionchanged:: 3.3 Added a symlink attack resistant version that is used automatically if platform supports fd-based functions. .. versionchanged:: 3.8 On Windows, will no longer delete the contents of a directory junction before removing the junction.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c036a99-58f8-483b-943e-daa55c2955c2
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,649
supabase-export-v2
ea648d0fd118c9fd
Create an archive file (such as zip or tar) and return its name. *base_name* is a string or :term:`path-like object` specifying the name of the file to create, including the path, minus any format-specific extension.
trusted_official_docs
CPython Docs
Create an archive file (such as zip or tar) and return its name. *base_name* is a string or :term:`path-like object` specifying the name of the file to create, including the path, minus any format-specific extension.
Create an archive file (such as zip or tar) and return its name. *base_name* is a string or :term:`path-like object` specifying the name of the file to create, including the path, minus any format-specific extension.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4d806730-b896-4d37-9fb1-87948022ed5d
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,554
supabase-export-v2
f357e75b6aa039c5
.. versionchanged:: 3.3 Copy metadata when *symlinks* is false. Now returns *dst*. .. versionchanged:: 3.8 Platform-specific fast-copy syscalls may be used internally in order to copy the file more efficiently. See :ref:`shutil-platform-dependent-efficient-copy-operations` section.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 Copy metadata when *symlinks* is false. Now returns *dst*. .. versionchanged:: 3.8 Platform-specific fast-copy syscalls may be used internally in order to copy the file more efficiently. See :ref:`shutil-platform-dependent-efficient-copy-operations` section.
.. versionchanged:: 3.3 Copy metadata when *symlinks* is false. Now returns *dst*. .. versionchanged:: 3.8 Platform-specific fast-copy syscalls may be used internally in order to copy the file more efficiently. See :ref:`shutil-platform-dependent-efficient-copy-operations` section.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4dec8518-3dbf-4844-aec7-8a1f5c6768f4
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,509
supabase-export-v2
6025d8c10a0f4dc8
.. function:: copymode(src, dst, *, follow_symlinks=True) Copy the permission bits from *src* to *dst*. The file contents, owner, and group are unaffected. *src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings. If *follow_symlinks* is false, and both *src* and *dst* are symbo...
trusted_official_docs
CPython Docs
.. function:: copymode(src, dst, *, follow_symlinks=True) Copy the permission bits from *src* to *dst*. The file contents, owner, and group are unaffected. *src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings. If *follow_symlinks* is false, and both *src* and *dst* are symbo...
.. function:: copymode(src, dst, *, follow_symlinks=True) Copy the permission bits from *src* to *dst*. The file contents, owner, and group are unaffected. *src* and *dst* are :term:`path-like objects <path-like object>` or path names given as strings. If *follow_symlinks* is false, and both *src* and *dst* are symbo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f4d6a1d-1a90-4c88-b6bb-4d71d8631c72
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,612
supabase-export-v2
498b0ea50786f474
.. versionchanged:: 3.8 The :class:`bytes` type is now accepted. If *cmd* type is :class:`bytes`, the result type is also :class:`bytes`. .. versionchanged:: 3.12 On Windows, the current directory is no longer prepended to the search path if *mode* includes ``os.X_OK`` and WinAPI ``NeedCurrentDirectoryForExePathW(cm...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 The :class:`bytes` type is now accepted. If *cmd* type is :class:`bytes`, the result type is also :class:`bytes`. .. versionchanged:: 3.12 On Windows, the current directory is no longer prepended to the search path if *mode* includes ``os.X_OK`` and WinAPI ``NeedCurrentDirectoryForExePathW(cm...
.. versionchanged:: 3.8 The :class:`bytes` type is now accepted. If *cmd* type is :class:`bytes`, the result type is also :class:`bytes`. .. versionchanged:: 3.12 On Windows, the current directory is no longer prepended to the search path if *mode* includes ``os.X_OK`` and WinAPI ``NeedCurrentDirectoryForExePathW(cm...
python, official-docs, cpython, P0
Local_Trusted_Corpus
519f5f8c-99de-48aa-9afa-5bcedbc8177c
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,680
supabase-export-v2
78f6326995482625
Unpack an archive. *filename* is the full path of the archive. *extract_dir* is the name of the target directory where the archive is unpacked. If not provided, the current working directory is used.
trusted_official_docs
CPython Docs
Unpack an archive. *filename* is the full path of the archive. *extract_dir* is the name of the target directory where the archive is unpacked. If not provided, the current working directory is used.
Unpack an archive. *filename* is the full path of the archive. *extract_dir* is the name of the target directory where the archive is unpacked. If not provided, the current working directory is used.
python, official-docs, cpython, P0
Local_Trusted_Corpus
54ba3e55-d835-4276-9afd-79e9efd3c594
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,605
supabase-export-v2
554116f06b21f18b
directory component, :func:`!which` only checks the specified path directly and does not search the directories listed in *path* or in the system's :envvar:`PATH` environment variable. On Windows, the current directory is prepended to the *path* if *mode* does not include ``os.X_OK``. When the *mode* does include ``os...
trusted_official_docs
CPython Docs
directory component, :func:`!which` only checks the specified path directly and does not search the directories listed in *path* or in the system's :envvar:`PATH` environment variable. On Windows, the current directory is prepended to the *path* if *mode* does not include ``os.X_OK``. When the *mode* does include ``os...
directory component, :func:`!which` only checks the specified path directly and does not search the directories listed in *path* or in the system's :envvar:`PATH` environment variable. On Windows, the current directory is prepended to the *path* if *mode* does not include ``os.X_OK``. When the *mode* does include ``os...
python, official-docs, cpython, P0
Local_Trusted_Corpus
56361cef-9f45-4b31-9d98-6be8dbb44e8e
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,535
supabase-export-v2
8ea6182d3b2cf0ec
all of this functionality is unavailable, :func:`copy2` will preserve all the metadata it can; :func:`copy2` never raises an exception because it cannot preserve file metadata. :func:`copy2` uses :func:`copystat` to copy the file metadata. Please see :func:`copystat` for more information about platform support for mod...
trusted_official_docs
CPython Docs
all of this functionality is unavailable, :func:`copy2` will preserve all the metadata it can; :func:`copy2` never raises an exception because it cannot preserve file metadata. :func:`copy2` uses :func:`copystat` to copy the file metadata. Please see :func:`copystat` for more information about platform support for mod...
all of this functionality is unavailable, :func:`copy2` will preserve all the metadata it can; :func:`copy2` never raises an exception because it cannot preserve file metadata. :func:`copy2` uses :func:`copystat` to copy the file metadata. Please see :func:`copystat` for more information about platform support for mod...
python, official-docs, cpython, P0
Local_Trusted_Corpus
56ba92b0-1eaa-4f18-bfb7-ab859afe0420
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,577
supabase-export-v2
caebef2377636f55
Recursively move a file or directory (*src*) to another location and return the destination. If *dst* is an existing directory or a symlink to a directory, then *src* is moved inside that directory. The destination path in that directory must not already exist.
trusted_official_docs
CPython Docs
Recursively move a file or directory (*src*) to another location and return the destination. If *dst* is an existing directory or a symlink to a directory, then *src* is moved inside that directory. The destination path in that directory must not already exist.
Recursively move a file or directory (*src*) to another location and return the destination. If *dst* is an existing directory or a symlink to a directory, then *src* is moved inside that directory. The destination path in that directory must not already exist.
python, official-docs, cpython, P0
Local_Trusted_Corpus
576d0e3c-1686-4cfc-9ac1-3ef15cd80ff4
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,603
supabase-export-v2
a15be51ed2d8f2cc
*mode* is a permission mask passed to :func:`os.access`, by default determining if the file exists and is executable. *path* is a "``PATH`` string" specifying the directories to look in, delimited by :data:`os.pathsep`. When no *path* is specified, the :envvar:`PATH` environment variable is read from :data:`os.enviro...
trusted_official_docs
CPython Docs
*mode* is a permission mask passed to :func:`os.access`, by default determining if the file exists and is executable. *path* is a "``PATH`` string" specifying the directories to look in, delimited by :data:`os.pathsep`. When no *path* is specified, the :envvar:`PATH` environment variable is read from :data:`os.enviro...
*mode* is a permission mask passed to :func:`os.access`, by default determining if the file exists and is executable. *path* is a "``PATH`` string" specifying the directories to look in, delimited by :data:`os.pathsep`. When no *path* is specified, the :envvar:`PATH` environment variable is read from :data:`os.enviro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
58228e40-cad0-41cf-9ac7-2017b7c5160e
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,595
supabase-export-v2
a400848c33652754
Change owner *user* and/or *group* of the given *path*. *user* can be a system user name or a uid; the same applies to *group*. At least one argument is required.
trusted_official_docs
CPython Docs
Change owner *user* and/or *group* of the given *path*. *user* can be a system user name or a uid; the same applies to *group*. At least one argument is required.
Change owner *user* and/or *group* of the given *path*. *user* can be a system user name or a uid; the same applies to *group*. At least one argument is required.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bedde6b-6244-4050-a6e8-fc2a2a860a88
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,671
supabase-export-v2
6df401711de13e18
Register an archiver for the format *name*. *function* is the callable that will be used to unpack archives. The callable will receive the *base_name* of the file to create, followed by the *base_dir* (which defaults to :data:`os.curdir`) to start archiving from. Further arguments are passed as keyword arguments: *ow...
trusted_official_docs
CPython Docs
Register an archiver for the format *name*. *function* is the callable that will be used to unpack archives. The callable will receive the *base_name* of the file to create, followed by the *base_dir* (which defaults to :data:`os.curdir`) to start archiving from. Further arguments are passed as keyword arguments: *ow...
Register an archiver for the format *name*. *function* is the callable that will be used to unpack archives. The callable will receive the *base_name* of the file to create, followed by the *base_dir* (which defaults to :data:`os.curdir`) to start archiving from. Further arguments are passed as keyword arguments: *ow...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bf77565-e2ec-4109-a155-f6f4c18fba8c
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,561
supabase-export-v2
677039d327cd23a4
.. note:: On platforms that support the necessary fd-based functions a symlink attack resistant version of :func:`rmtree` is used by default. On other platforms, the :func:`rmtree` implementation is susceptible to a symlink attack: given proper timing and circumstances, attackers can manipulate symlinks on the file...
trusted_official_docs
CPython Docs
.. note:: On platforms that support the necessary fd-based functions a symlink attack resistant version of :func:`rmtree` is used by default. On other platforms, the :func:`rmtree` implementation is susceptible to a symlink attack: given proper timing and circumstances, attackers can manipulate symlinks on the file...
.. note:: On platforms that support the necessary fd-based functions a symlink attack resistant version of :func:`rmtree` is used by default. On other platforms, the :func:`rmtree` implementation is susceptible to a symlink attack: given proper timing and circumstances, attackers can manipulate symlinks on the file...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5c925227-7cee-4bac-bf88-e15c2dd44978
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,687
supabase-export-v2
ffde0f2647d48858
tar files) will prevent the most dangerous of such security issues, but will not prevent *all* unintended behavior. Read the :ref:`tarfile-further-verification` section for tar-specific details. .. versionchanged:: 3.7 Accepts a :term:`path-like object` for *filename* and *extract_dir*.
trusted_official_docs
CPython Docs
tar files) will prevent the most dangerous of such security issues, but will not prevent *all* unintended behavior. Read the :ref:`tarfile-further-verification` section for tar-specific details. .. versionchanged:: 3.7 Accepts a :term:`path-like object` for *filename* and *extract_dir*.
tar files) will prevent the most dangerous of such security issues, but will not prevent *all* unintended behavior. Read the :ref:`tarfile-further-verification` section for tar-specific details. .. versionchanged:: 3.7 Accepts a :term:`path-like object` for *filename* and *extract_dir*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ecbc4a2-2955-4a15-9ffd-cadac5157aae
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,549
supabase-export-v2
1bf645f0c358c9eb
If exception(s) occur, an :exc:`Error` is raised with a list of reasons. If *copy_function* is given, it must be a callable that will be used to copy each file. It will be called with the source path and the destination path as arguments. By default, :func:`~shutil.copy2` is used, but any function that supports the ...
trusted_official_docs
CPython Docs
If exception(s) occur, an :exc:`Error` is raised with a list of reasons. If *copy_function* is given, it must be a callable that will be used to copy each file. It will be called with the source path and the destination path as arguments. By default, :func:`~shutil.copy2` is used, but any function that supports the ...
If exception(s) occur, an :exc:`Error` is raised with a list of reasons. If *copy_function* is given, it must be a callable that will be used to copy each file. It will be called with the source path and the destination path as arguments. By default, :func:`~shutil.copy2` is used, but any function that supports the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6394cd11-5f99-47b4-b3f0-1dbf4f3f37f2
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,562
supabase-export-v2
6171ade0c5c1ee26
on the filesystem to delete files they wouldn't be able to access otherwise. Applications can use the :data:`rmtree.avoids_symlink_attacks` function attribute to determine which case applies. If *onexc* is provided, it must be a callable that accepts three parameters: *function*, *path*, and *excinfo*.
trusted_official_docs
CPython Docs
on the filesystem to delete files they wouldn't be able to access otherwise. Applications can use the :data:`rmtree.avoids_symlink_attacks` function attribute to determine which case applies. If *onexc* is provided, it must be a callable that accepts three parameters: *function*, *path*, and *excinfo*.
on the filesystem to delete files they wouldn't be able to access otherwise. Applications can use the :data:`rmtree.avoids_symlink_attacks` function attribute to determine which case applies. If *onexc* is provided, it must be a callable that accepts three parameters: *function*, *path*, and *excinfo*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
66e83319-c81c-4018-9f6f-b5bd27c46a92
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,639
supabase-export-v2
50ae1eda131d31d6
have their read-only bit set. It uses the onexc callback to clear the readonly bit and reattempt the remove. Any subsequent failure will propagate. :: import os, stat import shutil
trusted_official_docs
CPython Docs
have their read-only bit set. It uses the onexc callback to clear the readonly bit and reattempt the remove. Any subsequent failure will propagate. :: import os, stat import shutil
have their read-only bit set. It uses the onexc callback to clear the readonly bit and reattempt the remove. Any subsequent failure will propagate. :: import os, stat import shutil
python, official-docs, cpython, P0
Local_Trusted_Corpus
6b82a7b4-1e3e-4264-b5ff-304fcdbf54df
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,573
supabase-export-v2
81bd4bf7da1183b4
.. attribute:: rmtree.avoids_symlink_attacks Indicates whether the current platform and implementation provides a symlink attack resistant version of :func:`rmtree`. Currently this is only true for platforms supporting fd-based directory access functions.
trusted_official_docs
CPython Docs
.. attribute:: rmtree.avoids_symlink_attacks Indicates whether the current platform and implementation provides a symlink attack resistant version of :func:`rmtree`. Currently this is only true for platforms supporting fd-based directory access functions.
.. attribute:: rmtree.avoids_symlink_attacks Indicates whether the current platform and implementation provides a symlink attack resistant version of :func:`rmtree`. Currently this is only true for platforms supporting fd-based directory access functions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6df21fd1-8192-4003-bcf6-b64ac1aa6e98
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,493
supabase-export-v2
94b44500df091e16
from a HTTP stream), you must ensure that you have called :func:`~io.IOBase.flush` or :func:`~io.IOBase.close` on the file-like object before attempting to read the destination file. .. function:: copyfile(src, dst, *, follow_symlinks=True)
trusted_official_docs
CPython Docs
from a HTTP stream), you must ensure that you have called :func:`~io.IOBase.flush` or :func:`~io.IOBase.close` on the file-like object before attempting to read the destination file. .. function:: copyfile(src, dst, *, follow_symlinks=True)
from a HTTP stream), you must ensure that you have called :func:`~io.IOBase.flush` or :func:`~io.IOBase.close` on the file-like object before attempting to read the destination file. .. function:: copyfile(src, dst, *, follow_symlinks=True)
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e5679f9-cca4-4c97-9142-aafae10683f0
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,484
supabase-export-v2
1304cebce3751b74
-------------- The :mod:`!shutil` module offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal. For operations on individual files, see also the :mod:`os` module.
trusted_official_docs
CPython Docs
-------------- The :mod:`!shutil` module offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal. For operations on individual files, see also the :mod:`os` module.
-------------- The :mod:`!shutil` module offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal. For operations on individual files, see also the :mod:`os` module.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6ead731a-0dcf-447b-b0aa-9eb3a211a209
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,552
supabase-export-v2
64f90d34538c1e6e
.. audit-event:: shutil.copytree src,dst shutil.copytree .. versionchanged:: 3.2 Added the *copy_function* argument to be able to provide a custom copy function. Added the *ignore_dangling_symlinks* argument to silence dangling symlinks errors when *symlinks* is false.
trusted_official_docs
CPython Docs
.. audit-event:: shutil.copytree src,dst shutil.copytree .. versionchanged:: 3.2 Added the *copy_function* argument to be able to provide a custom copy function. Added the *ignore_dangling_symlinks* argument to silence dangling symlinks errors when *symlinks* is false.
.. audit-event:: shutil.copytree src,dst shutil.copytree .. versionchanged:: 3.2 Added the *copy_function* argument to be able to provide a custom copy function. Added the *ignore_dangling_symlinks* argument to silence dangling symlinks errors when *symlinks* is false.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6fdc9018-1353-45e7-ad07-e2866ec52c33
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,518
supabase-export-v2
e70c31dd7cab4a49
* If ``os.chmod in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the permission bits of a symbolic link. * If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the last access and modification times of a symbolic link.
trusted_official_docs
CPython Docs
* If ``os.chmod in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the permission bits of a symbolic link. * If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the last access and modification times of a symbolic link.
* If ``os.chmod in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the permission bits of a symbolic link. * If ``os.utime in os.supports_follow_symlinks`` is ``True``, :func:`copystat` can modify the last access and modification times of a symbolic link.
python, official-docs, cpython, P0
Local_Trusted_Corpus
73b9d879-9a29-4c61-ae72-b5ede123f153
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,558
supabase-export-v2
ed08d571e2f10d7f
.. index:: single: directory; deleting Delete an entire directory tree; *path* must point to a directory (but not a symbolic link to a directory). If *ignore_errors* is true, errors resulting from failed removals will be ignored; if false or omitted, such errors are handled by calling a handler specified by *onexc* ...
trusted_official_docs
CPython Docs
.. index:: single: directory; deleting Delete an entire directory tree; *path* must point to a directory (but not a symbolic link to a directory). If *ignore_errors* is true, errors resulting from failed removals will be ignored; if false or omitted, such errors are handled by calling a handler specified by *onexc* ...
.. index:: single: directory; deleting Delete an entire directory tree; *path* must point to a directory (but not a symbolic link to a directory). If *ignore_errors* is true, errors resulting from failed removals will be ignored; if false or omitted, such errors are handled by calling a handler specified by *onexc* ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
74af8fcb-9d45-45bf-8bca-58a64e6f05f3
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,564
supabase-export-v2
393811caf5220463
be the path name passed to *function*. The third parameter, *excinfo*, is the exception that was raised. Exceptions raised by *onexc* will not be caught. The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`.
trusted_official_docs
CPython Docs
be the path name passed to *function*. The third parameter, *excinfo*, is the exception that was raised. Exceptions raised by *onexc* will not be caught. The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`.
be the path name passed to *function*. The third parameter, *excinfo*, is the exception that was raised. Exceptions raised by *onexc* will not be caught. The deprecated *onerror* is similar to *onexc*, except that the third parameter it receives is the tuple returned from :func:`sys.exc_info`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
76bfd0f9-0ebd-4d50-aaea-15d849f2ef81
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,544
supabase-export-v2
43fe09528fd11b24
at *src* to a directory named *dst* and return the destination directory. All intermediate directories needed to contain *dst* will also be created by default. Permissions and times of directories are copied with :func:`copystat`, individual files are copied using :func:`~shutil.copy2`.
trusted_official_docs
CPython Docs
at *src* to a directory named *dst* and return the destination directory. All intermediate directories needed to contain *dst* will also be created by default. Permissions and times of directories are copied with :func:`copystat`, individual files are copied using :func:`~shutil.copy2`.
at *src* to a directory named *dst* and return the destination directory. All intermediate directories needed to contain *dst* will also be created by default. Permissions and times of directories are copied with :func:`copystat`, individual files are copied using :func:`~shutil.copy2`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
77e76250-d017-4e84-9d85-95bfa893380d
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,581
supabase-export-v2
e52eba5a38fd8b5c
allows the move to succeed when it is not possible to also copy the metadata, at the expense of not copying any of the metadata. .. audit-event:: shutil.move src,dst shutil.move
trusted_official_docs
CPython Docs
allows the move to succeed when it is not possible to also copy the metadata, at the expense of not copying any of the metadata. .. audit-event:: shutil.move src,dst shutil.move
allows the move to succeed when it is not possible to also copy the metadata, at the expense of not copying any of the metadata. .. audit-event:: shutil.move src,dst shutil.move
python, official-docs, cpython, P0
Local_Trusted_Corpus
78f5dbd0-b51d-4d69-a235-2bf0ac01667b
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,553
supabase-export-v2
c3352c27f9ac1109
the *copy_function* argument to be able to provide a custom copy function. Added the *ignore_dangling_symlinks* argument to silence dangling symlinks errors when *symlinks* is false. .. versionchanged:: 3.3 Copy metadata when *symlinks* is false. Now returns *dst*.
trusted_official_docs
CPython Docs
the *copy_function* argument to be able to provide a custom copy function. Added the *ignore_dangling_symlinks* argument to silence dangling symlinks errors when *symlinks* is false. .. versionchanged:: 3.3 Copy metadata when *symlinks* is false. Now returns *dst*.
the *copy_function* argument to be able to provide a custom copy function. Added the *ignore_dangling_symlinks* argument to silence dangling symlinks errors when *symlinks* is false. .. versionchanged:: 3.3 Copy metadata when *symlinks* is false. Now returns *dst*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
79536f2c-0406-4efa-9678-8f95aeb1fd2d
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,685
supabase-export-v2
e9b27c443a30774c
.. warning:: Never extract archives from untrusted sources without prior inspection. It is possible that files are created outside of the path specified in the *extract_dir* argument, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..".
trusted_official_docs
CPython Docs
.. warning:: Never extract archives from untrusted sources without prior inspection. It is possible that files are created outside of the path specified in the *extract_dir* argument, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..".
.. warning:: Never extract archives from untrusted sources without prior inspection. It is possible that files are created outside of the path specified in the *extract_dir* argument, e.g. members that have absolute filenames starting with "/" or filenames with two dots "..".
python, official-docs, cpython, P0
Local_Trusted_Corpus
79eca777-31b7-46a5-8dd2-c5158f2749af
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,548
supabase-export-v2
95b85578270d5c78
names will then be ignored in the copy process. :func:`ignore_patterns` can be used to create such a callable that ignores names based on glob-style patterns. If exception(s) occur, an :exc:`Error` is raised with a list of reasons.
trusted_official_docs
CPython Docs
names will then be ignored in the copy process. :func:`ignore_patterns` can be used to create such a callable that ignores names based on glob-style patterns. If exception(s) occur, an :exc:`Error` is raised with a list of reasons.
names will then be ignored in the copy process. :func:`ignore_patterns` can be used to create such a callable that ignores names based on glob-style patterns. If exception(s) occur, an :exc:`Error` is raised with a list of reasons.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c30386b-5506-4fd3-be5f-6b1012b54597
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,692
supabase-export-v2
50dae32428ad60ce
*function* is the callable that will be used to unpack archives. The callable will receive: - the path of the archive, as a positional argument; - the directory the archive must be extracted to, as a positional argument; - possibly a *filter* keyword argument, if it was given to :func:`unpack_archive`; - additional...
trusted_official_docs
CPython Docs
*function* is the callable that will be used to unpack archives. The callable will receive: - the path of the archive, as a positional argument; - the directory the archive must be extracted to, as a positional argument; - possibly a *filter* keyword argument, if it was given to :func:`unpack_archive`; - additional...
*function* is the callable that will be used to unpack archives. The callable will receive: - the path of the archive, as a positional argument; - the directory the archive must be extracted to, as a positional argument; - possibly a *filter* keyword argument, if it was given to :func:`unpack_archive`; - additional...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7cacd04a-c895-4a2a-ab75-675801798b92
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,496
supabase-export-v2
a3789031fb79df6b
file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the same file, :exc:`SameFileError` is raised. The destination location must be writable; otherwise, an :exc:`OSError` exception will be raised. If *dst* already exists, it will be replaced. Special file...
trusted_official_docs
CPython Docs
file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the same file, :exc:`SameFileError` is raised. The destination location must be writable; otherwise, an :exc:`OSError` exception will be raised. If *dst* already exists, it will be replaced. Special file...
file name; look at :func:`~shutil.copy` for a copy that accepts a target directory path. If *src* and *dst* specify the same file, :exc:`SameFileError` is raised. The destination location must be writable; otherwise, an :exc:`OSError` exception will be raised. If *dst* already exists, it will be replaced. Special file...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7cd97c63-7b61-4453-92d4-ec9f30e54c2b
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,500
supabase-export-v2
d0ac3dd0c3348c86
.. versionchanged:: 3.3 :exc:`IOError` used to be raised instead of :exc:`OSError`. Added *follow_symlinks* argument. Now returns *dst*. .. versionchanged:: 3.4 Raise :exc:`SameFileError` instead of :exc:`Error`. Since the former is a subclass of the latter, this change is backward compatible.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 :exc:`IOError` used to be raised instead of :exc:`OSError`. Added *follow_symlinks* argument. Now returns *dst*. .. versionchanged:: 3.4 Raise :exc:`SameFileError` instead of :exc:`Error`. Since the former is a subclass of the latter, this change is backward compatible.
.. versionchanged:: 3.3 :exc:`IOError` used to be raised instead of :exc:`OSError`. Added *follow_symlinks* argument. Now returns *dst*. .. versionchanged:: 3.4 Raise :exc:`SameFileError` instead of :exc:`Error`. Since the former is a subclass of the latter, this change is backward compatible.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e6c22b0-7738-4a1d-998a-a5224e5cd97b
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,487
supabase-export-v2
625601e4a7d381db
Even the higher-level file copying functions (:func:`shutil.copy`, :func:`shutil.copy2`) cannot copy all file metadata. On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type a...
trusted_official_docs
CPython Docs
Even the higher-level file copying functions (:func:`shutil.copy`, :func:`shutil.copy2`) cannot copy all file metadata. On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type a...
Even the higher-level file copying functions (:func:`shutil.copy`, :func:`shutil.copy2`) cannot copy all file metadata. On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7ecc8f47-34e8-4a6f-abe4-7dd8546b328c
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,682
supabase-export-v2
7527ae2b29a3a294
use the archive file name extension and see if an unpacker was registered for that extension. In case none is found, a :exc:`ValueError` is raised. The keyword-only *filter* argument is passed to the underlying unpacking function. For zip files, *filter* is not accepted. For tar files, it is recommended to use ``'data...
trusted_official_docs
CPython Docs
use the archive file name extension and see if an unpacker was registered for that extension. In case none is found, a :exc:`ValueError` is raised. The keyword-only *filter* argument is passed to the underlying unpacking function. For zip files, *filter* is not accepted. For tar files, it is recommended to use ``'data...
use the archive file name extension and see if an unpacker was registered for that extension. In case none is found, a :exc:`ValueError` is raised. The keyword-only *filter* argument is passed to the underlying unpacking function. For zip files, *filter* is not accepted. For tar files, it is recommended to use ``'data...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f74405e-b42f-4ce6-934d-687260654d59
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,587
supabase-export-v2
813825cff58007f3
.. function:: disk_usage(path) Return disk usage statistics about the given path as a :term:`named tuple` with the attributes *total*, *used* and *free*, which are the amount of total, used and free space, in bytes. *path* may be a file or a directory.
trusted_official_docs
CPython Docs
.. function:: disk_usage(path) Return disk usage statistics about the given path as a :term:`named tuple` with the attributes *total*, *used* and *free*, which are the amount of total, used and free space, in bytes. *path* may be a file or a directory.
.. function:: disk_usage(path) Return disk usage statistics about the given path as a :term:`named tuple` with the attributes *total*, *used* and *free*, which are the amount of total, used and free space, in bytes. *path* may be a file or a directory.
python, official-docs, cpython, P0
Local_Trusted_Corpus
80da4534-c910-46d0-b1b1-c86003be740a
CPython Docs
file://datasets/cpython/Doc/library/shutil.rst
unknown
b92e3f29-fd26-4f65-ba96-e5a7ef6657ee
52,501
supabase-export-v2
de2bbe5a0853a182
.. versionchanged:: 3.4 Raise :exc:`SameFileError` instead of :exc:`Error`. Since the former is a subclass of the latter, this change is backward compatible. .. versionchanged:: 3.8 Platform-specific fast-copy syscalls may be used internally in order to copy the file more efficiently. See :ref:`shutil-platform-depen...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.4 Raise :exc:`SameFileError` instead of :exc:`Error`. Since the former is a subclass of the latter, this change is backward compatible. .. versionchanged:: 3.8 Platform-specific fast-copy syscalls may be used internally in order to copy the file more efficiently. See :ref:`shutil-platform-depen...
.. versionchanged:: 3.4 Raise :exc:`SameFileError` instead of :exc:`Error`. Since the former is a subclass of the latter, this change is backward compatible. .. versionchanged:: 3.8 Platform-specific fast-copy syscalls may be used internally in order to copy the file more efficiently. See :ref:`shutil-platform-depen...
python, official-docs, cpython, P0
Local_Trusted_Corpus