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
14299eff-a748-48a6-8f3d-26d373646983
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,637
supabase-export-v2
06a77012ab902c69
that sequences will be printed with as many sequence elements as will fit within *width* on each (indented) line. (Contributed by Serhiy Storchaka in :issue:`19132`.) Long strings are now wrapped using Python's normal line continuation syntax. (Contributed by Antoine Pitrou in :issue:`17150`.)
trusted_official_docs
CPython Docs
that sequences will be printed with as many sequence elements as will fit within *width* on each (indented) line. (Contributed by Serhiy Storchaka in :issue:`19132`.) Long strings are now wrapped using Python's normal line continuation syntax. (Contributed by Antoine Pitrou in :issue:`17150`.)
that sequences will be printed with as many sequence elements as will fit within *width* on each (indented) line. (Contributed by Serhiy Storchaka in :issue:`19132`.) Long strings are now wrapped using Python's normal line continuation syntax. (Contributed by Antoine Pitrou in :issue:`17150`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
152590e6-41b4-4129-9b19-7efc908e2448
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,614
supabase-export-v2
193320bc7b494dbd
Except when using the old *fork* start method, child processes no longer inherit unneeded handles/file descriptors from their parents (part of :issue:`8713`). :mod:`multiprocessing` now relies on :mod:`runpy` (which implements the ``-m`` switch) to initialise ``__main__`` appropriately in child processes when using the...
trusted_official_docs
CPython Docs
Except when using the old *fork* start method, child processes no longer inherit unneeded handles/file descriptors from their parents (part of :issue:`8713`). :mod:`multiprocessing` now relies on :mod:`runpy` (which implements the ``-m`` switch) to initialise ``__main__`` appropriately in child processes when using the...
Except when using the old *fork* start method, child processes no longer inherit unneeded handles/file descriptors from their parents (part of :issue:`8713`). :mod:`multiprocessing` now relies on :mod:`runpy` (which implements the ``-m`` switch) to initialise ``__main__`` appropriately in child processes when using the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1596151f-224f-4195-9855-36636c0d4383
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,721
supabase-export-v2
e3e19daee72e14ab
an iterable of test names for *defaultTest*, where previously it only accepted a single test name as a string. (Contributed by Jyrki Pulliainen in :issue:`15132`.) If :class:`~unittest.SkipTest` is raised during test discovery (that is, at the module level in the test file), it is now reported as a skip instead of an e...
trusted_official_docs
CPython Docs
an iterable of test names for *defaultTest*, where previously it only accepted a single test name as a string. (Contributed by Jyrki Pulliainen in :issue:`15132`.) If :class:`~unittest.SkipTest` is raised during test discovery (that is, at the module level in the test file), it is now reported as a skip instead of an e...
an iterable of test names for *defaultTest*, where previously it only accepted a single test name as a string. (Contributed by Jyrki Pulliainen in :issue:`15132`.) If :class:`~unittest.SkipTest` is raised during test discovery (that is, at the module level in the test file), it is now reported as a skip instead of an e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1767df51-707d-4fb6-b635-5ff67e5c6950
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,793
supabase-export-v2
f808695aec03b206
in the loading of free variables in class bodies that could be triggered by certain uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin Peterson in :issue:`17853`.) * A number of MemoryError-related crashes were identified and fixed by Victor Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:...
trusted_official_docs
CPython Docs
in the loading of free variables in class bodies that could be triggered by certain uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin Peterson in :issue:`17853`.) * A number of MemoryError-related crashes were identified and fixed by Victor Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:...
in the loading of free variables in class bodies that could be triggered by certain uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin Peterson in :issue:`17853`.) * A number of MemoryError-related crashes were identified and fixed by Victor Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
17774d57-6bbd-4b29-980a-4a10648cc674
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,473
supabase-export-v2
17ef9d01a52da6b7
* :class:`memoryview` is now registered as a :class:`Sequence <collections.abc>`, and supports the :func:`reversed` builtin. (Contributed by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.) * Signatures reported by :func:`help` have been modified and improved in several cases as a result of the int...
trusted_official_docs
CPython Docs
* :class:`memoryview` is now registered as a :class:`Sequence <collections.abc>`, and supports the :func:`reversed` builtin. (Contributed by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.) * Signatures reported by :func:`help` have been modified and improved in several cases as a result of the int...
* :class:`memoryview` is now registered as a :class:`Sequence <collections.abc>`, and supports the :func:`reversed` builtin. (Contributed by Nick Coghlan and Claudiu Popa in :issue:`18690` and :issue:`19078`.) * Signatures reported by :func:`help` have been modified and improved in several cases as a result of the int...
python, official-docs, cpython, P0
Local_Trusted_Corpus
18b99215-3a50-448f-92dd-329cb8e05b74
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,786
supabase-export-v2
7ca81b76f5296491
version to standard output instead of standard error (:issue:`18338`). Similar changes were made to :mod:`argparse` (:issue:`18920`) and other modules that have script-like invocation capabilities (:issue:`18922`). * The CPython Windows installer now adds ``.py`` to the :envvar:`PATHEXT` variable when extensions are r...
trusted_official_docs
CPython Docs
version to standard output instead of standard error (:issue:`18338`). Similar changes were made to :mod:`argparse` (:issue:`18920`) and other modules that have script-like invocation capabilities (:issue:`18922`). * The CPython Windows installer now adds ``.py`` to the :envvar:`PATHEXT` variable when extensions are r...
version to standard output instead of standard error (:issue:`18338`). Similar changes were made to :mod:`argparse` (:issue:`18920`) and other modules that have script-like invocation capabilities (:issue:`18922`). * The CPython Windows installer now adds ``.py`` to the :envvar:`PATHEXT` variable when extensions are r...
python, official-docs, cpython, P0
Local_Trusted_Corpus
191a3783-e920-47c9-ba41-c2bc1120cce6
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,437
supabase-export-v2
c6b6808036462f5d
coupling with the Python text model, especially the type restricted convenience methods on the builtin :class:`str`, :class:`bytes` and :class:`bytearray` types, has historically obscured that fact. As a key step in clarifying the situation, the :meth:`codecs.encode` and :meth:`codecs.decode` convenience functions are ...
trusted_official_docs
CPython Docs
coupling with the Python text model, especially the type restricted convenience methods on the builtin :class:`str`, :class:`bytes` and :class:`bytearray` types, has historically obscured that fact. As a key step in clarifying the situation, the :meth:`codecs.encode` and :meth:`codecs.decode` convenience functions are ...
coupling with the Python text model, especially the type restricted convenience methods on the builtin :class:`str`, :class:`bytes` and :class:`bytearray` types, has historically obscured that fact. As a key step in clarifying the situation, the :meth:`codecs.encode` and :meth:`codecs.decode` convenience functions are ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
19287f0a-fb2b-4be1-92ca-61603cb36909
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,647
supabase-export-v2
bff79183347f12b6
bugs where ``$`` characters get lost during code changes or the addition of alternatives to an existing regular expression. (Contributed by Matthew Barnett in :issue:`16203`.) The repr of :ref:`regex objects <re-objects>` now includes the pattern and the flags; the repr of :ref:`match objects <match-objects>` now inclu...
trusted_official_docs
CPython Docs
bugs where ``$`` characters get lost during code changes or the addition of alternatives to an existing regular expression. (Contributed by Matthew Barnett in :issue:`16203`.) The repr of :ref:`regex objects <re-objects>` now includes the pattern and the flags; the repr of :ref:`match objects <match-objects>` now inclu...
bugs where ``$`` characters get lost during code changes or the addition of alternatives to an existing regular expression. (Contributed by Matthew Barnett in :issue:`16203`.) The repr of :ref:`regex objects <re-objects>` now includes the pattern and the flags; the repr of :ref:`match objects <match-objects>` now inclu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ae2634f-c28d-407a-bd29-746a96e3e4f8
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,666
supabase-export-v2
fdd228f6382aaed4
Socket objects have new methods to get or set their :ref:`inheritable flag <fd_inheritance>`, :meth:`~socket.socket.get_inheritable` and :meth:`~socket.socket.set_inheritable`. The ``socket.AF_*`` and ``socket.SOCK_*`` constants are now enumeration values using the new :mod:`enum` module. This allows meaningful names t...
trusted_official_docs
CPython Docs
Socket objects have new methods to get or set their :ref:`inheritable flag <fd_inheritance>`, :meth:`~socket.socket.get_inheritable` and :meth:`~socket.socket.set_inheritable`. The ``socket.AF_*`` and ``socket.SOCK_*`` constants are now enumeration values using the new :mod:`enum` module. This allows meaningful names t...
Socket objects have new methods to get or set their :ref:`inheritable flag <fd_inheritance>`, :meth:`~socket.socket.get_inheritable` and :meth:`~socket.socket.set_inheritable`. The ``socket.AF_*`` and ``socket.SOCK_*`` constants are now enumeration values using the new :mod:`enum` module. This allows meaningful names t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b8b353c-adf8-455c-a569-a3ca19fac31b
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,423
supabase-export-v2
3ab21ff2ecd2afe9
Documentation Changes ~~~~~~~~~~~~~~~~~~~~~ As part of this change, the :ref:`installing-index` and :ref:`distributing-index` sections of the documentation have been completely redesigned as short getting started and FAQ documents. Most packaging documentation has now been moved out to the Python Packaging Authority ma...
trusted_official_docs
CPython Docs
Documentation Changes ~~~~~~~~~~~~~~~~~~~~~ As part of this change, the :ref:`installing-index` and :ref:`distributing-index` sections of the documentation have been completely redesigned as short getting started and FAQ documents. Most packaging documentation has now been moved out to the Python Packaging Authority ma...
Documentation Changes ~~~~~~~~~~~~~~~~~~~~~ As part of this change, the :ref:`installing-index` and :ref:`distributing-index` sections of the documentation have been completely redesigned as short getting started and FAQ documents. Most packaging documentation has now been moved out to the Python Packaging Authority ma...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b8d76be-de12-44ae-a3de-e290bbdc2efe
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,516
supabase-export-v2
9510bad0338c1979
New :func:`!byteswap` function converts big-endian samples to little-endian and vice versa. (Contributed by Serhiy Storchaka in :issue:`19641`.) All :mod:`!audioop` functions now accept any :term:`bytes-like object`. Strings are not accepted: they didn't work before, now they raise an error right away. (Contributed by ...
trusted_official_docs
CPython Docs
New :func:`!byteswap` function converts big-endian samples to little-endian and vice versa. (Contributed by Serhiy Storchaka in :issue:`19641`.) All :mod:`!audioop` functions now accept any :term:`bytes-like object`. Strings are not accepted: they didn't work before, now they raise an error right away. (Contributed by ...
New :func:`!byteswap` function converts big-endian samples to little-endian and vice versa. (Contributed by Serhiy Storchaka in :issue:`19641`.) All :mod:`!audioop` functions now accept any :term:`bytes-like object`. Strings are not accepted: they didn't work before, now they raise an error right away. (Contributed by ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b9901f3-629c-4794-967d-064d5e19a1a0
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,595
supabase-export-v2
88268f928afb2174
module now has substantially better support for custom ``__dir__`` methods and dynamic class attributes provided through metaclasses. (Contributed by Ethan Furman in :issue:`18929` and :issue:`19030`.) :func:`~inspect.getfullargspec` and :func:`!getargspec` now use the :func:`~inspect.signature` API. This allows them t...
trusted_official_docs
CPython Docs
module now has substantially better support for custom ``__dir__`` methods and dynamic class attributes provided through metaclasses. (Contributed by Ethan Furman in :issue:`18929` and :issue:`19030`.) :func:`~inspect.getfullargspec` and :func:`!getargspec` now use the :func:`~inspect.signature` API. This allows them t...
module now has substantially better support for custom ``__dir__`` methods and dynamic class attributes provided through metaclasses. (Contributed by Ethan Furman in :issue:`18929` and :issue:`19030`.) :func:`~inspect.getfullargspec` and :func:`!getargspec` now use the :func:`~inspect.signature` API. This allows them t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e393933-50b1-4ef2-a332-ea2aa673c984
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,789
supabase-export-v2
e4890bf99c820c5a
The ``-R`` option to the :ref:`python regression test suite <regrtest>` now also checks for memory allocation leaks, using :func:`sys.getallocatedblocks`. (Contributed by Antoine Pitrou in :issue:`13390`.) * ``python -m`` now works with namespace packages.
trusted_official_docs
CPython Docs
The ``-R`` option to the :ref:`python regression test suite <regrtest>` now also checks for memory allocation leaks, using :func:`sys.getallocatedblocks`. (Contributed by Antoine Pitrou in :issue:`13390`.) * ``python -m`` now works with namespace packages.
The ``-R`` option to the :ref:`python regression test suite <regrtest>` now also checks for memory allocation leaks, using :func:`sys.getallocatedblocks`. (Contributed by Antoine Pitrou in :issue:`13390`.) * ``python -m`` now works with namespace packages.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f6d84cd-f94e-447a-8b3e-bb29824fec99
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,550
supabase-export-v2
fb90e4649b404a87
.. _whatsnew_email_contentmanager: A pair of new subclasses of :class:`~email.message.Message` have been added (:class:`.EmailMessage` and :class:`.MIMEPart`), along with a new sub-module, :mod:`~email.contentmanager` and a new :mod:`~email.policy` attribute :attr:`~email.policy.EmailPolicy.content_manager`. All docume...
trusted_official_docs
CPython Docs
.. _whatsnew_email_contentmanager: A pair of new subclasses of :class:`~email.message.Message` have been added (:class:`.EmailMessage` and :class:`.MIMEPart`), along with a new sub-module, :mod:`~email.contentmanager` and a new :mod:`~email.policy` attribute :attr:`~email.policy.EmailPolicy.content_manager`. All docume...
.. _whatsnew_email_contentmanager: A pair of new subclasses of :class:`~email.message.Message` have been added (:class:`.EmailMessage` and :class:`.MIMEPart`), along with a new sub-module, :mod:`~email.contentmanager` and a new :mod:`~email.policy` attribute :attr:`~email.policy.EmailPolicy.content_manager`. All docume...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2062ecb9-3f05-4121-8db2-6217bb2f7167
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,603
supabase-export-v2
08dfd0a9cba53443
:class:`~logging.handlers.SocketHandler` and :class:`~logging.handlers.DatagramHandler` now support Unix domain sockets (by setting *port* to ``None``). (Contributed by Vinay Sajip in commit ce46195b56a9.) :func:`~logging.config.fileConfig` now accepts a :class:`configparser.RawConfigParser` subclass instance for the *...
trusted_official_docs
CPython Docs
:class:`~logging.handlers.SocketHandler` and :class:`~logging.handlers.DatagramHandler` now support Unix domain sockets (by setting *port* to ``None``). (Contributed by Vinay Sajip in commit ce46195b56a9.) :func:`~logging.config.fileConfig` now accepts a :class:`configparser.RawConfigParser` subclass instance for the *...
:class:`~logging.handlers.SocketHandler` and :class:`~logging.handlers.DatagramHandler` now support Unix domain sockets (by setting *port* to ``None``). (Contributed by Vinay Sajip in commit ce46195b56a9.) :func:`~logging.config.fileConfig` now accepts a :class:`configparser.RawConfigParser` subclass instance for the *...
python, official-docs, cpython, P0
Local_Trusted_Corpus
20846bf1-a86b-43c9-abbb-805a7fdd7a11
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,723
supabase-export-v2
122a5338142169dc
:meth:`~unittest.TestLoader.discover` now sorts the discovered files to provide consistent test ordering. (Contributed by Martin Melin and Jeff Ramnani in :issue:`16709`.) :class:`~unittest.TestSuite` now drops references to tests as soon as the test has been run, if the test is successful. On Python interpreters that ...
trusted_official_docs
CPython Docs
:meth:`~unittest.TestLoader.discover` now sorts the discovered files to provide consistent test ordering. (Contributed by Martin Melin and Jeff Ramnani in :issue:`16709`.) :class:`~unittest.TestSuite` now drops references to tests as soon as the test has been run, if the test is successful. On Python interpreters that ...
:meth:`~unittest.TestLoader.discover` now sorts the discovered files to provide consistent test ordering. (Contributed by Martin Melin and Jeff Ramnani in :issue:`16709`.) :class:`~unittest.TestSuite` now drops references to tests as soon as the test has been run, if the test is successful. On Python interpreters that ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2111b326-e322-4116-ae69-a8030c86e869
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,426
supabase-export-v2
fb65bc73edac0965
.. seealso:: :pep:`453` -- Explicit bootstrapping of pip in Python installations PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, Nick Coghlan, Martin von Löwis and Ned Deily.
trusted_official_docs
CPython Docs
.. seealso:: :pep:`453` -- Explicit bootstrapping of pip in Python installations PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, Nick Coghlan, Martin von Löwis and Ned Deily.
.. seealso:: :pep:`453` -- Explicit bootstrapping of pip in Python installations PEP written by Donald Stufft and Nick Coghlan, implemented by Donald Stufft, Nick Coghlan, Martin von Löwis and Ned Deily.
python, official-docs, cpython, P0
Local_Trusted_Corpus
21d32497-72a2-4a79-ab96-05c9bd22aaf9
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,738
supabase-export-v2
b50b645b3bd5787b
New :class:`~weakref.WeakMethod` class simulates weak references to bound methods. (Contributed by Antoine Pitrou in :issue:`14631`.) New :class:`~weakref.finalize` class makes it possible to register a callback to be invoked when an object is garbage collected, without needing to carefully manage the lifecycle of the ...
trusted_official_docs
CPython Docs
New :class:`~weakref.WeakMethod` class simulates weak references to bound methods. (Contributed by Antoine Pitrou in :issue:`14631`.) New :class:`~weakref.finalize` class makes it possible to register a callback to be invoked when an object is garbage collected, without needing to carefully manage the lifecycle of the ...
New :class:`~weakref.WeakMethod` class simulates weak references to bound methods. (Contributed by Antoine Pitrou in :issue:`14631`.) New :class:`~weakref.finalize` class makes it possible to register a callback to be invoked when an object is garbage collected, without needing to carefully manage the lifecycle of the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2209fe7e-4e73-413e-87ab-382df9c680b7
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,523
supabase-export-v2
43c6396ff38c24e2
colorsys -------- The number of digits in the coefficients for the RGB --- YIQ conversions have been expanded so that they match the FCC NTSC versions. The change in results should be less than 1% and may better match results found elsewhere. (Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)
trusted_official_docs
CPython Docs
colorsys -------- The number of digits in the coefficients for the RGB --- YIQ conversions have been expanded so that they match the FCC NTSC versions. The change in results should be less than 1% and may better match results found elsewhere. (Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)
colorsys -------- The number of digits in the coefficients for the RGB --- YIQ conversions have been expanded so that they match the FCC NTSC versions. The change in results should be less than 1% and may better match results found elsewhere. (Contributed by Brian Landers and Serhiy Storchaka in :issue:`14323`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
225133c7-2f31-498b-8803-34e0eab8634f
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,538
supabase-export-v2
21635258016da2f1
RETURN_VALUE (83) >>> bytecode.dis().splitlines() # doctest: +NORMALIZE_WHITESPACE [' 1 0 LOAD_FAST 0 (x)', ' --> 3 LOAD_CONST 1 (1)', ' 6 BINARY_ADD', ' 7 RETURN_VALUE'] :class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode.from_traceback`, that provides the ability to manipulate a traceback (that is, `...
trusted_official_docs
CPython Docs
RETURN_VALUE (83) >>> bytecode.dis().splitlines() # doctest: +NORMALIZE_WHITESPACE [' 1 0 LOAD_FAST 0 (x)', ' --> 3 LOAD_CONST 1 (1)', ' 6 BINARY_ADD', ' 7 RETURN_VALUE'] :class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode.from_traceback`, that provides the ability to manipulate a traceback (that is, `...
RETURN_VALUE (83) >>> bytecode.dis().splitlines() # doctest: +NORMALIZE_WHITESPACE [' 1 0 LOAD_FAST 0 (x)', ' --> 3 LOAD_CONST 1 (1)', ' 6 BINARY_ADD', ' 7 RETURN_VALUE'] :class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode.from_traceback`, that provides the ability to manipulate a traceback (that is, `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
22dcea1e-0f13-497a-a7c4-df68ac9434c3
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,855
supabase-export-v2
3a344b68d40e20a6
attributes to ``None`` by default. To determine if these attributes were set in a backwards-compatible fashion, use e.g. ``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.) * :meth:`!importlib.util.module_for_loader` now sets ``__loader__`` and ``__package__`` unconditionally to properly support rel...
trusted_official_docs
CPython Docs
attributes to ``None`` by default. To determine if these attributes were set in a backwards-compatible fashion, use e.g. ``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.) * :meth:`!importlib.util.module_for_loader` now sets ``__loader__`` and ``__package__`` unconditionally to properly support rel...
attributes to ``None`` by default. To determine if these attributes were set in a backwards-compatible fashion, use e.g. ``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.) * :meth:`!importlib.util.module_for_loader` now sets ``__loader__`` and ``__package__`` unconditionally to properly support rel...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2486d021-bcc3-477e-a1bc-c6629a8bc049
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,525
supabase-export-v2
3aa6b28cdbfce99c
contextlib ---------- The new :class:`contextlib.suppress` context manager helps to clarify the intent of code that deliberately suppresses exceptions from a single statement. (Contributed by Raymond Hettinger in :issue:`15806` and Zero Piraeus in :issue:`19266`.)
trusted_official_docs
CPython Docs
contextlib ---------- The new :class:`contextlib.suppress` context manager helps to clarify the intent of code that deliberately suppresses exceptions from a single statement. (Contributed by Raymond Hettinger in :issue:`15806` and Zero Piraeus in :issue:`19266`.)
contextlib ---------- The new :class:`contextlib.suppress` context manager helps to clarify the intent of code that deliberately suppresses exceptions from a single statement. (Contributed by Raymond Hettinger in :issue:`15806` and Zero Piraeus in :issue:`19266`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
257311cd-58b2-4dd4-8902-b8862d9c403a
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,754
supabase-export-v2
f08c40a11b590a47
PEP 442: Safe Object Finalization --------------------------------- :pep:`442` removes the current limitations and quirks of object finalization in CPython. With it, objects with :meth:`~object.__del__` methods, as well as generators with :keyword:`finally` clauses, can be finalized when they are part of a reference cy...
trusted_official_docs
CPython Docs
PEP 442: Safe Object Finalization --------------------------------- :pep:`442` removes the current limitations and quirks of object finalization in CPython. With it, objects with :meth:`~object.__del__` methods, as well as generators with :keyword:`finally` clauses, can be finalized when they are part of a reference cy...
PEP 442: Safe Object Finalization --------------------------------- :pep:`442` removes the current limitations and quirks of object finalization in CPython. With it, objects with :meth:`~object.__del__` methods, as well as generators with :keyword:`finally` clauses, can be finalized when they are part of a reference cy...
python, official-docs, cpython, P0
Local_Trusted_Corpus
26307565-5e89-42e8-8bda-a466b7696882
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,858
supabase-export-v2
92b05487a2c1501f
same name as the frozen package. The correct way to determine if a module is a package or not is to use ``hasattr(module, '__path__')`` (:issue:`18065`). * Frozen modules no longer define a ``__file__`` attribute. It's semantically incorrect for frozen modules to set the attribute as they are not loaded from any expl...
trusted_official_docs
CPython Docs
same name as the frozen package. The correct way to determine if a module is a package or not is to use ``hasattr(module, '__path__')`` (:issue:`18065`). * Frozen modules no longer define a ``__file__`` attribute. It's semantically incorrect for frozen modules to set the attribute as they are not loaded from any expl...
same name as the frozen package. The correct way to determine if a module is a package or not is to use ``hasattr(module, '__path__')`` (:issue:`18065`). * Frozen modules no longer define a ``__file__`` attribute. It's semantically incorrect for frozen modules to set the attribute as they are not loaded from any expl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
27cb9365-e20d-43e6-90cf-70ade3131254
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,636
supabase-export-v2
138ecdc29c34ae25
pprint ------ The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its :func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new option, *compact*, that controls how the output is formatted. Currently setting *compact* to ``True`` means that sequences will be printed with as many sequence ...
trusted_official_docs
CPython Docs
pprint ------ The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its :func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new option, *compact*, that controls how the output is formatted. Currently setting *compact* to ``True`` means that sequences will be printed with as many sequence ...
pprint ------ The :mod:`pprint` module's :class:`~pprint.PrettyPrinter` class and its :func:`~pprint.pformat`, and :func:`~pprint.pprint` functions have a new option, *compact*, that controls how the output is formatted. Currently setting *compact* to ``True`` means that sequences will be printed with as many sequence ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
283777eb-3f6c-4a63-81c7-aa0095417ef4
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,851
supabase-export-v2
b5a4a4c1537a2765
build of the CPython interpreter is now off by default. It can be re-enabled using the ``-X showrefcount`` option. (Contributed by Ezio Melotti in :issue:`17323`.) * The python command and most stdlib scripts (as well as :mod:`argparse`) now output ``--version`` information to ``stdout`` instead of ``stderr`` (for is...
trusted_official_docs
CPython Docs
build of the CPython interpreter is now off by default. It can be re-enabled using the ``-X showrefcount`` option. (Contributed by Ezio Melotti in :issue:`17323`.) * The python command and most stdlib scripts (as well as :mod:`argparse`) now output ``--version`` information to ``stdout`` instead of ``stderr`` (for is...
build of the CPython interpreter is now off by default. It can be re-enabled using the ``-X showrefcount`` option. (Contributed by Ezio Melotti in :issue:`17323`.) * The python command and most stdlib scripts (as well as :mod:`argparse`) now output ``--version`` information to ``stdout`` instead of ``stderr`` (for is...
python, official-docs, cpython, P0
Local_Trusted_Corpus
28716864-e184-4714-a77c-32d504418325
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,861
supabase-export-v2
51dd293ea727b7e3
found but improperly structured. If you were catching ImportError before and wish to continue to ignore syntax or decoding issues, catch all three exceptions now. * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly set the ``__wrapped__`` attribute to the function being wrapped, even if that ...
trusted_official_docs
CPython Docs
found but improperly structured. If you were catching ImportError before and wish to continue to ignore syntax or decoding issues, catch all three exceptions now. * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly set the ``__wrapped__`` attribute to the function being wrapped, even if that ...
found but improperly structured. If you were catching ImportError before and wish to continue to ignore syntax or decoding issues, catch all three exceptions now. * :func:`functools.update_wrapper` and :func:`functools.wraps` now correctly set the ``__wrapped__`` attribute to the function being wrapped, even if that ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
28aac4b0-60e7-4f3b-a6f8-a4990d13c736
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,869
supabase-export-v2
884c26fb7fac5e18
instance alive, then you should either store the entire :class:`!cgi.FieldStorage` instance or read the contents of the file before the :class:`!cgi.FieldStorage` instance is garbage collected. * Calling ``read`` or ``write`` on a closed SSL socket now raises an informative :exc:`ValueError` rather than the previous m...
trusted_official_docs
CPython Docs
instance alive, then you should either store the entire :class:`!cgi.FieldStorage` instance or read the contents of the file before the :class:`!cgi.FieldStorage` instance is garbage collected. * Calling ``read`` or ``write`` on a closed SSL socket now raises an informative :exc:`ValueError` rather than the previous m...
instance alive, then you should either store the entire :class:`!cgi.FieldStorage` instance or read the contents of the file before the :class:`!cgi.FieldStorage` instance is garbage collected. * Calling ``read`` or ``write`` on a closed SSL socket now raises an informative :exc:`ValueError` rather than the previous m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29163c74-fdc3-4d8a-ba7b-eac55ba5dabf
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,810
supabase-export-v2
7143edb15fb18e64
Deprecated ========== This section covers various APIs and other features that have been deprecated in Python 3.4, and will be removed in Python 3.5 or later. In most (but not all) cases, using the deprecated APIs will produce a :exc:`DeprecationWarning` when the interpreter is run with deprecation warnings enabled (fo...
trusted_official_docs
CPython Docs
Deprecated ========== This section covers various APIs and other features that have been deprecated in Python 3.4, and will be removed in Python 3.5 or later. In most (but not all) cases, using the deprecated APIs will produce a :exc:`DeprecationWarning` when the interpreter is run with deprecation warnings enabled (fo...
Deprecated ========== This section covers various APIs and other features that have been deprecated in Python 3.4, and will be removed in Python 3.5 or later. In most (but not all) cases, using the deprecated APIs will produce a :exc:`DeprecationWarning` when the interpreter is run with deprecation warnings enabled (fo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29382271-d5fd-43e6-9f2e-d2524c963c95
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,853
supabase-export-v2
206d58c2cc02ee70
Changes in the Python API ------------------------- * The ABCs defined in :mod:`importlib.abc` now either raise the appropriate exception or return a default value instead of raising :exc:`NotImplementedError` blindly. This will only affect code calling :func:`super` and falling through all the way to the ABCs. For ...
trusted_official_docs
CPython Docs
Changes in the Python API ------------------------- * The ABCs defined in :mod:`importlib.abc` now either raise the appropriate exception or return a default value instead of raising :exc:`NotImplementedError` blindly. This will only affect code calling :func:`super` and falling through all the way to the ABCs. For ...
Changes in the Python API ------------------------- * The ABCs defined in :mod:`importlib.abc` now either raise the appropriate exception or return a default value instead of raising :exc:`NotImplementedError` blindly. This will only affect code calling :func:`super` and falling through all the way to the ABCs. For ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2b1653b2-8ae8-467c-b519-e0e4484e7709
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,890
supabase-export-v2
c2f4bbdcf199e6df
Changes in the C API -------------------- * :c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and :c:func:`PyObject_Str`, along with some other internal C APIs, now include a debugging assertion that ensures they are not used in situations where they may silently discard a currently active exception. In cases w...
trusted_official_docs
CPython Docs
Changes in the C API -------------------- * :c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and :c:func:`PyObject_Str`, along with some other internal C APIs, now include a debugging assertion that ensures they are not used in situations where they may silently discard a currently active exception. In cases w...
Changes in the C API -------------------- * :c:func:`PyEval_EvalFrameEx`, :c:func:`PyObject_Repr`, and :c:func:`PyObject_Str`, along with some other internal C APIs, now include a debugging assertion that ensures they are not used in situations where they may silently discard a currently active exception. In cases w...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2bb18367-d4d4-4a45-8466-7b8c8c1714fe
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,557
supabase-export-v2
f163972b9d215f8b
.. _whatsnew-singledispatch: The new :func:`~functools.singledispatch` decorator brings support for single-dispatch generic functions to the Python standard library. Where object oriented programming focuses on grouping multiple operations on a common set of data into a class, a generic function focuses on grouping mul...
trusted_official_docs
CPython Docs
.. _whatsnew-singledispatch: The new :func:`~functools.singledispatch` decorator brings support for single-dispatch generic functions to the Python standard library. Where object oriented programming focuses on grouping multiple operations on a common set of data into a class, a generic function focuses on grouping mul...
.. _whatsnew-singledispatch: The new :func:`~functools.singledispatch` decorator brings support for single-dispatch generic functions to the Python standard library. Where object oriented programming focuses on grouping multiple operations on a common set of data into a class, a generic function focuses on grouping mul...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2c29c101-c1a2-42b4-bd9d-d01375f1de62
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,440
supabase-export-v2
1fdb886fae626608
interpreter is able to identify the known non-text encodings provided in the standard library and direct users towards these general purpose convenience functions when appropriate:: >>> b"abcdef".decode("hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is not a text enc...
trusted_official_docs
CPython Docs
interpreter is able to identify the known non-text encodings provided in the standard library and direct users towards these general purpose convenience functions when appropriate:: >>> b"abcdef".decode("hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is not a text enc...
interpreter is able to identify the known non-text encodings provided in the standard library and direct users towards these general purpose convenience functions when appropriate:: >>> b"abcdef".decode("hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is not a text enc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2e09616b-e28c-4ba9-aeeb-ec3c050f902c
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,877
supabase-export-v2
f5b4f85f927e4eb4
lower case. Previously some builtin hashes had uppercase names, but now that it is a formal public interface the naming has been made consistent (:issue:`18532`). * Because :mod:`unittest.TestSuite` now drops references to tests after they are run, test harnesses that reuse a :class:`~unittest.TestSuite` to re-run a ...
trusted_official_docs
CPython Docs
lower case. Previously some builtin hashes had uppercase names, but now that it is a formal public interface the naming has been made consistent (:issue:`18532`). * Because :mod:`unittest.TestSuite` now drops references to tests after they are run, test harnesses that reuse a :class:`~unittest.TestSuite` to re-run a ...
lower case. Previously some builtin hashes had uppercase names, but now that it is a formal public interface the naming has been made consistent (:issue:`18532`). * Because :mod:`unittest.TestSuite` now drops references to tests after they are run, test harnesses that reuse a :class:`~unittest.TestSuite` to re-run a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ebf93a1-b1b8-4374-b37b-806732c7dbad
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,857
supabase-export-v2
75f78515074bccc0
``__loader__``, ``__package__``, ``__file__``, ``__cached__``) unconditionally when reloading. Note that this restores a pre-3.3 behavior in that it means a module is re-found when re-loaded (:issue:`19413`). * Frozen packages no longer set ``__path__`` to a list containing the package name, they now set it to an empt...
trusted_official_docs
CPython Docs
``__loader__``, ``__package__``, ``__file__``, ``__cached__``) unconditionally when reloading. Note that this restores a pre-3.3 behavior in that it means a module is re-found when re-loaded (:issue:`19413`). * Frozen packages no longer set ``__path__`` to a list containing the package name, they now set it to an empt...
``__loader__``, ``__package__``, ``__file__``, ``__cached__``) unconditionally when reloading. Note that this restores a pre-3.3 behavior in that it means a module is re-found when re-loaded (:issue:`19413`). * Frozen packages no longer set ``__path__`` to a list containing the package name, they now set it to an empt...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2fddae3e-89ba-4455-b492-8258e5b6608f
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,400
supabase-export-v2
fc0e28e960048a1b
Other new features: * :ref:`pip should always be available <whatsnew-pep-453>` (:pep:`453`). * :ref:`Newly created file descriptors are non-inheritable <whatsnew-pep-446>` (:pep:`446`). * command line option for :ref:`isolated mode <whatsnew-isolated-mode>` (:issue:`16499`). * :ref:`improvements in the handling of co...
trusted_official_docs
CPython Docs
Other new features: * :ref:`pip should always be available <whatsnew-pep-453>` (:pep:`453`). * :ref:`Newly created file descriptors are non-inheritable <whatsnew-pep-446>` (:pep:`446`). * command line option for :ref:`isolated mode <whatsnew-isolated-mode>` (:issue:`16499`). * :ref:`improvements in the handling of co...
Other new features: * :ref:`pip should always be available <whatsnew-pep-453>` (:pep:`453`). * :ref:`Newly created file descriptors are non-inheritable <whatsnew-pep-446>` (:pep:`446`). * command line option for :ref:`isolated mode <whatsnew-isolated-mode>` (:issue:`16499`). * :ref:`improvements in the handling of co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
31cd8ffd-dc2e-4488-bad7-a360b9f5ed36
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,794
supabase-export-v2
b8376c1d026e98b8
* A number of MemoryError-related crashes were identified and fixed by Victor Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, :issue:`18520`). * The ``pyvenv`` command now accepts a ``--copies`` option to use copies rather than symlinks even on systems where symlinks are the default. (Contri...
trusted_official_docs
CPython Docs
* A number of MemoryError-related crashes were identified and fixed by Victor Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, :issue:`18520`). * The ``pyvenv`` command now accepts a ``--copies`` option to use copies rather than symlinks even on systems where symlinks are the default. (Contri...
* A number of MemoryError-related crashes were identified and fixed by Victor Stinner using his :pep:`445`-based ``pyfailmalloc`` tool (:issue:`18408`, :issue:`18520`). * The ``pyvenv`` command now accepts a ``--copies`` option to use copies rather than symlinks even on systems where symlinks are the default. (Contri...
python, official-docs, cpython, P0
Local_Trusted_Corpus
324d35ac-e657-4eaa-b92d-1a9253227661
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,611
supabase-export-v2
29e479ae5213c787
.. _whatsnew-multiprocessing-no-fork: On Unix two new :ref:`start methods <multiprocessing-start-methods>`, ``spawn`` and ``forkserver``, have been added for starting processes using :mod:`multiprocessing`. These make the mixing of processes with threads more robust, and the ``spawn`` method matches the semantics that ...
trusted_official_docs
CPython Docs
.. _whatsnew-multiprocessing-no-fork: On Unix two new :ref:`start methods <multiprocessing-start-methods>`, ``spawn`` and ``forkserver``, have been added for starting processes using :mod:`multiprocessing`. These make the mixing of processes with threads more robust, and the ``spawn`` method matches the semantics that ...
.. _whatsnew-multiprocessing-no-fork: On Unix two new :ref:`start methods <multiprocessing-start-methods>`, ``spawn`` and ``forkserver``, have been added for starting processes using :mod:`multiprocessing`. These make the mixing of processes with threads more robust, and the ``spawn`` method matches the semantics that ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
32c934eb-28ba-4566-83a2-e5d43a59a2a5
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,674
supabase-export-v2
08a98dc728780271
.. _whatsnew34-sslcontext: New function :func:`~ssl.create_default_context` provides a standard way to obtain an :class:`~ssl.SSLContext` whose settings are intended to be a reasonable balance between compatibility and security. These settings are more stringent than the defaults provided by the :class:`~ssl.SSLContext...
trusted_official_docs
CPython Docs
.. _whatsnew34-sslcontext: New function :func:`~ssl.create_default_context` provides a standard way to obtain an :class:`~ssl.SSLContext` whose settings are intended to be a reasonable balance between compatibility and security. These settings are more stringent than the defaults provided by the :class:`~ssl.SSLContext...
.. _whatsnew34-sslcontext: New function :func:`~ssl.create_default_context` provides a standard way to obtain an :class:`~ssl.SSLContext` whose settings are intended to be a reasonable balance between compatibility and security. These settings are more stringent than the defaults provided by the :class:`~ssl.SSLContext...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33297349-1aba-46f4-84f2-209610293768
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,710
supabase-export-v2
6f135374bb35ebce
types ----- A new :func:`~types.DynamicClassAttribute` descriptor provides a way to define an attribute that acts normally when looked up through an instance object, but which is routed to the *class* ``__getattr__`` when looked up through the class. This allows one to have properties active on a class, and have virtua...
trusted_official_docs
CPython Docs
types ----- A new :func:`~types.DynamicClassAttribute` descriptor provides a way to define an attribute that acts normally when looked up through an instance object, but which is routed to the *class* ``__getattr__`` when looked up through the class. This allows one to have properties active on a class, and have virtua...
types ----- A new :func:`~types.DynamicClassAttribute` descriptor provides a way to define an attribute that acts normally when looked up through an instance object, but which is routed to the *class* ``__getattr__`` when looked up through the class. This allows one to have properties active on a class, and have virtua...
python, official-docs, cpython, P0
Local_Trusted_Corpus
342d390c-9330-40bb-8a26-f9575296ec02
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,381
supabase-export-v2
4bbe0d3e20b05b22
for obscure or esoteric features, the maintainer may reduce any addition to a simple reference to the new documentation rather than explaining the feature inline. * While the maintainer will periodically go through Misc/NEWS and add changes, it's best not to rely on this. We know from experience that any changes that...
trusted_official_docs
CPython Docs
for obscure or esoteric features, the maintainer may reduce any addition to a simple reference to the new documentation rather than explaining the feature inline. * While the maintainer will periodically go through Misc/NEWS and add changes, it's best not to rely on this. We know from experience that any changes that...
for obscure or esoteric features, the maintainer may reduce any addition to a simple reference to the new documentation rather than explaining the feature inline. * While the maintainer will periodically go through Misc/NEWS and add changes, it's best not to rely on this. We know from experience that any changes that...
python, official-docs, cpython, P0
Local_Trusted_Corpus
34b14374-d1c6-420b-812a-798e27de8378
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,706
supabase-export-v2
413306b18b48dd9d
threading --------- The :class:`~threading.Thread` object representing the main thread can be obtained from the new :func:`~threading.main_thread` function. In normal conditions this will be the thread from which the Python interpreter was started. (Contributed by Andrew Svetlov in :issue:`18882`.)
trusted_official_docs
CPython Docs
threading --------- The :class:`~threading.Thread` object representing the main thread can be obtained from the new :func:`~threading.main_thread` function. In normal conditions this will be the thread from which the Python interpreter was started. (Contributed by Andrew Svetlov in :issue:`18882`.)
threading --------- The :class:`~threading.Thread` object representing the main thread can be obtained from the new :func:`~threading.main_thread` function. In normal conditions this will be the thread from which the Python interpreter was started. (Contributed by Andrew Svetlov in :issue:`18882`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
35247a0a-b622-449b-a38a-11d6aff883e6
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,897
supabase-export-v2
9f4c8e12b8e7d581
PEP 476: Enabling certificate verification by default for stdlib http clients ----------------------------------------------------------------------------- :mod:`http.client` and modules which use it, such as :mod:`urllib.request` and :mod:`xmlrpc.client`, will now verify that the server presents a certificate which is...
trusted_official_docs
CPython Docs
PEP 476: Enabling certificate verification by default for stdlib http clients ----------------------------------------------------------------------------- :mod:`http.client` and modules which use it, such as :mod:`urllib.request` and :mod:`xmlrpc.client`, will now verify that the server presents a certificate which is...
PEP 476: Enabling certificate verification by default for stdlib http clients ----------------------------------------------------------------------------- :mod:`http.client` and modules which use it, such as :mod:`urllib.request` and :mod:`xmlrpc.client`, will now verify that the server presents a certificate which is...
python, official-docs, cpython, P0
Local_Trusted_Corpus
362d1e3b-7ae2-4aa6-91f8-d44ee15f1c46
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,459
supabase-export-v2
dce4c6d11673a907
__ https://mail.python.org/pipermail/python-dev/2013-November/130111.html The public-facing changes from the PEP are entirely backward-compatible. Furthermore, they should be transparent to everyone but importer authors. Key finder and loader methods have been deprecated, but they will continue working. New importers s...
trusted_official_docs
CPython Docs
__ https://mail.python.org/pipermail/python-dev/2013-November/130111.html The public-facing changes from the PEP are entirely backward-compatible. Furthermore, they should be transparent to everyone but importer authors. Key finder and loader methods have been deprecated, but they will continue working. New importers s...
__ https://mail.python.org/pipermail/python-dev/2013-November/130111.html The public-facing changes from the PEP are entirely backward-compatible. Furthermore, they should be transparent to everyone but importer authors. Key finder and loader methods have been deprecated, but they will continue working. New importers s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3669ba99-76ff-432e-a41c-e02cad8a3188
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,672
supabase-export-v2
15a0544e9968e307
.. _whatsnew-tls-11-12: :data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and TLSv1.2 support) have been added; support for these protocols is only available if Python is linked with OpenSSL 1.0.1 or later. (Contributed by Michele Orrù and Antoine Pitrou in :issue:`16692`.)
trusted_official_docs
CPython Docs
.. _whatsnew-tls-11-12: :data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and TLSv1.2 support) have been added; support for these protocols is only available if Python is linked with OpenSSL 1.0.1 or later. (Contributed by Michele Orrù and Antoine Pitrou in :issue:`16692`.)
.. _whatsnew-tls-11-12: :data:`~ssl.PROTOCOL_TLSv1_1` and :data:`~ssl.PROTOCOL_TLSv1_2` (TLSv1.1 and TLSv1.2 support) have been added; support for these protocols is only available if Python is linked with OpenSSL 1.0.1 or later. (Contributed by Michele Orrù and Antoine Pitrou in :issue:`16692`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
36b67ca5-58c6-4f59-97e9-934ab66ec906
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,670
supabase-export-v2
366ec4bba0cf9b80
sqlite3 ------- A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can be used to indicate that the *database* parameter is a ``uri`` (see the `SQLite URI documentation <https://www.sqlite.org/uri.html>`_). (Contributed by poq in :issue:`13773`.)
trusted_official_docs
CPython Docs
sqlite3 ------- A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can be used to indicate that the *database* parameter is a ``uri`` (see the `SQLite URI documentation <https://www.sqlite.org/uri.html>`_). (Contributed by poq in :issue:`13773`.)
sqlite3 ------- A new boolean parameter to the :func:`~sqlite3.connect` function, *uri*, can be used to indicate that the *database* parameter is a ``uri`` (see the `SQLite URI documentation <https://www.sqlite.org/uri.html>`_). (Contributed by poq in :issue:`13773`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
36fc3169-df33-4966-a8a9-14730312f84c
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,837
supabase-export-v2
57a0bccbe796343e
* The *strict* argument to :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style "Simple Responses" are no longer supported. * The deprecated :mod:`urllib.request.Request` getter and setter methods ``add_data``, ``has_data``, ``get_data``, ``get_type``, ``get_h...
trusted_official_docs
CPython Docs
* The *strict* argument to :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style "Simple Responses" are no longer supported. * The deprecated :mod:`urllib.request.Request` getter and setter methods ``add_data``, ``has_data``, ``get_data``, ``get_type``, ``get_h...
* The *strict* argument to :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style "Simple Responses" are no longer supported. * The deprecated :mod:`urllib.request.Request` getter and setter methods ``add_data``, ``has_data``, ``get_data``, ``get_type``, ``get_h...
python, official-docs, cpython, P0
Local_Trusted_Corpus
376d4b3a-58fa-4985-b908-f2c49e3722bb
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,812
supabase-export-v2
4a586d0106dfe006
Deprecations in the Python API ------------------------------ * As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importlib` methods and functions are deprecated: :meth:`!importlib.find_loader` is replaced by :func:`importlib.util.find_spec`; :meth:`!importlib.machinery.PathFinder.find_module` is replaced b...
trusted_official_docs
CPython Docs
Deprecations in the Python API ------------------------------ * As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importlib` methods and functions are deprecated: :meth:`!importlib.find_loader` is replaced by :func:`importlib.util.find_spec`; :meth:`!importlib.machinery.PathFinder.find_module` is replaced b...
Deprecations in the Python API ------------------------------ * As mentioned in :ref:`whatsnew-pep-451`, a number of :mod:`importlib` methods and functions are deprecated: :meth:`!importlib.find_loader` is replaced by :func:`importlib.util.find_spec`; :meth:`!importlib.machinery.PathFinder.find_module` is replaced b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3912d993-1102-4ae9-8b57-65b05707937a
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,717
supabase-export-v2
73f5fbd07f657f40
unittest -------- The :class:`~unittest.TestCase` class has a new method, :meth:`~unittest.TestCase.subTest`, that produces a context manager whose :keyword:`with` block becomes a "sub-test". This context manager allows a test method to dynamically generate subtests by, say, calling the ``subTest`` context manager insi...
trusted_official_docs
CPython Docs
unittest -------- The :class:`~unittest.TestCase` class has a new method, :meth:`~unittest.TestCase.subTest`, that produces a context manager whose :keyword:`with` block becomes a "sub-test". This context manager allows a test method to dynamically generate subtests by, say, calling the ``subTest`` context manager insi...
unittest -------- The :class:`~unittest.TestCase` class has a new method, :meth:`~unittest.TestCase.subTest`, that produces a context manager whose :keyword:`with` block becomes a "sub-test". This context manager allows a test method to dynamically generate subtests by, say, calling the ``subTest`` context manager insi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3a4aafed-b74d-457e-a4f7-8074966beffc
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,612
supabase-export-v2
5ad2413aae08e15f
all start methods available on the platform, :func:`~multiprocessing.get_start_method` reports the current start method, and :func:`~multiprocessing.set_start_method` sets the start method. (Contributed by Richard Oudkerk in :issue:`8713`.) :mod:`multiprocessing` also now has the concept of a ``context``, which determi...
trusted_official_docs
CPython Docs
all start methods available on the platform, :func:`~multiprocessing.get_start_method` reports the current start method, and :func:`~multiprocessing.set_start_method` sets the start method. (Contributed by Richard Oudkerk in :issue:`8713`.) :mod:`multiprocessing` also now has the concept of a ``context``, which determi...
all start methods available on the platform, :func:`~multiprocessing.get_start_method` reports the current start method, and :func:`~multiprocessing.set_start_method` sets the start method. (Contributed by Richard Oudkerk in :issue:`8713`.) :mod:`multiprocessing` also now has the concept of a ``context``, which determi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b726396-388a-4d8c-9236-860ac354e866
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,778
supabase-export-v2
7b6a481f3cebe038
features of recent versions of GCC and clang: the false alarms in the small object allocator have been silenced. (Contributed by Dhiru Kholia in :issue:`18596`.) * The Windows build now uses `Address Space Layout Randomization <https://en.wikipedia.org/wiki/Address_space_layout_randomization>`_ and `Data Execution Pre...
trusted_official_docs
CPython Docs
features of recent versions of GCC and clang: the false alarms in the small object allocator have been silenced. (Contributed by Dhiru Kholia in :issue:`18596`.) * The Windows build now uses `Address Space Layout Randomization <https://en.wikipedia.org/wiki/Address_space_layout_randomization>`_ and `Data Execution Pre...
features of recent versions of GCC and clang: the false alarms in the small object allocator have been silenced. (Contributed by Dhiru Kholia in :issue:`18596`.) * The Windows build now uses `Address Space Layout Randomization <https://en.wikipedia.org/wiki/Address_space_layout_randomization>`_ and `Data Execution Pre...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c3dbece-b9af-40ad-aef0-35df670a4f8c
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,862
supabase-export-v2
df50871e0819ab77
Introspection libraries that assumed the previous behaviour was intentional can use :func:`inspect.unwrap` to access the first function in the chain that has no ``__wrapped__`` attribute. * :func:`inspect.getfullargspec` has been reimplemented on top of :func:`inspect.signature` and hence handles a much wider variety ...
trusted_official_docs
CPython Docs
Introspection libraries that assumed the previous behaviour was intentional can use :func:`inspect.unwrap` to access the first function in the chain that has no ``__wrapped__`` attribute. * :func:`inspect.getfullargspec` has been reimplemented on top of :func:`inspect.signature` and hence handles a much wider variety ...
Introspection libraries that assumed the previous behaviour was intentional can use :func:`inspect.unwrap` to access the first function in the chain that has no ``__wrapped__`` attribute. * :func:`inspect.getfullargspec` has been reimplemented on top of :func:`inspect.signature` and hence handles a much wider variety ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3da6eae4-6b53-43c4-96be-cef33fb17de7
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,802
supabase-export-v2
128c57cc5070a695
has been improved to load compiled Python code faster. (Contributed by Antoine Pitrou, Christian Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:`19209`, :issue:`19205` and :issue:`9548`.) * :class:`bz2.BZ2File` is now as fast or faster than the Python2 version for most cases. :class:`lzma.LZMAFile...
trusted_official_docs
CPython Docs
has been improved to load compiled Python code faster. (Contributed by Antoine Pitrou, Christian Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:`19209`, :issue:`19205` and :issue:`9548`.) * :class:`bz2.BZ2File` is now as fast or faster than the Python2 version for most cases. :class:`lzma.LZMAFile...
has been improved to load compiled Python code faster. (Contributed by Antoine Pitrou, Christian Heimes and Victor Stinner in :issue:`19219`, :issue:`19218`, :issue:`19209`, :issue:`19205` and :issue:`9548`.) * :class:`bz2.BZ2File` is now as fast or faster than the Python2 version for most cases. :class:`lzma.LZMAFile...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3dbedd1f-7fec-4351-85fe-f556475f3361
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,441
supabase-export-v2
d30730892e0673f2
b"abcdef".decode("hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is not a text encoding; use codecs.decode() to handle arbitrary codecs >>> "hello".encode("rot13") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'rot13' is not a tex...
trusted_official_docs
CPython Docs
b"abcdef".decode("hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is not a text encoding; use codecs.decode() to handle arbitrary codecs >>> "hello".encode("rot13") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'rot13' is not a tex...
b"abcdef".decode("hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is not a text encoding; use codecs.decode() to handle arbitrary codecs >>> "hello".encode("rot13") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'rot13' is not a tex...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3f69ff0d-67d6-4af9-b6f6-3e28f9453d4f
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,772
supabase-export-v2
b7d964787c0aadc7
to the stable ABI, allowing retrieval of function pointers from named type slots when using the limited API. (Contributed by Martin von Löwis in :issue:`17162`.) * The new :c:func:`!Py_SetStandardStreamEncoding` pre-initialization API allows applications embedding the CPython interpreter to reliably force a particula...
trusted_official_docs
CPython Docs
to the stable ABI, allowing retrieval of function pointers from named type slots when using the limited API. (Contributed by Martin von Löwis in :issue:`17162`.) * The new :c:func:`!Py_SetStandardStreamEncoding` pre-initialization API allows applications embedding the CPython interpreter to reliably force a particula...
to the stable ABI, allowing retrieval of function pointers from named type slots when using the limited API. (Contributed by Martin von Löwis in :issue:`17162`.) * The new :c:func:`!Py_SetStandardStreamEncoding` pre-initialization API allows applications embedding the CPython interpreter to reliably force a particula...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ff56def-aa8e-4870-9c41-db1dc3af98a6
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,888
supabase-export-v2
a47e8144944f073e
extension modules that have things that look like doctests in them you may see test failures you've never seen before when running your tests (:issue:`3158`). * The :mod:`collections.abc` module has been slightly refactored as part of the Python startup improvements. As a consequence of this, it is no longer the case...
trusted_official_docs
CPython Docs
extension modules that have things that look like doctests in them you may see test failures you've never seen before when running your tests (:issue:`3158`). * The :mod:`collections.abc` module has been slightly refactored as part of the Python startup improvements. As a consequence of this, it is no longer the case...
extension modules that have things that look like doctests in them you may see test failures you've never seen before when running your tests (:issue:`3158`). * The :mod:`collections.abc` module has been slightly refactored as part of the Python startup improvements. As a consequence of this, it is no longer the case...
python, official-docs, cpython, P0
Local_Trusted_Corpus
408ae6fc-3c86-40c0-ae5c-b2b0220896a6
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,836
supabase-export-v2
f1a572cd6b89291f
* ``PyLoader`` and ``PyPycLoader`` have been removed from :mod:`importlib`. (Contributed by Taras Lyapun in :issue:`15641`.) * The *strict* argument to :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style "Simple Responses" are no longer supported.
trusted_official_docs
CPython Docs
* ``PyLoader`` and ``PyPycLoader`` have been removed from :mod:`importlib`. (Contributed by Taras Lyapun in :issue:`15641`.) * The *strict* argument to :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style "Simple Responses" are no longer supported.
* ``PyLoader`` and ``PyPycLoader`` have been removed from :mod:`importlib`. (Contributed by Taras Lyapun in :issue:`15641`.) * The *strict* argument to :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` has been removed. HTTP 0.9-style "Simple Responses" are no longer supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
40df6d2c-bcd6-4acf-b63b-788508d98bd5
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,807
supabase-export-v2
8054441442cb7ad2
* :func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in :issue:`18020`.) * On Windows, the native ``VirtualAlloc`` is now used instead of the CRT ``malloc`` in ``obmalloc``. Artificial benchmarks show about a 3% memory savings.
trusted_official_docs
CPython Docs
* :func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in :issue:`18020`.) * On Windows, the native ``VirtualAlloc`` is now used instead of the CRT ``malloc`` in ``obmalloc``. Artificial benchmarks show about a 3% memory savings.
* :func:`html.escape` is now 10x faster. (Contributed by Matt Bryant in :issue:`18020`.) * On Windows, the native ``VirtualAlloc`` is now used instead of the CRT ``malloc`` in ``obmalloc``. Artificial benchmarks show about a 3% memory savings.
python, official-docs, cpython, P0
Local_Trusted_Corpus
41e30066-f859-4c4c-8186-9c01575351f9
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,818
supabase-export-v2
9cefe4cf0b0eef19
to :meth:`subprocess.Popen.wait` should not have been exposed and is hopefully not in use; it is deprecated and will mostly likely be removed in Python 3.5. * The *strict* argument of :class:`~html.parser.HTMLParser` is deprecated.
trusted_official_docs
CPython Docs
to :meth:`subprocess.Popen.wait` should not have been exposed and is hopefully not in use; it is deprecated and will mostly likely be removed in Python 3.5. * The *strict* argument of :class:`~html.parser.HTMLParser` is deprecated.
to :meth:`subprocess.Popen.wait` should not have been exposed and is hopefully not in use; it is deprecated and will mostly likely be removed in Python 3.5. * The *strict* argument of :class:`~html.parser.HTMLParser` is deprecated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
421d1e0f-1884-458e-b69d-885e9762c72d
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,535
supabase-export-v2
d5c500d9b8062ece
>>> import dis >>> for instr in dis.get_instructions(lambda x: x + 1): ... print(instr.opname) LOAD_FAST LOAD_CONST BINARY_ADD RETURN_VALUE The various display tools in the :mod:`dis` module have been rewritten to use these new components.
trusted_official_docs
CPython Docs
>>> import dis >>> for instr in dis.get_instructions(lambda x: x + 1): ... print(instr.opname) LOAD_FAST LOAD_CONST BINARY_ADD RETURN_VALUE The various display tools in the :mod:`dis` module have been rewritten to use these new components.
>>> import dis >>> for instr in dis.get_instructions(lambda x: x + 1): ... print(instr.opname) LOAD_FAST LOAD_CONST BINARY_ADD RETURN_VALUE The various display tools in the :mod:`dis` module have been rewritten to use these new components.
python, official-docs, cpython, P0
Local_Trusted_Corpus
428ee426-8384-4c61-8046-d5706ca88602
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,570
supabase-export-v2
b34e9977fc535b90
hmac ---- :mod:`hmac` now accepts ``bytearray`` as well as ``bytes`` for the *key* argument to the :func:`~hmac.new` function, and the *msg* parameter to both the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now accepts any type supported by the :mod:`hashlib` module. (Contributed by Jonas Borgst...
trusted_official_docs
CPython Docs
hmac ---- :mod:`hmac` now accepts ``bytearray`` as well as ``bytes`` for the *key* argument to the :func:`~hmac.new` function, and the *msg* parameter to both the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now accepts any type supported by the :mod:`hashlib` module. (Contributed by Jonas Borgst...
hmac ---- :mod:`hmac` now accepts ``bytearray`` as well as ``bytes`` for the *key* argument to the :func:`~hmac.new` function, and the *msg* parameter to both the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now accepts any type supported by the :mod:`hashlib` module. (Contributed by Jonas Borgst...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43250944-0595-40bd-8a4e-f5ef2eaf0674
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,714
supabase-export-v2
460774117636fd0d
used by a :class:`~urllib.request.Request` class can now be specified by setting a :class:`~urllib.request.Request.method` class attribute on the subclass. (Contributed by Jason R Coombs in :issue:`18978`.) :class:`~urllib.request.Request` objects are now reusable: if the :attr:`~urllib.request.Request.full_url` or :at...
trusted_official_docs
CPython Docs
used by a :class:`~urllib.request.Request` class can now be specified by setting a :class:`~urllib.request.Request.method` class attribute on the subclass. (Contributed by Jason R Coombs in :issue:`18978`.) :class:`~urllib.request.Request` objects are now reusable: if the :attr:`~urllib.request.Request.full_url` or :at...
used by a :class:`~urllib.request.Request` class can now be specified by setting a :class:`~urllib.request.Request.method` class attribute on the subclass. (Contributed by Jason R Coombs in :issue:`18978`.) :class:`~urllib.request.Request` objects are now reusable: if the :attr:`~urllib.request.Request.full_url` or :at...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43b14a14-1be8-4920-86ed-a1b4df96ab4b
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,539
supabase-export-v2
70ebf51d607a7268
:class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode.from_traceback`, that provides the ability to manipulate a traceback (that is, ``print(Bytecode.from_traceback(tb).dis())`` is equivalent to ``distb(tb)``). (Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in :issue:`11816` and Claudiu Popa...
trusted_official_docs
CPython Docs
:class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode.from_traceback`, that provides the ability to manipulate a traceback (that is, ``print(Bytecode.from_traceback(tb).dis())`` is equivalent to ``distb(tb)``). (Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in :issue:`11816` and Claudiu Popa...
:class:`~dis.Bytecode` also has a class method, :meth:`~dis.Bytecode.from_traceback`, that provides the ability to manipulate a traceback (that is, ``print(Bytecode.from_traceback(tb).dis())`` is equivalent to ``distb(tb)``). (Contributed by Nick Coghlan, Ryan Kelly and Thomas Kluyver in :issue:`11816` and Claudiu Popa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
44768087-9943-4158-b4ad-92cf7235808a
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,634
supabase-export-v2
152a58a3e0dad9ec
poplib ------ Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`, which returns the list of capabilities advertised by the POP server, and :meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an encrypted POP3 session if the POP server supports it. (Contributed by Lorenzo Ca...
trusted_official_docs
CPython Docs
poplib ------ Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`, which returns the list of capabilities advertised by the POP server, and :meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an encrypted POP3 session if the POP server supports it. (Contributed by Lorenzo Ca...
poplib ------ Two new methods have been added to :mod:`poplib`: :meth:`~poplib.POP3.capa`, which returns the list of capabilities advertised by the POP server, and :meth:`~poplib.POP3.stls`, which switches a clear-text POP3 session into an encrypted POP3 session if the POP server supports it. (Contributed by Lorenzo Ca...
python, official-docs, cpython, P0
Local_Trusted_Corpus
44b5ea1f-36b3-4f78-ac41-59c30c68f620
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,719
supabase-export-v2
92daceb1b7914074
class NumbersTest(unittest.TestCase): def test_even(self): for i in range(6): with self.subTest(i=i): self.assertEqual(i % 2, 0) will result in six subtests, each identified in the unittest verbose output with a label consisting of the variable name ``i`` and a particular value for that variable (``i=0``, ``i=1``, etc)...
trusted_official_docs
CPython Docs
class NumbersTest(unittest.TestCase): def test_even(self): for i in range(6): with self.subTest(i=i): self.assertEqual(i % 2, 0) will result in six subtests, each identified in the unittest verbose output with a label consisting of the variable name ``i`` and a particular value for that variable (``i=0``, ``i=1``, etc)...
class NumbersTest(unittest.TestCase): def test_even(self): for i in range(6): with self.subTest(i=i): self.assertEqual(i % 2, 0) will result in six subtests, each identified in the unittest verbose output with a label consisting of the variable name ``i`` and a particular value for that variable (``i=0``, ``i=1``, etc)...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4709702b-6546-4527-a499-333f5bdc2fb1
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,642
supabase-export-v2
a99a094edf00a764
of callable objects. This change also means that ``__wrapped__`` attributes are now taken into account when displaying help information. (Contributed by Larry Hastings in :issue:`19674`.) The :mod:`pydoc` module no longer displays the ``self`` parameter for already bound methods. Instead, it aims to always display the ...
trusted_official_docs
CPython Docs
of callable objects. This change also means that ``__wrapped__`` attributes are now taken into account when displaying help information. (Contributed by Larry Hastings in :issue:`19674`.) The :mod:`pydoc` module no longer displays the ``self`` parameter for already bound methods. Instead, it aims to always display the ...
of callable objects. This change also means that ``__wrapped__`` attributes are now taken into account when displaying help information. (Contributed by Larry Hastings in :issue:`19674`.) The :mod:`pydoc` module no longer displays the ``self`` parameter for already bound methods. Instead, it aims to always display the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
47a2dea9-d5ae-4422-8ee1-ac968b19adee
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,785
supabase-export-v2
6b4fbb9724bb6d16
History is also enabled by default, and is written to (and read from) the file :file:`~/.python-history`. (Contributed by Antoine Pitrou and Éric Araujo in :issue:`5845`.) * Invoking the Python interpreter with ``--version`` now outputs the version to standard output instead of standard error (:issue:`18338`). Similar...
trusted_official_docs
CPython Docs
History is also enabled by default, and is written to (and read from) the file :file:`~/.python-history`. (Contributed by Antoine Pitrou and Éric Araujo in :issue:`5845`.) * Invoking the Python interpreter with ``--version`` now outputs the version to standard output instead of standard error (:issue:`18338`). Similar...
History is also enabled by default, and is written to (and read from) the file :file:`~/.python-history`. (Contributed by Antoine Pitrou and Éric Araujo in :issue:`5845`.) * Invoking the Python interpreter with ``--version`` now outputs the version to standard output instead of standard error (:issue:`18338`). Similar...
python, official-docs, cpython, P0
Local_Trusted_Corpus
47a481b7-0d6f-4ba9-b98f-b04abf551121
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,804
supabase-export-v2
2de16145a973deb2
* :func:`random.getrandbits` is 20%-40% faster for small integers (the most common use case). (Contributed by Serhiy Storchaka in :issue:`16674`.) * By taking advantage of the new storage format for strings, pickling of strings is now significantly faster. (Contributed by Victor Stinner and Antoine Pitrou in :issue:`...
trusted_official_docs
CPython Docs
* :func:`random.getrandbits` is 20%-40% faster for small integers (the most common use case). (Contributed by Serhiy Storchaka in :issue:`16674`.) * By taking advantage of the new storage format for strings, pickling of strings is now significantly faster. (Contributed by Victor Stinner and Antoine Pitrou in :issue:`...
* :func:`random.getrandbits` is 20%-40% faster for small integers (the most common use case). (Contributed by Serhiy Storchaka in :issue:`16674`.) * By taking advantage of the new storage format for strings, pickling of strings is now significantly faster. (Contributed by Victor Stinner and Antoine Pitrou in :issue:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
48b517e2-e715-4edd-b69c-40e6dbe1cfd9
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,787
supabase-export-v2
3c81ce0ef526331c
to run a python script at the windows command prompt by just typing its name without the ``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.) * A new ``make`` target `coverage-report <https://devguide.python.org/coverage/#measuring-coverage-of-c-code-with-gcov-and-lcov>`_ will build python, run the test ...
trusted_official_docs
CPython Docs
to run a python script at the windows command prompt by just typing its name without the ``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.) * A new ``make`` target `coverage-report <https://devguide.python.org/coverage/#measuring-coverage-of-c-code-with-gcov-and-lcov>`_ will build python, run the test ...
to run a python script at the windows command prompt by just typing its name without the ``.py`` extension. (Contributed by Paul Moore in :issue:`18569`.) * A new ``make`` target `coverage-report <https://devguide.python.org/coverage/#measuring-coverage-of-c-code-with-gcov-and-lcov>`_ will build python, run the test ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
498a7548-eb7b-4a12-82a5-a9362ee3a1fa
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,679
supabase-export-v2
8fbba8b82a890a9e
combination of the new constants :const:`~ssl.VERIFY_DEFAULT`, :const:`~ssl.VERIFY_CRL_CHECK_LEAF`, :const:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or :const:`~ssl.VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by default. (Contributed by Christien Heimes in :issue:`8813`.) New :class:`~ssl.SSLContext` method :met...
trusted_official_docs
CPython Docs
combination of the new constants :const:`~ssl.VERIFY_DEFAULT`, :const:`~ssl.VERIFY_CRL_CHECK_LEAF`, :const:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or :const:`~ssl.VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by default. (Contributed by Christien Heimes in :issue:`8813`.) New :class:`~ssl.SSLContext` method :met...
combination of the new constants :const:`~ssl.VERIFY_DEFAULT`, :const:`~ssl.VERIFY_CRL_CHECK_LEAF`, :const:`~ssl.VERIFY_CRL_CHECK_CHAIN`, or :const:`~ssl.VERIFY_X509_STRICT`. OpenSSL does not do any CRL verification by default. (Contributed by Christien Heimes in :issue:`8813`.) New :class:`~ssl.SSLContext` method :met...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ba064d6-22e2-49e2-86b6-ee355e412dad
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,650
supabase-export-v2
7dc18869fa7de505
provides the ability to query or set the resource limits for processes other than the one making the call. (Contributed by Christian Heimes in :issue:`16595`.) On Linux kernel version 2.6.36 or later, there are also some new Linux specific constants: :const:`~resource.RLIMIT_MSGQUEUE`, :const:`~resource.RLIMIT_NICE`, :...
trusted_official_docs
CPython Docs
provides the ability to query or set the resource limits for processes other than the one making the call. (Contributed by Christian Heimes in :issue:`16595`.) On Linux kernel version 2.6.36 or later, there are also some new Linux specific constants: :const:`~resource.RLIMIT_MSGQUEUE`, :const:`~resource.RLIMIT_NICE`, :...
provides the ability to query or set the resource limits for processes other than the one making the call. (Contributed by Christian Heimes in :issue:`16595`.) On Linux kernel version 2.6.36 or later, there are also some new Linux specific constants: :const:`~resource.RLIMIT_MSGQUEUE`, :const:`~resource.RLIMIT_NICE`, :...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c870d3b-f6a4-43e8-afea-66b4bc6992dc
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,852
supabase-export-v2
f7df7161574b7bae
python command and most stdlib scripts (as well as :mod:`argparse`) now output ``--version`` information to ``stdout`` instead of ``stderr`` (for issue list see :ref:`other-improvements-3.4` above). Changes in the Python API -------------------------
trusted_official_docs
CPython Docs
python command and most stdlib scripts (as well as :mod:`argparse`) now output ``--version`` information to ``stdout`` instead of ``stderr`` (for issue list see :ref:`other-improvements-3.4` above). Changes in the Python API -------------------------
python command and most stdlib scripts (as well as :mod:`argparse`) now output ``--version`` information to ``stdout`` instead of ``stderr`` (for issue list see :ref:`other-improvements-3.4` above). Changes in the Python API -------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
4eed3d35-91df-42ff-bdf3-120a02d0d11f
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,482
supabase-export-v2
0331b0b8335aa8b5
interact with this module, but it can be used to manually bootstrap ``pip`` if the automated bootstrapping into an installation or virtual environment was declined. :mod:`ensurepip` includes a bundled copy of ``pip``, up-to-date as of the first release candidate of the release of CPython with which it ships (this appli...
trusted_official_docs
CPython Docs
interact with this module, but it can be used to manually bootstrap ``pip`` if the automated bootstrapping into an installation or virtual environment was declined. :mod:`ensurepip` includes a bundled copy of ``pip``, up-to-date as of the first release candidate of the release of CPython with which it ships (this appli...
interact with this module, but it can be used to manually bootstrap ``pip`` if the automated bootstrapping into an installation or virtual environment was declined. :mod:`ensurepip` includes a bundled copy of ``pip``, up-to-date as of the first release candidate of the release of CPython with which it ships (this appli...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f0dd398-24a6-421b-85d7-280e08808f1d
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,501
supabase-export-v2
95c99c42c8c80c86
The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to trace memory blocks allocated by Python. It provides the following information: * Trace where an object was allocated * Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated m...
trusted_official_docs
CPython Docs
The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to trace memory blocks allocated by Python. It provides the following information: * Trace where an object was allocated * Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated m...
The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to trace memory blocks allocated by Python. It provides the following information: * Trace where an object was allocated * Statistics on allocated memory blocks per filename and per line number: total size, number and average size of allocated m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5035496d-a7eb-49a4-869d-bc2f8d94d1b0
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,764
supabase-export-v2
b9b37832b19c5906
PEP 436: Argument Clinic ------------------------ "Argument Clinic" (:pep:`436`) is now part of the CPython build process and can be used to simplify the process of defining and maintaining accurate signatures for builtins and standard library extension modules implemented in C.
trusted_official_docs
CPython Docs
PEP 436: Argument Clinic ------------------------ "Argument Clinic" (:pep:`436`) is now part of the CPython build process and can be used to simplify the process of defining and maintaining accurate signatures for builtins and standard library extension modules implemented in C.
PEP 436: Argument Clinic ------------------------ "Argument Clinic" (:pep:`436`) is now part of the CPython build process and can be used to simplify the process of defining and maintaining accurate signatures for builtins and standard library extension modules implemented in C.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5235d9dd-f3e9-4557-bffc-f27ca7c8fc31
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,773
supabase-export-v2
d4d32e01a2fa82e3
the CPython interpreter to reliably force a particular encoding and error handler for the standard streams. (Contributed by Bastien Montagne and Nick Coghlan in :issue:`16129`.) * Most Python C APIs that don't mutate string arguments are now correctly marked as accepting ``const char *`` rather than ``char *``. (Contr...
trusted_official_docs
CPython Docs
the CPython interpreter to reliably force a particular encoding and error handler for the standard streams. (Contributed by Bastien Montagne and Nick Coghlan in :issue:`16129`.) * Most Python C APIs that don't mutate string arguments are now correctly marked as accepting ``const char *`` rather than ``char *``. (Contr...
the CPython interpreter to reliably force a particular encoding and error handler for the standard streams. (Contributed by Bastien Montagne and Nick Coghlan in :issue:`16129`.) * Most Python C APIs that don't mutate string arguments are now correctly marked as accepting ``const char *`` rather than ``char *``. (Contr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
529d44ce-f312-440e-bf1f-3263a9211a78
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,506
supabase-export-v2
adca7fd1f8ea910e
:func:`abc.get_cache_token` can be used to know when to invalidate caches that are affected by changes in the object graph. (Contributed by Łukasz Langa in :issue:`16832`.) New class :class:`~abc.ABC` has :class:`~abc.ABCMeta` as its meta class. Using ``ABC`` as a base class has essentially the same effect as specifyin...
trusted_official_docs
CPython Docs
:func:`abc.get_cache_token` can be used to know when to invalidate caches that are affected by changes in the object graph. (Contributed by Łukasz Langa in :issue:`16832`.) New class :class:`~abc.ABC` has :class:`~abc.ABCMeta` as its meta class. Using ``ABC`` as a base class has essentially the same effect as specifyin...
:func:`abc.get_cache_token` can be used to know when to invalidate caches that are affected by changes in the object graph. (Contributed by Łukasz Langa in :issue:`16832`.) New class :class:`~abc.ABC` has :class:`~abc.ABCMeta` as its meta class. Using ``ABC`` as a base class has essentially the same effect as specifyin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
53bf5148-2dbc-4b2d-92bc-7cffb0982e60
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,571
supabase-export-v2
ed2c84c1fe61efbc
parameter to both the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now accepts any type supported by the :mod:`hashlib` module. (Contributed by Jonas Borgström in :issue:`18240`.) The *digestmod* argument to the :func:`hmac.new` function may now be any hash digest name recognized by :mod:`hashlib...
trusted_official_docs
CPython Docs
parameter to both the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now accepts any type supported by the :mod:`hashlib` module. (Contributed by Jonas Borgström in :issue:`18240`.) The *digestmod* argument to the :func:`hmac.new` function may now be any hash digest name recognized by :mod:`hashlib...
parameter to both the :func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now accepts any type supported by the :mod:`hashlib` module. (Contributed by Jonas Borgström in :issue:`18240`.) The *digestmod* argument to the :func:`hmac.new` function may now be any hash digest name recognized by :mod:`hashlib...
python, official-docs, cpython, P0
Local_Trusted_Corpus
55bc6bb9-7759-4c92-a873-367dcdb18663
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,533
supabase-export-v2
266f1250dbb974a1
The :mod:`dis` module is now built around an :class:`~dis.Instruction` class that provides object oriented access to the details of each individual bytecode operation. A new method, :func:`~dis.get_instructions`, provides an iterator that emits the Instruction stream for a given piece of Python code. Thus it is now pos...
trusted_official_docs
CPython Docs
The :mod:`dis` module is now built around an :class:`~dis.Instruction` class that provides object oriented access to the details of each individual bytecode operation. A new method, :func:`~dis.get_instructions`, provides an iterator that emits the Instruction stream for a given piece of Python code. Thus it is now pos...
The :mod:`dis` module is now built around an :class:`~dis.Instruction` class that provides object oriented access to the details of each individual bytecode operation. A new method, :func:`~dis.get_instructions`, provides an iterator that emits the Instruction stream for a given piece of Python code. Thus it is now pos...
python, official-docs, cpython, P0
Local_Trusted_Corpus
566edc58-e584-40e6-a851-08e1fb905ac0
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,453
supabase-export-v2
8dd805d5f0a9bbcb
>>> from codecs import encode, decode >>> encode(b"hello", "hex") b'68656c6c6f' >>> decode(b"68656c6c6f", "hex") b'hello' The binary and text transforms provided in the standard library are detailed in :ref:`binary-transforms` and :ref:`text-transforms`.
trusted_official_docs
CPython Docs
>>> from codecs import encode, decode >>> encode(b"hello", "hex") b'68656c6c6f' >>> decode(b"68656c6c6f", "hex") b'hello' The binary and text transforms provided in the standard library are detailed in :ref:`binary-transforms` and :ref:`text-transforms`.
>>> from codecs import encode, decode >>> encode(b"hello", "hex") b'68656c6c6f' >>> decode(b"68656c6c6f", "hex") b'hello' The binary and text transforms provided in the standard library are detailed in :ref:`binary-transforms` and :ref:`text-transforms`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
57f4d9eb-e5a0-4e1f-84dc-40e60a95c119
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,873
supabase-export-v2
93ea98699114924d
erroneously accepts :class:`float` values for the *base* parameter. It is unlikely anyone was doing this, but if so, it will now raise a :exc:`TypeError` (:issue:`16772`). * Defaults for keyword-only arguments are now evaluated *after* defaults for regular keyword arguments, instead of before. Hopefully no one wrote a...
trusted_official_docs
CPython Docs
erroneously accepts :class:`float` values for the *base* parameter. It is unlikely anyone was doing this, but if so, it will now raise a :exc:`TypeError` (:issue:`16772`). * Defaults for keyword-only arguments are now evaluated *after* defaults for regular keyword arguments, instead of before. Hopefully no one wrote a...
erroneously accepts :class:`float` values for the *base* parameter. It is unlikely anyone was doing this, but if so, it will now raise a :exc:`TypeError` (:issue:`16772`). * Defaults for keyword-only arguments are now evaluated *after* defaults for regular keyword arguments, instead of before. Hopefully no one wrote a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
59fd0267-99f4-4f11-aa44-c7b55e6a7031
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,733
supabase-export-v2
b6f561339324153d
The :meth:`~wave.Wave_read.getparams` method now returns a namedtuple rather than a plain tuple. (Contributed by Claudiu Popa in :issue:`17487`.) :meth:`wave.open` now supports the context management protocol. (Contributed by Claudiu Popa in :issue:`17616`.)
trusted_official_docs
CPython Docs
The :meth:`~wave.Wave_read.getparams` method now returns a namedtuple rather than a plain tuple. (Contributed by Claudiu Popa in :issue:`17487`.) :meth:`wave.open` now supports the context management protocol. (Contributed by Claudiu Popa in :issue:`17616`.)
The :meth:`~wave.Wave_read.getparams` method now returns a namedtuple rather than a plain tuple. (Contributed by Claudiu Popa in :issue:`17487`.) :meth:`wave.open` now supports the context management protocol. (Contributed by Claudiu Popa in :issue:`17616`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
5b375870-95ff-44c3-82e0-05523fb0fffe
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,695
supabase-export-v2
4deb32da5d88ff36
The :meth:`!getparams` method now returns a namedtuple rather than a plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.) :meth:`!sunau.open` now supports the context management protocol: when used in a :keyword:`with` block, the ``close`` method of the returned object will be called automatically at the end o...
trusted_official_docs
CPython Docs
The :meth:`!getparams` method now returns a namedtuple rather than a plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.) :meth:`!sunau.open` now supports the context management protocol: when used in a :keyword:`with` block, the ``close`` method of the returned object will be called automatically at the end o...
The :meth:`!getparams` method now returns a namedtuple rather than a plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.) :meth:`!sunau.open` now supports the context management protocol: when used in a :keyword:`with` block, the ``close`` method of the returned object will be called automatically at the end o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5b626ac0-31d4-43c5-b9e5-7c483c74c726
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,686
supabase-export-v2
39ab0fbe93eda39c
stat ---- The :mod:`stat` module is now backed by a C implementation in :mod:`!_stat`. A C implementation is required as most of the values aren't standardized and are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.)
trusted_official_docs
CPython Docs
stat ---- The :mod:`stat` module is now backed by a C implementation in :mod:`!_stat`. A C implementation is required as most of the values aren't standardized and are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.)
stat ---- The :mod:`stat` module is now backed by a C implementation in :mod:`!_stat`. A C implementation is required as most of the values aren't standardized and are platform-dependent. (Contributed by Christian Heimes in :issue:`11016`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bebe7dd-0121-4f06-a2d7-b4b1eab305fe
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,598
supabase-export-v2
b201ee922be4c207
ipaddress --------- :mod:`ipaddress` was added to the standard library in Python 3.3 as a :term:`provisional API`. With the release of Python 3.4, this qualification has been removed: :mod:`ipaddress` is now considered a stable API, covered by the normal standard library requirements to maintain backwards compatibility...
trusted_official_docs
CPython Docs
ipaddress --------- :mod:`ipaddress` was added to the standard library in Python 3.3 as a :term:`provisional API`. With the release of Python 3.4, this qualification has been removed: :mod:`ipaddress` is now considered a stable API, covered by the normal standard library requirements to maintain backwards compatibility...
ipaddress --------- :mod:`ipaddress` was added to the standard library in Python 3.3 as a :term:`provisional API`. With the release of Python 3.4, this qualification has been removed: :mod:`ipaddress` is now considered a stable API, covered by the normal standard library requirements to maintain backwards compatibility...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bfa0258-dbea-46d8-b2ff-dc17c06e34b9
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,589
supabase-export-v2
38c884dcdb586082
conforms to the :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -m`` can now be used with namespace packages. (Contributed by Brett Cannon in :issue:`18058`.) :mod:`importlib.util` has a new function :func:`~importlib.util.decode_source` that decodes source from bytes using universal newline proces...
trusted_official_docs
CPython Docs
conforms to the :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -m`` can now be used with namespace packages. (Contributed by Brett Cannon in :issue:`18058`.) :mod:`importlib.util` has a new function :func:`~importlib.util.decode_source` that decodes source from bytes using universal newline proces...
conforms to the :class:`.InspectLoader` ABC, which means that ``runpy`` and ``python -m`` can now be used with namespace packages. (Contributed by Brett Cannon in :issue:`18058`.) :mod:`importlib.util` has a new function :func:`~importlib.util.decode_source` that decodes source from bytes using universal newline proces...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5da2d046-984a-4f2e-a7a9-8c3d100617cc
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,568
supabase-export-v2
8484b391ebc99635
A new :func:`hashlib.pbkdf2_hmac` function provides the `PKCS#5 password-based key derivation function 2 <https://en.wikipedia.org/wiki/PBKDF2>`_. (Contributed by Christian Heimes in :issue:`18582`.) The :attr:`~hashlib.hash.name` attribute of :mod:`hashlib` hash objects is now a formally supported interface. It has al...
trusted_official_docs
CPython Docs
A new :func:`hashlib.pbkdf2_hmac` function provides the `PKCS#5 password-based key derivation function 2 <https://en.wikipedia.org/wiki/PBKDF2>`_. (Contributed by Christian Heimes in :issue:`18582`.) The :attr:`~hashlib.hash.name` attribute of :mod:`hashlib` hash objects is now a formally supported interface. It has al...
A new :func:`hashlib.pbkdf2_hmac` function provides the `PKCS#5 password-based key derivation function 2 <https://en.wikipedia.org/wiki/PBKDF2>`_. (Contributed by Christian Heimes in :issue:`18582`.) The :attr:`~hashlib.hash.name` attribute of :mod:`hashlib` hash objects is now a formally supported interface. It has al...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5dfd3a35-da1a-443b-ad5f-bdc9a946e640
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,380
supabase-export-v2
6419048f1089b505
.. Rules for maintenance: * Anyone can add text to this document, but the maintainer reserves the right to rewrite any additions. In particular, for obscure or esoteric features, the maintainer may reduce any addition to a simple reference to the new documentation rather than explaining the feature inline.
trusted_official_docs
CPython Docs
.. Rules for maintenance: * Anyone can add text to this document, but the maintainer reserves the right to rewrite any additions. In particular, for obscure or esoteric features, the maintainer may reduce any addition to a simple reference to the new documentation rather than explaining the feature inline.
.. Rules for maintenance: * Anyone can add text to this document, but the maintainer reserves the right to rewrite any additions. In particular, for obscure or esoteric features, the maintainer may reduce any addition to a simple reference to the new documentation rather than explaining the feature inline.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e638f2d-830c-4022-b340-73ae1fdc68d5
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,876
supabase-export-v2
55dd9c074bef7c9e
* Parameter names in ``__annotations__`` dicts are now mangled properly, similarly to :attr:`~function.__kwdefaults__`. (Contributed by Yury Selivanov in :issue:`20625`.) * :attr:`hashlib.hash.name` now always returns the identifier in lower case. Previously some builtin hashes had uppercase names, but now that it is a...
trusted_official_docs
CPython Docs
* Parameter names in ``__annotations__`` dicts are now mangled properly, similarly to :attr:`~function.__kwdefaults__`. (Contributed by Yury Selivanov in :issue:`20625`.) * :attr:`hashlib.hash.name` now always returns the identifier in lower case. Previously some builtin hashes had uppercase names, but now that it is a...
* Parameter names in ``__annotations__`` dicts are now mangled properly, similarly to :attr:`~function.__kwdefaults__`. (Contributed by Yury Selivanov in :issue:`20625`.) * :attr:`hashlib.hash.name` now always returns the identifier in lower case. Previously some builtin hashes had uppercase names, but now that it is a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ed68afc-2faa-4ab0-8187-c8b5afdf49c9
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,856
supabase-export-v2
24b6f15691d99198
to properly support reloading. If this is not desired then you will need to set these attributes manually. You can use :func:`!importlib.util.module_to_load` for module management. * Import now resets relevant attributes (e.g. ``__name__``, ``__loader__``, ``__package__``, ``__file__``, ``__cached__``) unconditionally...
trusted_official_docs
CPython Docs
to properly support reloading. If this is not desired then you will need to set these attributes manually. You can use :func:`!importlib.util.module_to_load` for module management. * Import now resets relevant attributes (e.g. ``__name__``, ``__loader__``, ``__package__``, ``__file__``, ``__cached__``) unconditionally...
to properly support reloading. If this is not desired then you will need to set these attributes manually. You can use :func:`!importlib.util.module_to_load` for module management. * Import now resets relevant attributes (e.g. ``__name__``, ``__loader__``, ``__package__``, ``__file__``, ``__cached__``) unconditionally...
python, official-docs, cpython, P0
Local_Trusted_Corpus
60b8c7ee-8687-4193-9acb-6c16d63978a1
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,886
supabase-export-v2
934cedabaced4f8e
* If you use ``pyvenv`` in a script and desire that pip *not* be installed, you must add ``--without-pip`` to your command invocation. * The default behavior of :func:`json.dump` and :func:`json.dumps` when an indent is specified has changed: it no longer produces trailing spaces after the item separating commas at t...
trusted_official_docs
CPython Docs
* If you use ``pyvenv`` in a script and desire that pip *not* be installed, you must add ``--without-pip`` to your command invocation. * The default behavior of :func:`json.dump` and :func:`json.dumps` when an indent is specified has changed: it no longer produces trailing spaces after the item separating commas at t...
* If you use ``pyvenv`` in a script and desire that pip *not* be installed, you must add ``--without-pip`` to your command invocation. * The default behavior of :func:`json.dump` and :func:`json.dumps` when an indent is specified has changed: it no longer produces trailing spaces after the item separating commas at t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
60de270d-cada-4918-b363-d3faf90416cc
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,537
supabase-export-v2
00254f056e5a0466
to produce :class:`~dis.Instruction` objects. But it also has a :mod:`~dis.Bytecode.dis` method, equivalent to calling :mod:`~dis.dis` on the constructor argument, but returned as a multi-line string:: >>> bytecode = dis.Bytecode(lambda x: x + 1, current_offset=3) >>> for instr in bytecode: ... print('{} ({})'.format...
trusted_official_docs
CPython Docs
to produce :class:`~dis.Instruction` objects. But it also has a :mod:`~dis.Bytecode.dis` method, equivalent to calling :mod:`~dis.dis` on the constructor argument, but returned as a multi-line string:: >>> bytecode = dis.Bytecode(lambda x: x + 1, current_offset=3) >>> for instr in bytecode: ... print('{} ({})'.format...
to produce :class:`~dis.Instruction` objects. But it also has a :mod:`~dis.Bytecode.dis` method, equivalent to calling :mod:`~dis.dis` on the constructor argument, but returned as a multi-line string:: >>> bytecode = dis.Bytecode(lambda x: x + 1, current_offset=3) >>> for instr in bytecode: ... print('{} ({})'.format...
python, official-docs, cpython, P0
Local_Trusted_Corpus
610857e1-0c57-4b67-b4d1-18fc3dc09ed0
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,821
supabase-export-v2
5011265dc9990c12
* The :mod:`sysconfig` key ``SO`` is deprecated, it has been replaced by ``EXT_SUFFIX``. * The ``U`` mode accepted by various ``open`` functions is deprecated. In Python3 it does not do anything useful, and should be replaced by appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline* argument.
trusted_official_docs
CPython Docs
* The :mod:`sysconfig` key ``SO`` is deprecated, it has been replaced by ``EXT_SUFFIX``. * The ``U`` mode accepted by various ``open`` functions is deprecated. In Python3 it does not do anything useful, and should be replaced by appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline* argument.
* The :mod:`sysconfig` key ``SO`` is deprecated, it has been replaced by ``EXT_SUFFIX``. * The ``U`` mode accepted by various ``open`` functions is deprecated. In Python3 it does not do anything useful, and should be replaced by appropriate uses of :class:`io.TextIOWrapper` (if needed) and its *newline* argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6363fe0a-f7f1-4d4c-9638-ef06d1e137fc
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,548
supabase-export-v2
ef69b7ce362eb99c
it, meaning that ``bytes(mymsg)`` will now produce the intuitive result: a bytes object containing the fully formatted message. (Contributed by R. David Murray in :issue:`18600`.) The :meth:`.Message.set_param` message now accepts a *replace* keyword argument. When specified, the associated header will be updated witho...
trusted_official_docs
CPython Docs
it, meaning that ``bytes(mymsg)`` will now produce the intuitive result: a bytes object containing the fully formatted message. (Contributed by R. David Murray in :issue:`18600`.) The :meth:`.Message.set_param` message now accepts a *replace* keyword argument. When specified, the associated header will be updated witho...
it, meaning that ``bytes(mymsg)`` will now produce the intuitive result: a bytes object containing the fully formatted message. (Contributed by R. David Murray in :issue:`18600`.) The :meth:`.Message.set_param` message now accepts a *replace* keyword argument. When specified, the associated header will be updated witho...
python, official-docs, cpython, P0
Local_Trusted_Corpus
63ebc5d2-17e5-4aa1-9080-50194477bcfe
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,845
supabase-export-v2
15ec22e7d2614473
removed, along with the private :mod:`platform` functions ``_mac_ver_lookup``, ``_mac_ver_gstalt``, and ``_bcd2str``, which would only have ever been called on badly broken OSX systems (see :issue:`18393`). * The hardcoded copies of certain :mod:`stat` constants that were included in the :mod:`tarfile` module namespac...
trusted_official_docs
CPython Docs
removed, along with the private :mod:`platform` functions ``_mac_ver_lookup``, ``_mac_ver_gstalt``, and ``_bcd2str``, which would only have ever been called on badly broken OSX systems (see :issue:`18393`). * The hardcoded copies of certain :mod:`stat` constants that were included in the :mod:`tarfile` module namespac...
removed, along with the private :mod:`platform` functions ``_mac_ver_lookup``, ``_mac_ver_gstalt``, and ``_bcd2str``, which would only have ever been called on badly broken OSX systems (see :issue:`18393`). * The hardcoded copies of certain :mod:`stat` constants that were included in the :mod:`tarfile` module namespac...
python, official-docs, cpython, P0
Local_Trusted_Corpus
641100e1-0f52-48c2-9ac1-240d39bd7f23
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,766
supabase-export-v2
ab58756736cbb3f9
Some standard library extension modules have been converted to use Argument Clinic in Python 3.4, and :mod:`pydoc` and :mod:`inspect` have been updated accordingly. It is expected that signature metadata for programmatic introspection will be added to additional callables implemented in C as part of Python 3.4 maintena...
trusted_official_docs
CPython Docs
Some standard library extension modules have been converted to use Argument Clinic in Python 3.4, and :mod:`pydoc` and :mod:`inspect` have been updated accordingly. It is expected that signature metadata for programmatic introspection will be added to additional callables implemented in C as part of Python 3.4 maintena...
Some standard library extension modules have been converted to use Argument Clinic in Python 3.4, and :mod:`pydoc` and :mod:`inspect` have been updated accordingly. It is expected that signature metadata for programmatic introspection will be added to additional callables implemented in C as part of Python 3.4 maintena...
python, official-docs, cpython, P0
Local_Trusted_Corpus
66083a09-a03e-4ce3-aa3a-eaa1eed4efea
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,474
supabase-export-v2
4959285b14d7f44e
been modified and improved in several cases as a result of the introduction of Argument Clinic and other changes to the :mod:`inspect` and :mod:`pydoc` modules. * :meth:`~object.__length_hint__` is now part of the formal language specification (see :pep:`424`). (Contributed by Armin Ronacher in :issue:`16148`.)
trusted_official_docs
CPython Docs
been modified and improved in several cases as a result of the introduction of Argument Clinic and other changes to the :mod:`inspect` and :mod:`pydoc` modules. * :meth:`~object.__length_hint__` is now part of the formal language specification (see :pep:`424`). (Contributed by Armin Ronacher in :issue:`16148`.)
been modified and improved in several cases as a result of the introduction of Argument Clinic and other changes to the :mod:`inspect` and :mod:`pydoc` modules. * :meth:`~object.__length_hint__` is now part of the formal language specification (see :pep:`424`). (Contributed by Armin Ronacher in :issue:`16148`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
66218d71-0597-4010-b357-5d80b16f3e30
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,865
supabase-export-v2
9626c2a82b3db129
them positionally rather than by keyword. If you've been paying attention to deprecation warnings your code should already be specifying any additional arguments via keywords. * Strings between ``from __future__ import ...`` statements now *always* raise a :exc:`SyntaxError`. Previously if there was no leading docstri...
trusted_official_docs
CPython Docs
them positionally rather than by keyword. If you've been paying attention to deprecation warnings your code should already be specifying any additional arguments via keywords. * Strings between ``from __future__ import ...`` statements now *always* raise a :exc:`SyntaxError`. Previously if there was no leading docstri...
them positionally rather than by keyword. If you've been paying attention to deprecation warnings your code should already be specifying any additional arguments via keywords. * Strings between ``from __future__ import ...`` statements now *always* raise a :exc:`SyntaxError`. Previously if there was no leading docstri...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6645d34e-b48c-494e-9f40-958b18db721b
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,722
supabase-export-v2
8cc548067662c03f
at the module level in the test file), it is now reported as a skip instead of an error. (Contributed by Zach Ware in :issue:`16935`.) :meth:`~unittest.TestLoader.discover` now sorts the discovered files to provide consistent test ordering. (Contributed by Martin Melin and Jeff Ramnani in :issue:`16709`.)
trusted_official_docs
CPython Docs
at the module level in the test file), it is now reported as a skip instead of an error. (Contributed by Zach Ware in :issue:`16935`.) :meth:`~unittest.TestLoader.discover` now sorts the discovered files to provide consistent test ordering. (Contributed by Martin Melin and Jeff Ramnani in :issue:`16709`.)
at the module level in the test file), it is now reported as a skip instead of an error. (Contributed by Zach Ware in :issue:`16935`.) :meth:`~unittest.TestLoader.discover` now sorts the discovered files to provide consistent test ordering. (Contributed by Martin Melin and Jeff Ramnani in :issue:`16709`.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
6688888c-1c23-4012-bdb5-da6897cf6262
CPython Docs
file://datasets/cpython/Doc/whatsnew/3.4.rst
unknown
3999080c-bd6c-4248-a716-476c0a78c442
62,442
supabase-export-v2
d24ec6ab3e05b4ce
"hello".encode("rot13") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'rot13' is not a text encoding; use codecs.encode() to handle arbitrary codecs >>> open("foo.txt", encoding="hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is n...
trusted_official_docs
CPython Docs
"hello".encode("rot13") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'rot13' is not a text encoding; use codecs.encode() to handle arbitrary codecs >>> open("foo.txt", encoding="hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is n...
"hello".encode("rot13") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'rot13' is not a text encoding; use codecs.encode() to handle arbitrary codecs >>> open("foo.txt", encoding="hex") Traceback (most recent call last): File "<stdin>", line 1, in <module> LookupError: 'hex' is n...
python, official-docs, cpython, P0
Local_Trusted_Corpus