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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d94a120-30d8-484e-bab6-c17dc792fc7b | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,002 | supabase-export-v2 | ec718b6b00097b91 | pydoc -----
The documentation string is now shown not only for class, function,
method etc, but for any object that has its own :attr:`~definition.__doc__`
attribute. (Contributed by Serhiy Storchaka in :issue:`40257`.) | trusted_official_docs | CPython Docs | pydoc -----
The documentation string is now shown not only for class, function,
method etc, but for any object that has its own :attr:`~definition.__doc__`
attribute. (Contributed by Serhiy Storchaka in :issue:`40257`.) | pydoc -----
The documentation string is now shown not only for class, function,
method etc, but for any object that has its own :attr:`~definition.__doc__`
attribute. (Contributed by Serhiy Storchaka in :issue:`40257`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9ece1b90-a48e-42f1-881a-3521b914f93d | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,874 | supabase-export-v2 | f29b03ca989d0c7e | You should check for DeprecationWarning in your code ====================================================
When Python 2.7 was still supported, a lot of functionality in Python 3
was kept for backward compatibility with Python 2.7. With the end of Python
2 support, these backward compatibility layers have been removed, ... | trusted_official_docs | CPython Docs | You should check for DeprecationWarning in your code ====================================================
When Python 2.7 was still supported, a lot of functionality in Python 3
was kept for backward compatibility with Python 2.7. With the end of Python
2 support, these backward compatibility layers have been removed, ... | You should check for DeprecationWarning in your code ====================================================
When Python 2.7 was still supported, a lot of functionality in Python 3
was kept for backward compatibility with Python 2.7. With the end of Python
2 support, these backward compatibility layers have been removed, ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9efcf338-6785-49bc-a719-c50b21a14a82 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,063 | supabase-export-v2 | 020ccc4246cf1c11 | passing of coroutine objects to :func:`asyncio.wait` has been deprecated and will be removed in version 3.11. (Contributed by Yury Selivanov and Kyle Stanley in :issue:`34790`.)
* binhex4 and hexbin4 standards are now deprecated. The :mod:`!binhex` module
and the following :mod:`binascii` functions are now deprecated: | trusted_official_docs | CPython Docs | passing of coroutine objects to :func:`asyncio.wait` has been deprecated and will be removed in version 3.11. (Contributed by Yury Selivanov and Kyle Stanley in :issue:`34790`.)
* binhex4 and hexbin4 standards are now deprecated. The :mod:`!binhex` module
and the following :mod:`binascii` functions are now deprecated: | passing of coroutine objects to :func:`asyncio.wait` has been deprecated and will be removed in version 3.11. (Contributed by Yury Selivanov and Kyle Stanley in :issue:`34790`.)
* binhex4 and hexbin4 standards are now deprecated. The :mod:`!binhex` module
and the following :mod:`binascii` functions are now deprecated: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9f558588-1a19-4339-a5d8-9724e9246d70 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,133 | supabase-export-v2 | 50e967b2de5ec777 | * The ``COUNT_ALLOCS`` special build macro has been removed. (Contributed by Victor Stinner in :issue:`39489`.)
* On non-Windows platforms, the :c:func:`!setenv` and :c:func:`!unsetenv`
functions are now required to build Python. (Contributed by Victor Stinner in :issue:`39395`.) | trusted_official_docs | CPython Docs | * The ``COUNT_ALLOCS`` special build macro has been removed. (Contributed by Victor Stinner in :issue:`39489`.)
* On non-Windows platforms, the :c:func:`!setenv` and :c:func:`!unsetenv`
functions are now required to build Python. (Contributed by Victor Stinner in :issue:`39395`.) | * The ``COUNT_ALLOCS`` special build macro has been removed. (Contributed by Victor Stinner in :issue:`39489`.)
* On non-Windows platforms, the :c:func:`!setenv` and :c:func:`!unsetenv`
functions are now required to build Python. (Contributed by Victor Stinner in :issue:`39395`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a0981b24-ba61-4c96-9343-37fdcf623bf5 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,156 | supabase-export-v2 | 38079e756571f12e | (:c:data:`Py_mod_exec` function). More precisely, these functions are not called if :c:member:`~PyModuleDef.m_size` is greater than 0 and the module state (as returned by :c:func:`PyModule_GetState`) is ``NULL``.
Extension modules without module state (``m_size <= 0``) are not affected. | trusted_official_docs | CPython Docs | (:c:data:`Py_mod_exec` function). More precisely, these functions are not called if :c:member:`~PyModuleDef.m_size` is greater than 0 and the module state (as returned by :c:func:`PyModule_GetState`) is ``NULL``.
Extension modules without module state (``m_size <= 0``) are not affected. | (:c:data:`Py_mod_exec` function). More precisely, these functions are not called if :c:member:`~PyModuleDef.m_size` is greater than 0 and the module state (as returned by :c:func:`PyModule_GetState`) is ``NULL``.
Extension modules without module state (``m_size <= 0``) are not affected. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a146d399-bfdb-4263-91c4-34500d430007 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,069 | supabase-export-v2 | bfdc10b6b95aacf4 | be removed in Python 3.11. Calling :c:func:`!PyEval_InitThreads` now does nothing. The :term:`GIL` is initialized by :c:func:`Py_Initialize` since Python 3.7. (Contributed by Victor Stinner in :issue:`39877`.)
* Passing ``None`` as the first argument to the :func:`shlex.split` function
has been deprecated. (Contribute... | trusted_official_docs | CPython Docs | be removed in Python 3.11. Calling :c:func:`!PyEval_InitThreads` now does nothing. The :term:`GIL` is initialized by :c:func:`Py_Initialize` since Python 3.7. (Contributed by Victor Stinner in :issue:`39877`.)
* Passing ``None`` as the first argument to the :func:`shlex.split` function
has been deprecated. (Contribute... | be removed in Python 3.11. Calling :c:func:`!PyEval_InitThreads` now does nothing. The :term:`GIL` is initialized by :c:func:`Py_Initialize` since Python 3.7. (Contributed by Victor Stinner in :issue:`39877`.)
* Passing ``None`` as the first argument to the :func:`shlex.split` function
has been deprecated. (Contribute... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a19be006-dda2-49ca-ac97-297de5f953b5 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,118 | supabase-export-v2 | 3cc7121620c7789c | Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Py_VISIT(Py_TYPE(self)); #endif }
If your traverse function delegates to ``tp_traverse`` of its base class
(or another type), ensure that ``Py_TYPE(self)`` is visited only once. Note t... | trusted_official_docs | CPython Docs | Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Py_VISIT(Py_TYPE(self)); #endif }
If your traverse function delegates to ``tp_traverse`` of its base class
(or another type), ensure that ``Py_TYPE(self)`` is visited only once. Note t... | Rest of the traverse function #if PY_VERSION_HEX >= 0x03090000 // This was not needed before Python 3.9 (Python issue 35810 and 40217) Py_VISIT(Py_TYPE(self)); #endif }
If your traverse function delegates to ``tp_traverse`` of its base class
(or another type), ensure that ``Py_TYPE(self)`` is visited only once. Note t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a2112286-bb9a-411a-b731-0bcdefe14c36 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,131 | supabase-export-v2 | e0ba02fd120a79a6 | Build Changes =============
* Added ``--with-platlibdir`` option to the ``configure`` script: name of the
platform-specific library directory, stored in the new :data:`sys.platlibdir`
attribute. See :data:`sys.platlibdir` attribute for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis
... | trusted_official_docs | CPython Docs | Build Changes =============
* Added ``--with-platlibdir`` option to the ``configure`` script: name of the
platform-specific library directory, stored in the new :data:`sys.platlibdir`
attribute. See :data:`sys.platlibdir` attribute for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis
... | Build Changes =============
* Added ``--with-platlibdir`` option to the ``configure`` script: name of the
platform-specific library directory, stored in the new :data:`sys.platlibdir`
attribute. See :data:`sys.platlibdir` attribute for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a38be078-e836-4d6e-98e1-3b1d04aca00e | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,169 | supabase-export-v2 | 52e7fb591e58a7ad | * :c:func:`PyObject_CheckBuffer` macro was converted to a function: the macro accessed directly the :c:member:`PyTypeObject.tp_as_buffer` member.
* :c:func:`PyIndex_Check` is now always declared as an opaque function to hide
implementation details: removed the ``PyIndex_Check()`` macro. The macro accessed
directly th... | trusted_official_docs | CPython Docs | * :c:func:`PyObject_CheckBuffer` macro was converted to a function: the macro accessed directly the :c:member:`PyTypeObject.tp_as_buffer` member.
* :c:func:`PyIndex_Check` is now always declared as an opaque function to hide
implementation details: removed the ``PyIndex_Check()`` macro. The macro accessed
directly th... | * :c:func:`PyObject_CheckBuffer` macro was converted to a function: the macro accessed directly the :c:member:`PyTypeObject.tp_as_buffer` member.
* :c:func:`PyIndex_Check` is now always declared as an opaque function to hide
implementation details: removed the ``PyIndex_Check()`` macro. The macro accessed
directly th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a60f44eb-6123-4c8f-95d3-29d71558619e | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,034 | supabase-export-v2 | d94eaecac0b3c265 | (Contributed by Serhiy Storchaka in :issue:`32856`.)
* Optimized signal handling in multithreaded applications. If a thread different
than the main thread gets a signal, the bytecode evaluation loop is no longer
interrupted at each bytecode instruction to check for pending signals which
cannot be handled. Only the m... | trusted_official_docs | CPython Docs | (Contributed by Serhiy Storchaka in :issue:`32856`.)
* Optimized signal handling in multithreaded applications. If a thread different
than the main thread gets a signal, the bytecode evaluation loop is no longer
interrupted at each bytecode instruction to check for pending signals which
cannot be handled. Only the m... | (Contributed by Serhiy Storchaka in :issue:`32856`.)
* Optimized signal handling in multithreaded applications. If a thread different
than the main thread gets a signal, the bytecode evaluation loop is no longer
interrupted at each bytecode instruction to check for pending signals which
cannot be handled. Only the m... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a77aa465-b885-46d0-9c53-f827f33a9f7a | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,879 | supabase-export-v2 | 41917679f2e2f7f6 | to run your tests in the :ref:`Python Development Mode <devmode>` which helps to prepare your code to make it compatible with the next Python version.
Note: a number of pre-existing deprecations were removed in this version of
Python as well. Consult the :ref:`removed-in-python-39` section. | trusted_official_docs | CPython Docs | to run your tests in the :ref:`Python Development Mode <devmode>` which helps to prepare your code to make it compatible with the next Python version.
Note: a number of pre-existing deprecations were removed in this version of
Python as well. Consult the :ref:`removed-in-python-39` section. | to run your tests in the :ref:`Python Development Mode <devmode>` which helps to prepare your code to make it compatible with the next Python version.
Note: a number of pre-existing deprecations were removed in this version of
Python as well. Consult the :ref:`removed-in-python-39` section. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a832a64d-05a7-4080-97f8-d130eb2c83ce | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,077 | supabase-export-v2 | 92101da145c07cc6 | extensions are not supported or not enabled by NNTP server administrators. For ``xgtitle()``, please use :meth:`!nntplib.NNTP.descriptions` or :meth:`!nntplib.NNTP.description` instead. (Contributed by Donghee Na in :issue:`39366`.)
* :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been
removed.... | trusted_official_docs | CPython Docs | extensions are not supported or not enabled by NNTP server administrators. For ``xgtitle()``, please use :meth:`!nntplib.NNTP.descriptions` or :meth:`!nntplib.NNTP.description` instead. (Contributed by Donghee Na in :issue:`39366`.)
* :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been
removed.... | extensions are not supported or not enabled by NNTP server administrators. For ``xgtitle()``, please use :meth:`!nntplib.NNTP.descriptions` or :meth:`!nntplib.NNTP.description` instead. (Contributed by Donghee Na in :issue:`39366`.)
* :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been
removed.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aa2b0700-3b38-4cf0-9612-1ed50f95704b | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,132 | supabase-export-v2 | 3f4befde514e7fdc | stored in the new :data:`sys.platlibdir` attribute. See :data:`sys.platlibdir` attribute for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis and Victor Stinner in :issue:`1294959`.)
* The ``COUNT_ALLOCS`` special build macro has been removed. (Contributed by Victor Stinner in :issue:`39... | trusted_official_docs | CPython Docs | stored in the new :data:`sys.platlibdir` attribute. See :data:`sys.platlibdir` attribute for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis and Victor Stinner in :issue:`1294959`.)
* The ``COUNT_ALLOCS`` special build macro has been removed. (Contributed by Victor Stinner in :issue:`39... | stored in the new :data:`sys.platlibdir` attribute. See :data:`sys.platlibdir` attribute for more information. (Contributed by Jan Matějek, Matěj Cepl, Charalampos Stratakis and Victor Stinner in :issue:`1294959`.)
* The ``COUNT_ALLOCS`` special build macro has been removed. (Contributed by Victor Stinner in :issue:`39... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac500345-a071-4ea9-9a95-63e8cc84bee3 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,914 | supabase-export-v2 | 729bd4f366c7892c | >>> # Daylight saving time >>> when = dt.datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles")) >>> print(when) 2020-10-31 12:00:00-07:00 >>> when.tzname() 'PDT'
>>> # Standard time
>>> when += dt.timedelta(days=7)
>>> print(when)
2020-11-07 12:00:00-08:00
>>> print(when.tzname())
PST | trusted_official_docs | CPython Docs | >>> # Daylight saving time >>> when = dt.datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles")) >>> print(when) 2020-10-31 12:00:00-07:00 >>> when.tzname() 'PDT'
>>> # Standard time
>>> when += dt.timedelta(days=7)
>>> print(when)
2020-11-07 12:00:00-08:00
>>> print(when.tzname())
PST | >>> # Daylight saving time >>> when = dt.datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles")) >>> print(when) 2020-10-31 12:00:00-07:00 >>> when.tzname() 'PDT'
>>> # Standard time
>>> when += dt.timedelta(days=7)
>>> print(when)
2020-11-07 12:00:00-08:00
>>> print(when.tzname())
PST | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
acb1b8d1-7caf-486f-859b-87ec7e7ce170 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,127 | supabase-export-v2 | 299456b8c55d979b | handling the :keyword:`assert` statement. Previously, the assert statement would not work correctly if the :exc:`AssertionError` exception was being shadowed. (Contributed by Zackery Spytz in :issue:`34880`.)
* The :opcode:`COMPARE_OP` opcode was split into four distinct instructions: | trusted_official_docs | CPython Docs | handling the :keyword:`assert` statement. Previously, the assert statement would not work correctly if the :exc:`AssertionError` exception was being shadowed. (Contributed by Zackery Spytz in :issue:`34880`.)
* The :opcode:`COMPARE_OP` opcode was split into four distinct instructions: | handling the :keyword:`assert` statement. Previously, the assert statement would not work correctly if the :exc:`AssertionError` exception was being shadowed. (Contributed by Zackery Spytz in :issue:`34880`.)
* The :opcode:`COMPARE_OP` opcode was split into four distinct instructions: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
acdfa99a-ce43-4729-a153-a6da78d0e7c3 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,059 | supabase-export-v2 | 2caffb485efd1de0 | the result of incorrect rich comparator implementations. It will be made a :exc:`TypeError` in a future version of Python. (Contributed by Josh Rosenberg in :issue:`35712`.)
* The :mod:`random` module currently accepts any hashable type as a
possible seed value. Unfortunately, some of those types are not
guaranteed t... | trusted_official_docs | CPython Docs | the result of incorrect rich comparator implementations. It will be made a :exc:`TypeError` in a future version of Python. (Contributed by Josh Rosenberg in :issue:`35712`.)
* The :mod:`random` module currently accepts any hashable type as a
possible seed value. Unfortunately, some of those types are not
guaranteed t... | the result of incorrect rich comparator implementations. It will be made a :exc:`TypeError` in a future version of Python. (Contributed by Josh Rosenberg in :issue:`35712`.)
* The :mod:`random` module currently accepts any hashable type as a
possible seed value. Unfortunately, some of those types are not
guaranteed t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ad7b1b45-f951-4e1d-b11f-32131286b9d2 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,140 | supabase-export-v2 | 9de426067ef4d087 | New Features ------------
* :pep:`573`: Added :c:func:`PyType_FromModuleAndSpec` to associate
a module with a class; :c:func:`PyType_GetModule` and
:c:func:`PyType_GetModuleState` to retrieve the module and its state; and
:c:type:`PyCMethod` and :c:macro:`METH_METHOD` to allow a method to
access the class it was de... | trusted_official_docs | CPython Docs | New Features ------------
* :pep:`573`: Added :c:func:`PyType_FromModuleAndSpec` to associate
a module with a class; :c:func:`PyType_GetModule` and
:c:func:`PyType_GetModuleState` to retrieve the module and its state; and
:c:type:`PyCMethod` and :c:macro:`METH_METHOD` to allow a method to
access the class it was de... | New Features ------------
* :pep:`573`: Added :c:func:`PyType_FromModuleAndSpec` to associate
a module with a class; :c:func:`PyType_GetModule` and
:c:func:`PyType_GetModuleState` to retrieve the module and its state; and
:c:type:`PyCMethod` and :c:macro:`METH_METHOD` to allow a method to
access the class it was de... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ae05bfae-3825-4f9e-8edb-fd7451838bb4 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,848 | supabase-export-v2 | 4388154f45168b88 | * The maintainer will go through Misc/NEWS periodically and add changes; it's therefore more important to add your changes to Misc/NEWS than to this file.
* This is not a complete list of every single change; completeness
is the purpose of Misc/NEWS. Some changes will be too small
or esoteric to include. If such a ch... | trusted_official_docs | CPython Docs | * The maintainer will go through Misc/NEWS periodically and add changes; it's therefore more important to add your changes to Misc/NEWS than to this file.
* This is not a complete list of every single change; completeness
is the purpose of Misc/NEWS. Some changes will be too small
or esoteric to include. If such a ch... | * The maintainer will go through Misc/NEWS periodically and add changes; it's therefore more important to add your changes to Misc/NEWS than to this file.
* This is not a complete list of every single change; completeness
is the purpose of Misc/NEWS. Some changes will be too small
or esoteric to include. If such a ch... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
af093acb-ad7e-4ae8-bd34-26dc1610e6ee | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,168 | supabase-export-v2 | 42f025ce302c09bb | * :c:func:`!PyObject_GET_WEAKREFS_LISTPTR` macro was converted to a function: the macro accessed directly the :c:member:`PyTypeObject.tp_weaklistoffset` member.
* :c:func:`PyObject_CheckBuffer` macro was converted to a function: the macro
accessed directly the :c:member:`PyTypeObject.tp_as_buffer` member. | trusted_official_docs | CPython Docs | * :c:func:`!PyObject_GET_WEAKREFS_LISTPTR` macro was converted to a function: the macro accessed directly the :c:member:`PyTypeObject.tp_weaklistoffset` member.
* :c:func:`PyObject_CheckBuffer` macro was converted to a function: the macro
accessed directly the :c:member:`PyTypeObject.tp_as_buffer` member. | * :c:func:`!PyObject_GET_WEAKREFS_LISTPTR` macro was converted to a function: the macro accessed directly the :c:member:`PyTypeObject.tp_weaklistoffset` member.
* :c:func:`PyObject_CheckBuffer` macro was converted to a function: the macro
accessed directly the :c:member:`PyTypeObject.tp_as_buffer` member. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
afc15e84-d969-4c6e-8da4-d0006427ea0d | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,117 | supabase-export-v2 | 90b8f564f7f8b29c | .. code-block:: c
int
foo_traverse(PyObject *self, visitproc visit, void *arg)
{
// Rest of the traverse function
#if PY_VERSION_HEX >= 0x03090000
// This was not needed before Python 3.9 (Python issue 35810 and 40217)
Py_VISIT(Py_TYPE(self));
#endif
} | trusted_official_docs | CPython Docs | .. code-block:: c
int
foo_traverse(PyObject *self, visitproc visit, void *arg)
{
// Rest of the traverse function
#if PY_VERSION_HEX >= 0x03090000
// This was not needed before Python 3.9 (Python issue 35810 and 40217)
Py_VISIT(Py_TYPE(self));
#endif
} | .. code-block:: c
int
foo_traverse(PyObject *self, visitproc visit, void *arg)
{
// Rest of the traverse function
#if PY_VERSION_HEX >= 0x03090000
// This was not needed before Python 3.9 (Python issue 35810 and 40217)
Py_VISIT(Py_TYPE(self));
#endif
} | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b4247d30-ab17-4fd6-9a76-b77eeb3e6578 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,904 | supabase-export-v2 | 0ec41653dcd9e4bf | all non-zero ``n``. It is now consistent with ``"".replace("", s)``. There are similar changes for :class:`bytes` and :class:`bytearray` objects. (Contributed by Serhiy Storchaka in :issue:`28029`.)
* Any valid expression can now be used as a :term:`decorator`. Previously, the
grammar was much more restrictive. See :p... | trusted_official_docs | CPython Docs | all non-zero ``n``. It is now consistent with ``"".replace("", s)``. There are similar changes for :class:`bytes` and :class:`bytearray` objects. (Contributed by Serhiy Storchaka in :issue:`28029`.)
* Any valid expression can now be used as a :term:`decorator`. Previously, the
grammar was much more restrictive. See :p... | all non-zero ``n``. It is now consistent with ``"".replace("", s)``. There are similar changes for :class:`bytes` and :class:`bytearray` objects. (Contributed by Serhiy Storchaka in :issue:`28029`.)
* Any valid expression can now be used as a :term:`decorator`. Previously, the
grammar was much more restrictive. See :p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b55fa1cb-6af4-4c76-bc62-a828aff55ce3 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,160 | supabase-export-v2 | 89129ed637fa896d | * The global variable :c:data:`PyStructSequence_UnnamedField` is now a constant and refers to a constant string. (Contributed by Serhiy Storchaka in :issue:`38650`.)
* The :c:type:`!PyGC_Head` structure is now opaque. It is only defined in the
internal C API (``pycore_gc.h``). (Contributed by Victor Stinner in :issue:... | trusted_official_docs | CPython Docs | * The global variable :c:data:`PyStructSequence_UnnamedField` is now a constant and refers to a constant string. (Contributed by Serhiy Storchaka in :issue:`38650`.)
* The :c:type:`!PyGC_Head` structure is now opaque. It is only defined in the
internal C API (``pycore_gc.h``). (Contributed by Victor Stinner in :issue:... | * The global variable :c:data:`PyStructSequence_UnnamedField` is now a constant and refers to a constant string. (Contributed by Serhiy Storchaka in :issue:`38650`.)
* The :c:type:`!PyGC_Head` structure is now opaque. It is only defined in the
internal C API (``pycore_gc.h``). (Contributed by Victor Stinner in :issue:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b57a96ea-4408-4ca4-8309-473f8ae1d454 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,963 | supabase-export-v2 | 0eb56a1a9d50ca8c | :issue:`40468`.) Move the indent space setting from the Font tab to the new Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:`33962`.)
Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex
Waygood and Terry Jan Reedy in :issue:`45447`.) | trusted_official_docs | CPython Docs | :issue:`40468`.) Move the indent space setting from the Font tab to the new Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:`33962`.)
Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex
Waygood and Terry Jan Reedy in :issue:`45447`.) | :issue:`40468`.) Move the indent space setting from the Font tab to the new Windows tab. (Contributed by Mark Roseman and Terry Jan Reedy in :issue:`33962`.)
Apply syntax highlighting to ``.pyi`` files. (Contributed by Alex
Waygood and Terry Jan Reedy in :issue:`45447`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b7c6c66d-5426-4491-ba83-9af6d0f95fba | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,122 | supabase-export-v2 | 48d24a88eff020b3 | .. code-block:: c
#if PY_VERSION_HEX >= 0x03090000
// This was not needed before Python 3.9 (bpo-35810 and bpo-40217)
if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) {
// a heap type's tp_traverse already visited Py_TYPE(self)
} else {
Py_VISIT(Py_TYPE(self));
}
#else | trusted_official_docs | CPython Docs | .. code-block:: c
#if PY_VERSION_HEX >= 0x03090000
// This was not needed before Python 3.9 (bpo-35810 and bpo-40217)
if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) {
// a heap type's tp_traverse already visited Py_TYPE(self)
} else {
Py_VISIT(Py_TYPE(self));
}
#else | .. code-block:: c
#if PY_VERSION_HEX >= 0x03090000
// This was not needed before Python 3.9 (bpo-35810 and bpo-40217)
if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) {
// a heap type's tp_traverse already visited Py_TYPE(self)
} else {
Py_VISIT(Py_TYPE(self));
}
#else | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b8493921-a473-4f0c-9b00-3b99408cd390 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,906 | supabase-export-v2 | 6e6e3b626c4929ce | :func:`help` with generic alias like ``List[int]`` will show the help for the correspondent concrete type (``list`` in this case). (Contributed by Serhiy Storchaka in :issue:`40257`.)
* Parallel running of :meth:`~agen.aclose` / :meth:`~agen.asend` /
:meth:`~agen.athrow` is now prohibited, and ``ag_running`` now refle... | trusted_official_docs | CPython Docs | :func:`help` with generic alias like ``List[int]`` will show the help for the correspondent concrete type (``list`` in this case). (Contributed by Serhiy Storchaka in :issue:`40257`.)
* Parallel running of :meth:`~agen.aclose` / :meth:`~agen.asend` /
:meth:`~agen.athrow` is now prohibited, and ``ag_running`` now refle... | :func:`help` with generic alias like ``List[int]`` will show the help for the correspondent concrete type (``list`` in this case). (Contributed by Serhiy Storchaka in :issue:`40257`.)
* Parallel running of :meth:`~agen.aclose` / :meth:`~agen.asend` /
:meth:`~agen.athrow` is now prohibited, and ``ag_running`` now refle... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b86b4407-7d9e-4957-a338-59d1b43318dc | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,060 | supabase-export-v2 | 13bc4623a468f435 | not guaranteed to have a deterministic hash value. After Python 3.9, the module will restrict its seeds to :const:`None`, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, and :class:`bytearray`.
* Opening the :class:`~gzip.GzipFile` file for writing without specifying
the *mode* argument is deprecated. In f... | trusted_official_docs | CPython Docs | not guaranteed to have a deterministic hash value. After Python 3.9, the module will restrict its seeds to :const:`None`, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, and :class:`bytearray`.
* Opening the :class:`~gzip.GzipFile` file for writing without specifying
the *mode* argument is deprecated. In f... | not guaranteed to have a deterministic hash value. After Python 3.9, the module will restrict its seeds to :const:`None`, :class:`int`, :class:`float`, :class:`str`, :class:`bytes`, and :class:`bytearray`.
* Opening the :class:`~gzip.GzipFile` file for writing without specifying
the *mode* argument is deprecated. In f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b8c9bddf-8943-4f16-8007-f10f1759ab1d | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,111 | supabase-export-v2 | 0458ff3d99c8321c | explicitly wants a non-root logger named ``'root'``, or instantiates a logger using ``logging.getLogger(__name__)`` in some top-level module called ``'root.py'``. (Contributed by Vinay Sajip in :issue:`37742`.)
* Division handling of :class:`~pathlib.PurePath` now returns :data:`NotImplemented`
instead of raising a :e... | trusted_official_docs | CPython Docs | explicitly wants a non-root logger named ``'root'``, or instantiates a logger using ``logging.getLogger(__name__)`` in some top-level module called ``'root.py'``. (Contributed by Vinay Sajip in :issue:`37742`.)
* Division handling of :class:`~pathlib.PurePath` now returns :data:`NotImplemented`
instead of raising a :e... | explicitly wants a non-root logger named ``'root'``, or instantiates a logger using ``logging.getLogger(__name__)`` in some top-level module called ``'root.py'``. (Contributed by Vinay Sajip in :issue:`37742`.)
* Division handling of :class:`~pathlib.PurePath` now returns :data:`NotImplemented`
instead of raising a :e... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b937072c-ba55-4140-a384-e11456e343de | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,933 | supabase-export-v2 | 26caa686744cd2f1 | Added new possibility to use hardlinks for duplicated ``.pyc`` files: *hardlink_dupes* parameter and --hardlink-dupes command line option. (Contributed by Lumír 'Frenzy' Balhar in :issue:`40495`.)
Added new options for path manipulation in resulting ``.pyc`` files: *stripdir*, *prependdir*, *limit_sl_dest* parameters a... | trusted_official_docs | CPython Docs | Added new possibility to use hardlinks for duplicated ``.pyc`` files: *hardlink_dupes* parameter and --hardlink-dupes command line option. (Contributed by Lumír 'Frenzy' Balhar in :issue:`40495`.)
Added new options for path manipulation in resulting ``.pyc`` files: *stripdir*, *prependdir*, *limit_sl_dest* parameters a... | Added new possibility to use hardlinks for duplicated ``.pyc`` files: *hardlink_dupes* parameter and --hardlink-dupes command line option. (Contributed by Lumír 'Frenzy' Balhar in :issue:`40495`.)
Added new options for path manipulation in resulting ``.pyc`` files: *stripdir*, *prependdir*, *limit_sl_dest* parameters a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b9e0ffbf-cf93-4fb3-94b9-0faaa370e78f | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,206 | supabase-export-v2 | 66b51e23affc80b1 | Notable security feature in 3.9.14 ==================================
Converting between :class:`int` and :class:`str` in bases other than 2
(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal)
now raises a :exc:`ValueError` if the number of digits in string form is
above a limit to avoid potential... | trusted_official_docs | CPython Docs | Notable security feature in 3.9.14 ==================================
Converting between :class:`int` and :class:`str` in bases other than 2
(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal)
now raises a :exc:`ValueError` if the number of digits in string form is
above a limit to avoid potential... | Notable security feature in 3.9.14 ==================================
Converting between :class:`int` and :class:`str` in bases other than 2
(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal)
now raises a :exc:`ValueError` if the number of digits in string form is
above a limit to avoid potential... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbcb963c-315a-4f4b-b473-7a3f01bac748 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,049 | supabase-export-v2 | d7caa54883551a86 | 20.8 20.8 19.0 19.5 read_deque 24.7 25.5 20.2 20.6 19.8 20.2 read_dict 24.3 25.7 22.3 23.0 21.0 22.4 read_strdict 22.6 24.3 19.5 21.2 18.9 21.5
Data structure write access:
write_list 27.1 28.5 22.5 21.6 20.0 20.0
write_deque 28.7 30.1 22.7 21.8 23.5 21.7
write_dict 31.4 33.3 29.3 29.2 24.7 25.4
write_strdict 28.4 ... | trusted_official_docs | CPython Docs | 20.8 20.8 19.0 19.5 read_deque 24.7 25.5 20.2 20.6 19.8 20.2 read_dict 24.3 25.7 22.3 23.0 21.0 22.4 read_strdict 22.6 24.3 19.5 21.2 18.9 21.5
Data structure write access:
write_list 27.1 28.5 22.5 21.6 20.0 20.0
write_deque 28.7 30.1 22.7 21.8 23.5 21.7
write_dict 31.4 33.3 29.3 29.2 24.7 25.4
write_strdict 28.4 ... | 20.8 20.8 19.0 19.5 read_deque 24.7 25.5 20.2 20.6 19.8 20.2 read_dict 24.3 25.7 22.3 23.0 21.0 22.4 read_strdict 22.6 24.3 19.5 21.2 18.9 21.5
Data structure write access:
write_list 27.1 28.5 22.5 21.6 20.0 20.0
write_deque 28.7 30.1 22.7 21.8 23.5 21.7
write_dict 31.4 33.3 29.3 29.2 24.7 25.4
write_strdict 28.4 ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbd71804-1d11-4f77-8b8e-1985b6660fa9 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,146 | supabase-export-v2 | 49dce04a2cf0474e | * Changes in the limited C API (if ``Py_LIMITED_API`` macro is defined):
* Provide :c:func:`Py_EnterRecursiveCall` and :c:func:`Py_LeaveRecursiveCall`
as regular functions for the limited API. Previously, there were defined as
macros, but these macros didn't compile with the limited C API which cannot
access ``PyThr... | trusted_official_docs | CPython Docs | * Changes in the limited C API (if ``Py_LIMITED_API`` macro is defined):
* Provide :c:func:`Py_EnterRecursiveCall` and :c:func:`Py_LeaveRecursiveCall`
as regular functions for the limited API. Previously, there were defined as
macros, but these macros didn't compile with the limited C API which cannot
access ``PyThr... | * Changes in the limited C API (if ``Py_LIMITED_API`` macro is defined):
* Provide :c:func:`Py_EnterRecursiveCall` and :c:func:`Py_LeaveRecursiveCall`
as regular functions for the limited API. Previously, there were defined as
macros, but these macros didn't compile with the limited C API which cannot
access ``PyThr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bdf495bd-d421-40e1-a192-7732132c851c | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,123 | supabase-export-v2 | 96b22382e4284f7c | before Python 3.9 (bpo-35810 and bpo-40217) if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) { // a heap type's tp_traverse already visited Py_TYPE(self) } else { Py_VISIT(Py_TYPE(self)); } #else
(See :issue:`35810` and :issue:`40217` for more information.) | trusted_official_docs | CPython Docs | before Python 3.9 (bpo-35810 and bpo-40217) if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) { // a heap type's tp_traverse already visited Py_TYPE(self) } else { Py_VISIT(Py_TYPE(self)); } #else
(See :issue:`35810` and :issue:`40217` for more information.) | before Python 3.9 (bpo-35810 and bpo-40217) if (base->tp_flags & Py_TPFLAGS_HEAPTYPE) { // a heap type's tp_traverse already visited Py_TYPE(self) } else { Py_VISIT(Py_TYPE(self)); } #else
(See :issue:`35810` and :issue:`40217` for more information.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
beef0973-6932-43af-a1a3-7fbd99f92337 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,076 | supabase-export-v2 | b2575cf02d917f75 | * The erroneous version at :data:`!unittest.mock.__version__` has been removed.
* :class:`!nntplib.NNTP`: ``xpath()`` and ``xgtitle()`` methods have been removed. These methods are deprecated since Python 3.3. Generally, these extensions
are not supported or not enabled by NNTP server administrators. For ``xgtitle()``... | trusted_official_docs | CPython Docs | * The erroneous version at :data:`!unittest.mock.__version__` has been removed.
* :class:`!nntplib.NNTP`: ``xpath()`` and ``xgtitle()`` methods have been removed. These methods are deprecated since Python 3.3. Generally, these extensions
are not supported or not enabled by NNTP server administrators. For ``xgtitle()``... | * The erroneous version at :data:`!unittest.mock.__version__` has been removed.
* :class:`!nntplib.NNTP`: ``xpath()`` and ``xgtitle()`` methods have been removed. These methods are deprecated since Python 3.3. Generally, these extensions
are not supported or not enabled by NNTP server administrators. For ``xgtitle()``... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c0ba3d5c-ac8a-491f-939a-767b1ada9eca | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,052 | supabase-export-v2 | 9cfa75b22b72b461 | Timing loop: loop_overhead 0.5 0.6 0.4 0.3 0.3 0.3
These results were generated from the variable access benchmark script at:
``Tools/scripts/var_access_benchmark.py``. The benchmark script displays timings
in nanoseconds. The benchmarks were measured on an
`Intel® Core™ i7-4960HQ processor
<https://ark.intel.com/conte... | trusted_official_docs | CPython Docs | Timing loop: loop_overhead 0.5 0.6 0.4 0.3 0.3 0.3
These results were generated from the variable access benchmark script at:
``Tools/scripts/var_access_benchmark.py``. The benchmark script displays timings
in nanoseconds. The benchmarks were measured on an
`Intel® Core™ i7-4960HQ processor
<https://ark.intel.com/conte... | Timing loop: loop_overhead 0.5 0.6 0.4 0.3 0.3 0.3
These results were generated from the variable access benchmark script at:
``Tools/scripts/var_access_benchmark.py``. The benchmark script displays timings
in nanoseconds. The benchmarks were measured on an
`Intel® Core™ i7-4960HQ processor
<https://ark.intel.com/conte... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c1a0cf12-3940-4277-b058-a42ee3d97504 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,193 | supabase-export-v2 | 35b62c60c4740081 | macOS 11.0 (Big Sur) and Apple Silicon Mac support --------------------------------------------------
As of 3.9.1, Python now fully supports building and running on macOS 11.0
(Big Sur) and on Apple Silicon Macs (based on the ``ARM64`` architecture). A new universal build variant, ``universal2``, is now available to na... | trusted_official_docs | CPython Docs | macOS 11.0 (Big Sur) and Apple Silicon Mac support --------------------------------------------------
As of 3.9.1, Python now fully supports building and running on macOS 11.0
(Big Sur) and on Apple Silicon Macs (based on the ``ARM64`` architecture). A new universal build variant, ``universal2``, is now available to na... | macOS 11.0 (Big Sur) and Apple Silicon Mac support --------------------------------------------------
As of 3.9.1, Python now fully supports building and running on macOS 11.0
(Big Sur) and on Apple Silicon Macs (based on the ``ARM64`` architecture). A new universal build variant, ``universal2``, is now available to na... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c4738a91-087b-43a5-a12c-d5a27593c82d | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,143 | supabase-export-v2 | 41c047b737c1e9b4 | * Added :c:func:`PyFrame_GetLineNumber` to the limited C API. (Contributed by Victor Stinner in :issue:`40421`.)
* Added :c:func:`PyThreadState_GetInterpreter` and
:c:func:`PyInterpreterState_Get` functions to get the interpreter. Added :c:func:`PyThreadState_GetFrame` function to get the current frame of a
Python th... | trusted_official_docs | CPython Docs | * Added :c:func:`PyFrame_GetLineNumber` to the limited C API. (Contributed by Victor Stinner in :issue:`40421`.)
* Added :c:func:`PyThreadState_GetInterpreter` and
:c:func:`PyInterpreterState_Get` functions to get the interpreter. Added :c:func:`PyThreadState_GetFrame` function to get the current frame of a
Python th... | * Added :c:func:`PyFrame_GetLineNumber` to the limited C API. (Contributed by Victor Stinner in :issue:`40421`.)
* Added :c:func:`PyThreadState_GetInterpreter` and
:c:func:`PyInterpreterState_Get` functions to get the interpreter. Added :c:func:`PyThreadState_GetFrame` function to get the current frame of a
Python th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c4d04882-8b3e-4e8c-9f11-0fc571e68259 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,079 | supabase-export-v2 | 88c3e04795faf359 | deprecated and always returned :const:`None`. It required a special build option ``CALL_PROFILE`` which was already removed in Python 3.7. (Contributed by Victor Stinner in :issue:`37414`.)
* The ``sys.getcheckinterval()`` and ``sys.setcheckinterval()`` functions have
been removed. They were deprecated since Python 3.... | trusted_official_docs | CPython Docs | deprecated and always returned :const:`None`. It required a special build option ``CALL_PROFILE`` which was already removed in Python 3.7. (Contributed by Victor Stinner in :issue:`37414`.)
* The ``sys.getcheckinterval()`` and ``sys.setcheckinterval()`` functions have
been removed. They were deprecated since Python 3.... | deprecated and always returned :const:`None`. It required a special build option ``CALL_PROFILE`` which was already removed in Python 3.7. (Contributed by Victor Stinner in :issue:`37414`.)
* The ``sys.getcheckinterval()`` and ``sys.setcheckinterval()`` functions have
been removed. They were deprecated since Python 3.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5feaad1-65e7-482f-b6f2-8a9187805bd9 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,089 | supabase-export-v2 | 54d89c72492f1d7b | * ``fractions.gcd()`` function has been removed, it was deprecated since Python 3.5 (:issue:`22486`): use :func:`math.gcd` instead. (Contributed by Victor Stinner in :issue:`39350`.)
* The *buffering* parameter of :class:`bz2.BZ2File` has been removed. Since
Python 3.0, it was ignored and using it emitted a :exc:`Depr... | trusted_official_docs | CPython Docs | * ``fractions.gcd()`` function has been removed, it was deprecated since Python 3.5 (:issue:`22486`): use :func:`math.gcd` instead. (Contributed by Victor Stinner in :issue:`39350`.)
* The *buffering* parameter of :class:`bz2.BZ2File` has been removed. Since
Python 3.0, it was ignored and using it emitted a :exc:`Depr... | * ``fractions.gcd()`` function has been removed, it was deprecated since Python 3.5 (:issue:`22486`): use :func:`math.gcd` instead. (Contributed by Victor Stinner in :issue:`39350`.)
* The *buffering* parameter of :class:`bz2.BZ2File` has been removed. Since
Python 3.0, it was ignored and using it emitted a :exc:`Depr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c6f8517d-903f-4005-a527-b87566a381ba | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,026 | supabase-export-v2 | 79fb96b58534173c | venv ----
The activation scripts provided by :mod:`venv` now all specify their prompt
customization consistently by always using the value specified by
``__VENV_PROMPT__``. Previously some scripts unconditionally used
``__VENV_PROMPT__``, others only if it happened to be set (which was the default
case), and one used `... | trusted_official_docs | CPython Docs | venv ----
The activation scripts provided by :mod:`venv` now all specify their prompt
customization consistently by always using the value specified by
``__VENV_PROMPT__``. Previously some scripts unconditionally used
``__VENV_PROMPT__``, others only if it happened to be set (which was the default
case), and one used `... | venv ----
The activation scripts provided by :mod:`venv` now all specify their prompt
customization consistently by always using the value specified by
``__VENV_PROMPT__``. Previously some scripts unconditionally used
``__VENV_PROMPT__``, others only if it happened to be set (which was the default
case), and one used `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c99dbaaf-b18e-4707-a909-9f4220e20718 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,915 | supabase-export-v2 | 59c4161241a9a24f | >>> # Standard time >>> when += dt.timedelta(days=7) >>> print(when) 2020-11-07 12:00:00-08:00 >>> print(when.tzname()) PST
As a fall-back source of data for platforms that don't ship the IANA database,
the :pypi:`tzdata` module was released as a first-party package -- distributed via
PyPI and maintained by the CPython... | trusted_official_docs | CPython Docs | >>> # Standard time >>> when += dt.timedelta(days=7) >>> print(when) 2020-11-07 12:00:00-08:00 >>> print(when.tzname()) PST
As a fall-back source of data for platforms that don't ship the IANA database,
the :pypi:`tzdata` module was released as a first-party package -- distributed via
PyPI and maintained by the CPython... | >>> # Standard time >>> when += dt.timedelta(days=7) >>> print(when) 2020-11-07 12:00:00-08:00 >>> print(when.tzname()) PST
As a fall-back source of data for platforms that don't ship the IANA database,
the :pypi:`tzdata` module was released as a first-party package -- distributed via
PyPI and maintained by the CPython... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c9feb8cd-83e3-4c60-84a5-160749912517 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,992 | supabase-export-v2 | 26e844774503f383 | The :func:`os.putenv` and :func:`os.unsetenv` functions are now always available. (Contributed by Victor Stinner in :issue:`39395`.)
Added :func:`os.waitstatus_to_exitcode` function:
convert a wait status to an exit code. (Contributed by Victor Stinner in :issue:`40094`.) | trusted_official_docs | CPython Docs | The :func:`os.putenv` and :func:`os.unsetenv` functions are now always available. (Contributed by Victor Stinner in :issue:`39395`.)
Added :func:`os.waitstatus_to_exitcode` function:
convert a wait status to an exit code. (Contributed by Victor Stinner in :issue:`40094`.) | The :func:`os.putenv` and :func:`os.unsetenv` functions are now always available. (Contributed by Victor Stinner in :issue:`39395`.)
Added :func:`os.waitstatus_to_exitcode` function:
convert a wait status to an exit code. (Contributed by Victor Stinner in :issue:`40094`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca110f43-2626-48e4-965e-dcdc4a0b5dff | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,207 | supabase-export-v2 | bb7c72121ab4c334 | variable, command line flag, or :mod:`sys` APIs. See the :ref:`integer string conversion length limitation <int_max_str_digits>` documentation. The default limit is 4300 digits in string form.
Notable changes in 3.9.17
========================= | trusted_official_docs | CPython Docs | variable, command line flag, or :mod:`sys` APIs. See the :ref:`integer string conversion length limitation <int_max_str_digits>` documentation. The default limit is 4300 digits in string form.
Notable changes in 3.9.17
========================= | variable, command line flag, or :mod:`sys` APIs. See the :ref:`integer string conversion length limitation <int_max_str_digits>` documentation. The default limit is 4300 digits in string form.
Notable changes in 3.9.17
========================= | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cbc0484b-8d89-4f1e-ad85-064f6097a9bd | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,135 | supabase-export-v2 | d54b09b917ebb67d | * On non-Windows platforms, creating ``bdist_wininst`` installers is now officially unsupported. (See :issue:`10945` for more details.)
* When building Python on macOS from source, ``_tkinter`` now links with
non-system Tcl and Tk frameworks if they are installed in
``/Library/Frameworks``, as had been the case on ol... | trusted_official_docs | CPython Docs | * On non-Windows platforms, creating ``bdist_wininst`` installers is now officially unsupported. (See :issue:`10945` for more details.)
* When building Python on macOS from source, ``_tkinter`` now links with
non-system Tcl and Tk frameworks if they are installed in
``/Library/Frameworks``, as had been the case on ol... | * On non-Windows platforms, creating ``bdist_wininst`` installers is now officially unsupported. (See :issue:`10945` for more details.)
* When building Python on macOS from source, ``_tkinter`` now links with
non-system Tcl and Tk frameworks if they are installed in
``/Library/Frameworks``, as had been the case on ol... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc61806c-e0b0-4ea9-a2d1-8e6c74301760 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,128 | supabase-export-v2 | 3d5504c3304143f6 | * The :opcode:`COMPARE_OP` opcode was split into four distinct instructions:
* ``COMPARE_OP`` for rich comparisons
* ``IS_OP`` for 'is' and 'is not' tests
* ``CONTAINS_OP`` for 'in' and 'not in' tests
* ``JUMP_IF_NOT_EXC_MATCH`` for checking exceptions in 'try-except'
statements. | trusted_official_docs | CPython Docs | * The :opcode:`COMPARE_OP` opcode was split into four distinct instructions:
* ``COMPARE_OP`` for rich comparisons
* ``IS_OP`` for 'is' and 'is not' tests
* ``CONTAINS_OP`` for 'in' and 'not in' tests
* ``JUMP_IF_NOT_EXC_MATCH`` for checking exceptions in 'try-except'
statements. | * The :opcode:`COMPARE_OP` opcode was split into four distinct instructions:
* ``COMPARE_OP`` for rich comparisons
* ``IS_OP`` for 'is' and 'is not' tests
* ``CONTAINS_OP`` for 'in' and 'not in' tests
* ``JUMP_IF_NOT_EXC_MATCH`` for checking exceptions in 'try-except'
statements. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ccb033fa-49c6-44bf-9475-fed21211be44 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,078 | supabase-export-v2 | 434aea2c6effcc35 | :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been removed. They were aliases to ``tobytes()`` and ``frombytes()``, deprecated since Python 3.2. (Contributed by Victor Stinner in :issue:`38916`.)
* The undocumented ``sys.callstats()`` function has been removed. Since Python
3.7, it was depreca... | trusted_official_docs | CPython Docs | :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been removed. They were aliases to ``tobytes()`` and ``frombytes()``, deprecated since Python 3.2. (Contributed by Victor Stinner in :issue:`38916`.)
* The undocumented ``sys.callstats()`` function has been removed. Since Python
3.7, it was depreca... | :class:`array.array`: ``tostring()`` and ``fromstring()`` methods have been removed. They were aliases to ``tobytes()`` and ``frombytes()``, deprecated since Python 3.2. (Contributed by Victor Stinner in :issue:`38916`.)
* The undocumented ``sys.callstats()`` function has been removed. Since Python
3.7, it was depreca... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ccfd7718-4a0e-44d0-88df-d1b550aeadba | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,926 | supabase-export-v2 | 3a35d95be85f2f92 | the socket option ``SO_REUSEADDR`` in UDP. For more details, see the documentation for ``loop.create_datagram_endpoint()``. (Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:`37228`.)
Added a new :term:`coroutine` :meth:`~asyncio.loop.shutdown_default_executor`
that schedules a shutdown for the... | trusted_official_docs | CPython Docs | the socket option ``SO_REUSEADDR`` in UDP. For more details, see the documentation for ``loop.create_datagram_endpoint()``. (Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:`37228`.)
Added a new :term:`coroutine` :meth:`~asyncio.loop.shutdown_default_executor`
that schedules a shutdown for the... | the socket option ``SO_REUSEADDR`` in UDP. For more details, see the documentation for ``loop.create_datagram_endpoint()``. (Contributed by Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:`37228`.)
Added a new :term:`coroutine` :meth:`~asyncio.loop.shutdown_default_executor`
that schedules a shutdown for the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ceee98a0-5a91-448c-95d5-d04159b40994 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,976 | supabase-export-v2 | 89c7736f143a2cf5 | :mod:`ipaddress` now supports IPv6 Scoped Addresses (IPv6 address with suffix ``%<scope_id>``).
Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If present, scope zone ID is available through the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:`347... | trusted_official_docs | CPython Docs | :mod:`ipaddress` now supports IPv6 Scoped Addresses (IPv6 address with suffix ``%<scope_id>``).
Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If present, scope zone ID is available through the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:`347... | :mod:`ipaddress` now supports IPv6 Scoped Addresses (IPv6 address with suffix ``%<scope_id>``).
Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If present, scope zone ID is available through the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:`347... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cf4aea43-e324-4de3-b7e9-22e763a1479f | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,176 | supabase-export-v2 | bf8b41877f9c2777 | * Excluded the following functions from the limited C API:
* ``PyThreadState_DeleteCurrent()``
(Contributed by Joannah Nanjekye in :issue:`37878`.)
* ``_Py_CheckRecursionLimit``
* ``_Py_NewReference()``
* ``_Py_ForgetReference()``
* ``_PyTraceMalloc_NewReference()``
* ``_Py_GetRefTotal()``
* The trashcan mechani... | trusted_official_docs | CPython Docs | * Excluded the following functions from the limited C API:
* ``PyThreadState_DeleteCurrent()``
(Contributed by Joannah Nanjekye in :issue:`37878`.)
* ``_Py_CheckRecursionLimit``
* ``_Py_NewReference()``
* ``_Py_ForgetReference()``
* ``_PyTraceMalloc_NewReference()``
* ``_Py_GetRefTotal()``
* The trashcan mechani... | * Excluded the following functions from the limited C API:
* ``PyThreadState_DeleteCurrent()``
(Contributed by Joannah Nanjekye in :issue:`37878`.)
* ``_Py_CheckRecursionLimit``
* ``_Py_NewReference()``
* ``_Py_ForgetReference()``
* ``_PyTraceMalloc_NewReference()``
* ``_Py_GetRefTotal()``
* The trashcan mechani... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cfaf97c4-50b7-46ae-a50f-7bdb36076612 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,062 | supabase-export-v2 | 3bce6bcf49f3c4c6 | Deprecated the ``split()`` method of :class:`!_tkinter.TkappType` in favour of the ``splitlist()`` method which has more consistent and predictable behavior. (Contributed by Serhiy Storchaka in :issue:`38371`.)
* The explicit passing of coroutine objects to :func:`asyncio.wait` has been
deprecated and will be removed ... | trusted_official_docs | CPython Docs | Deprecated the ``split()`` method of :class:`!_tkinter.TkappType` in favour of the ``splitlist()`` method which has more consistent and predictable behavior. (Contributed by Serhiy Storchaka in :issue:`38371`.)
* The explicit passing of coroutine objects to :func:`asyncio.wait` has been
deprecated and will be removed ... | Deprecated the ``split()`` method of :class:`!_tkinter.TkappType` in favour of the ``splitlist()`` method which has more consistent and predictable behavior. (Contributed by Serhiy Storchaka in :issue:`38371`.)
* The explicit passing of coroutine objects to :func:`asyncio.wait` has been
deprecated and will be removed ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d222af76-6af8-4dd8-8805-a8c2c45963f4 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,088 | supabase-export-v2 | c4507fa27ff0693c | * ``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated since Python 3.1, have been removed: use :func:`base64.encodebytes` and :func:`base64.decodebytes` instead. (Contributed by Victor Stinner in :issue:`39351`.)
* ``fractions.gcd()`` function has been removed, it was deprecated since Python
3.... | trusted_official_docs | CPython Docs | * ``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated since Python 3.1, have been removed: use :func:`base64.encodebytes` and :func:`base64.decodebytes` instead. (Contributed by Victor Stinner in :issue:`39351`.)
* ``fractions.gcd()`` function has been removed, it was deprecated since Python
3.... | * ``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated since Python 3.1, have been removed: use :func:`base64.encodebytes` and :func:`base64.decodebytes` instead. (Contributed by Victor Stinner in :issue:`39351`.)
* ``fractions.gcd()`` function has been removed, it was deprecated since Python
3.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d260bbb2-54b9-4175-a220-9d9deb4a8e44 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,894 | supabase-export-v2 | 50cc6d654387aa68 | New Parser ----------
Python 3.9 uses a new parser, based on `PEG
<https://en.wikipedia.org/wiki/Parsing_expression_grammar>`_ instead
of `LL(1) <https://en.wikipedia.org/wiki/LL_parser>`_. The new
parser's performance is roughly comparable to that of the old parser,
but the PEG formalism is more flexible than LL(1) wh... | trusted_official_docs | CPython Docs | New Parser ----------
Python 3.9 uses a new parser, based on `PEG
<https://en.wikipedia.org/wiki/Parsing_expression_grammar>`_ instead
of `LL(1) <https://en.wikipedia.org/wiki/LL_parser>`_. The new
parser's performance is roughly comparable to that of the old parser,
but the PEG formalism is more flexible than LL(1) wh... | New Parser ----------
Python 3.9 uses a new parser, based on `PEG
<https://en.wikipedia.org/wiki/Parsing_expression_grammar>`_ instead
of `LL(1) <https://en.wikipedia.org/wiki/LL_parser>`_. The new
parser's performance is roughly comparable to that of the old parser,
but the PEG formalism is more flexible than LL(1) wh... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d26fdb69-d3aa-4400-b03c-91cd8362569b | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,907 | supabase-export-v2 | 66a51b12f301befe | / :meth:`~agen.asend` / :meth:`~agen.athrow` is now prohibited, and ``ag_running`` now reflects the actual running status of the async generator. (Contributed by Yury Selivanov in :issue:`30773`.)
* Unexpected errors in calling the ``__iter__`` method are no longer masked by
``TypeError`` in the :keyword:`in` operator... | trusted_official_docs | CPython Docs | / :meth:`~agen.asend` / :meth:`~agen.athrow` is now prohibited, and ``ag_running`` now reflects the actual running status of the async generator. (Contributed by Yury Selivanov in :issue:`30773`.)
* Unexpected errors in calling the ``__iter__`` method are no longer masked by
``TypeError`` in the :keyword:`in` operator... | / :meth:`~agen.asend` / :meth:`~agen.athrow` is now prohibited, and ``ag_running`` now reflects the actual running status of the async generator. (Contributed by Yury Selivanov in :issue:`30773`.)
* Unexpected errors in calling the ``__iter__`` method are no longer masked by
``TypeError`` in the :keyword:`in` operator... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d4609a6e-ddc2-4a6a-b45b-f416ebcb75fa | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,151 | supabase-export-v2 | 98dd48f56000589b | query if Python objects are being currently tracked or have been already finalized by the garbage collector respectively. (Contributed by Pablo Galindo Salgado in :issue:`40241`.)
* Added :c:func:`!_PyObject_FunctionStr` to get a user-friendly string
representation of a function-like object. (Patch by Jeroen Demeyer i... | trusted_official_docs | CPython Docs | query if Python objects are being currently tracked or have been already finalized by the garbage collector respectively. (Contributed by Pablo Galindo Salgado in :issue:`40241`.)
* Added :c:func:`!_PyObject_FunctionStr` to get a user-friendly string
representation of a function-like object. (Patch by Jeroen Demeyer i... | query if Python objects are being currently tracked or have been already finalized by the garbage collector respectively. (Contributed by Pablo Galindo Salgado in :issue:`40241`.)
* Added :c:func:`!_PyObject_FunctionStr` to get a user-friendly string
representation of a function-like object. (Patch by Jeroen Demeyer i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d62d8524-3701-4b06-ac63-c8d48e368a69 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,040 | supabase-export-v2 | e37aa78e2912ec0a | the case when the other set is much larger than the base set. (Suggested by Evgeny Kapun with code contributed by Michele Orrù in :issue:`8425`.)
* Python's small object allocator (``obmalloc.c``) now allows (no more than)
one empty arena to remain available for immediate reuse, without returning
it to the OS. This p... | trusted_official_docs | CPython Docs | the case when the other set is much larger than the base set. (Suggested by Evgeny Kapun with code contributed by Michele Orrù in :issue:`8425`.)
* Python's small object allocator (``obmalloc.c``) now allows (no more than)
one empty arena to remain available for immediate reuse, without returning
it to the OS. This p... | the case when the other set is much larger than the base set. (Suggested by Evgeny Kapun with code contributed by Michele Orrù in :issue:`8425`.)
* Python's small object allocator (``obmalloc.c``) now allows (no more than)
one empty arena to remain available for immediate reuse, without returning
it to the OS. This p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d9988d2d-79f6-4a44-a7bc-b2072bc59ebf | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,107 | supabase-export-v2 | 39d56a3e2a6e317b | been added to the classes :class:`ftplib.FTP` and :class:`ftplib.FTP_TLS` as a keyword-only parameter, and the default encoding is changed from Latin-1 to UTF-8 to follow :rfc:`2640`.
* :meth:`asyncio.loop.shutdown_default_executor` has been added to
:class:`~asyncio.AbstractEventLoop`, meaning alternative event loops... | trusted_official_docs | CPython Docs | been added to the classes :class:`ftplib.FTP` and :class:`ftplib.FTP_TLS` as a keyword-only parameter, and the default encoding is changed from Latin-1 to UTF-8 to follow :rfc:`2640`.
* :meth:`asyncio.loop.shutdown_default_executor` has been added to
:class:`~asyncio.AbstractEventLoop`, meaning alternative event loops... | been added to the classes :class:`ftplib.FTP` and :class:`ftplib.FTP_TLS` as a keyword-only parameter, and the default encoding is changed from Latin-1 to UTF-8 to follow :rfc:`2640`.
* :meth:`asyncio.loop.shutdown_default_executor` has been added to
:class:`~asyncio.AbstractEventLoop`, meaning alternative event loops... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ddeb930b-c057-4ece-841e-ded6cf7b962f | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,878 | supabase-export-v2 | 633458c0aa18c8a4 | in the :mod:`collections` module, like ``collections.Mapping`` alias to :class:`collections.abc.Mapping`, are kept for one last release for backward compatibility. They will be removed from Python 3.10.
More generally, try to run your tests in the :ref:`Python Development Mode
<devmode>` which helps to prepare your cod... | trusted_official_docs | CPython Docs | in the :mod:`collections` module, like ``collections.Mapping`` alias to :class:`collections.abc.Mapping`, are kept for one last release for backward compatibility. They will be removed from Python 3.10.
More generally, try to run your tests in the :ref:`Python Development Mode
<devmode>` which helps to prepare your cod... | in the :mod:`collections` module, like ``collections.Mapping`` alias to :class:`collections.abc.Mapping`, are kept for one last release for backward compatibility. They will be removed from Python 3.10.
More generally, try to run your tests in the :ref:`Python Development Mode
<devmode>` which helps to prepare your cod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df2fe8c2-f509-4d47-af2c-79ba56b556c5 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,072 | supabase-export-v2 | 825116e8bff75519 | be removed from the standard library in a future Python version. Consider third-party alternatives such as `LibCST`_ or `parso`_. (Contributed by Carl Meyer in :issue:`40360`.)
* The *random* parameter of :func:`random.shuffle` has been deprecated. (Contributed by Raymond Hettinger in :issue:`40465`) | trusted_official_docs | CPython Docs | be removed from the standard library in a future Python version. Consider third-party alternatives such as `LibCST`_ or `parso`_. (Contributed by Carl Meyer in :issue:`40360`.)
* The *random* parameter of :func:`random.shuffle` has been deprecated. (Contributed by Raymond Hettinger in :issue:`40465`) | be removed from the standard library in a future Python version. Consider third-party alternatives such as `LibCST`_ or `parso`_. (Contributed by Carl Meyer in :issue:`40360`.)
* The *random* parameter of :func:`random.shuffle` has been deprecated. (Contributed by Raymond Hettinger in :issue:`40465`) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dffa2219-a501-40d1-944d-d6d8cc987352 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,046 | supabase-export-v2 | b1c27ddf203d08d5 | Python version 3.4 3.5 3.6 3.7 3.8 3.9 -------------- --- --- --- --- --- ---
Variable and attribute read access:
read_local 7.1 7.1 5.4 5.1 3.9 3.9
read_nonlocal 7.1 8.1 5.8 5.4 4.4 4.5
read_global 15.5 19.0 14.3 13.6 7.6 7.8
read_builtin 21.1 21.6 18.5 19.0 7.5 7.8
read_classvar_from_class 25.6 26.5 20.7 19.5 18... | trusted_official_docs | CPython Docs | Python version 3.4 3.5 3.6 3.7 3.8 3.9 -------------- --- --- --- --- --- ---
Variable and attribute read access:
read_local 7.1 7.1 5.4 5.1 3.9 3.9
read_nonlocal 7.1 8.1 5.8 5.4 4.4 4.5
read_global 15.5 19.0 14.3 13.6 7.6 7.8
read_builtin 21.1 21.6 18.5 19.0 7.5 7.8
read_classvar_from_class 25.6 26.5 20.7 19.5 18... | Python version 3.4 3.5 3.6 3.7 3.8 3.9 -------------- --- --- --- --- --- ---
Variable and attribute read access:
read_local 7.1 7.1 5.4 5.1 3.9 3.9
read_nonlocal 7.1 8.1 5.8 5.4 4.4 4.5
read_global 15.5 19.0 14.3 13.6 7.6 7.8
read_builtin 21.1 21.6 18.5 19.0 7.5 7.8
read_classvar_from_class 25.6 26.5 20.7 19.5 18... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e0079179-0f0d-4c5d-af67-1be6aa7ab787 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,137 | supabase-export-v2 | 4d93805b8a371dfb | * Python can now be built for Windows 10 ARM64. (Contributed by Steve Dower in :issue:`33125`.)
* Some individual tests are now skipped when ``--pgo`` is used. The tests
in question increased the PGO task time significantly and likely
didn't help improve optimization of the final executable. This
speeds up the task ... | trusted_official_docs | CPython Docs | * Python can now be built for Windows 10 ARM64. (Contributed by Steve Dower in :issue:`33125`.)
* Some individual tests are now skipped when ``--pgo`` is used. The tests
in question increased the PGO task time significantly and likely
didn't help improve optimization of the final executable. This
speeds up the task ... | * Python can now be built for Windows 10 ARM64. (Contributed by Steve Dower in :issue:`33125`.)
* Some individual tests are now skipped when ``--pgo`` is used. The tests
in question increased the PGO task time significantly and likely
didn't help improve optimization of the final executable. This
speeds up the task ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e1e9c5db-baa9-4f65-baca-c919117cff53 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,991 | supabase-export-v2 | eeba257e62ea5e6e | The :func:`os.unsetenv` function is now also available on Windows. (Contributed by Victor Stinner in :issue:`39413`.)
The :func:`os.putenv` and :func:`os.unsetenv` functions are now always
available. (Contributed by Victor Stinner in :issue:`39395`.) | trusted_official_docs | CPython Docs | The :func:`os.unsetenv` function is now also available on Windows. (Contributed by Victor Stinner in :issue:`39413`.)
The :func:`os.putenv` and :func:`os.unsetenv` functions are now always
available. (Contributed by Victor Stinner in :issue:`39395`.) | The :func:`os.unsetenv` function is now also available on Windows. (Contributed by Victor Stinner in :issue:`39413`.)
The :func:`os.putenv` and :func:`os.unsetenv` functions are now always
available. (Contributed by Victor Stinner in :issue:`39395`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e31192ab-c8fa-4b3c-a86d-f9932c3cf54e | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,158 | supabase-export-v2 | 07f517485048d19c | subinterpreter, rather than being called from the main interpreter. Each subinterpreter now has its own list of scheduled calls. (Contributed by Victor Stinner in :issue:`39984`.)
* The Windows registry is no longer used to initialize :data:`sys.path` when
the ``-E`` option is used (if :c:member:`PyConfig.use_environm... | trusted_official_docs | CPython Docs | subinterpreter, rather than being called from the main interpreter. Each subinterpreter now has its own list of scheduled calls. (Contributed by Victor Stinner in :issue:`39984`.)
* The Windows registry is no longer used to initialize :data:`sys.path` when
the ``-E`` option is used (if :c:member:`PyConfig.use_environm... | subinterpreter, rather than being called from the main interpreter. Each subinterpreter now has its own list of scheduled calls. (Contributed by Victor Stinner in :issue:`39984`.)
* The Windows registry is no longer used to initialize :data:`sys.path` when
the ``-E`` option is used (if :c:member:`PyConfig.use_environm... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e48547f0-f69b-40d9-b0a6-7ccc00857a8f | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,108 | supabase-export-v2 | 8d7eb699079fafca | :meth:`asyncio.loop.shutdown_default_executor` has been added to :class:`~asyncio.AbstractEventLoop`, meaning alternative event loops that inherit from it should have this method defined. (Contributed by Kyle Stanley in :issue:`34037`.)
* The constant values of future flags in the :mod:`__future__` module
is updated i... | trusted_official_docs | CPython Docs | :meth:`asyncio.loop.shutdown_default_executor` has been added to :class:`~asyncio.AbstractEventLoop`, meaning alternative event loops that inherit from it should have this method defined. (Contributed by Kyle Stanley in :issue:`34037`.)
* The constant values of future flags in the :mod:`__future__` module
is updated i... | :meth:`asyncio.loop.shutdown_default_executor` has been added to :class:`~asyncio.AbstractEventLoop`, meaning alternative event loops that inherit from it should have this method defined. (Contributed by Kyle Stanley in :issue:`34037`.)
* The constant values of future flags in the :mod:`__future__` module
is updated i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e576f7cc-ee3e-415e-8d04-2cb9e631cce1 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,969 | supabase-export-v2 | e37e2ea59966be6c | To improve consistency with import statements, :func:`importlib.util.resolve_name` now raises :exc:`ImportError` instead of :exc:`ValueError` for invalid relative import attempts. (Contributed by Ngalim Siregar in :issue:`37444`.)
Import loaders which publish immutable module objects can now publish
immutable packages ... | trusted_official_docs | CPython Docs | To improve consistency with import statements, :func:`importlib.util.resolve_name` now raises :exc:`ImportError` instead of :exc:`ValueError` for invalid relative import attempts. (Contributed by Ngalim Siregar in :issue:`37444`.)
Import loaders which publish immutable module objects can now publish
immutable packages ... | To improve consistency with import statements, :func:`importlib.util.resolve_name` now raises :exc:`ImportError` instead of :exc:`ValueError` for invalid relative import attempts. (Contributed by Ngalim Siregar in :issue:`37444`.)
Import loaders which publish immutable module objects can now publish
immutable packages ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e639953d-1993-40a6-91af-388467b682f6 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,897 | supabase-export-v2 | 59d78b08db1157a9 | deprecated). In Python 3.9 *only*, you can switch back to the LL(1) parser using a command line switch (``-X oldparser``) or an environment variable (``PYTHONOLDPARSER=1``).
See :pep:`617` for more details. (Contributed by Guido van Rossum,
Pablo Galindo and Lysandros Nikolaou in :issue:`40334`.) | trusted_official_docs | CPython Docs | deprecated). In Python 3.9 *only*, you can switch back to the LL(1) parser using a command line switch (``-X oldparser``) or an environment variable (``PYTHONOLDPARSER=1``).
See :pep:`617` for more details. (Contributed by Guido van Rossum,
Pablo Galindo and Lysandros Nikolaou in :issue:`40334`.) | deprecated). In Python 3.9 *only*, you can switch back to the LL(1) parser using a command line switch (``-X oldparser``) or an environment variable (``PYTHONOLDPARSER=1``).
See :pep:`617` for more details. (Contributed by Guido van Rossum,
Pablo Galindo and Lysandros Nikolaou in :issue:`40334`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6a93988-e8ec-4b5f-a097-8b67893d42ba | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,902 | supabase-export-v2 | a9d7c305966b5171 | <devmode>` and in :ref:`debug build <debug-build>`, the *encoding* and *errors* arguments are now checked for string encoding and decoding operations. Examples: :func:`open`, :meth:`str.encode` and :meth:`bytes.decode`.
By default, for best performance, the *errors* argument is only checked at
the first encoding/decod... | trusted_official_docs | CPython Docs | <devmode>` and in :ref:`debug build <debug-build>`, the *encoding* and *errors* arguments are now checked for string encoding and decoding operations. Examples: :func:`open`, :meth:`str.encode` and :meth:`bytes.decode`.
By default, for best performance, the *errors* argument is only checked at
the first encoding/decod... | <devmode>` and in :ref:`debug build <debug-build>`, the *encoding* and *errors* arguments are now checked for string encoding and decoding operations. Examples: :func:`open`, :meth:`str.encode` and :meth:`bytes.decode`.
By default, for best performance, the *errors* argument is only checked at
the first encoding/decod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e7f0cf68-9143-4a0c-8993-58c1eff04e02 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,085 | supabase-export-v2 | 18c44afe4ca215fc | were deprecated in Python 3.2. Use ``iter(x)`` or ``list(x)`` instead of ``x.getchildren()`` and ``x.iter()`` or ``list(x.iter())`` instead of ``x.getiterator()``. (Contributed by Serhiy Storchaka in :issue:`36543`.)
* The old :mod:`plistlib` API has been removed, it was deprecated since Python
3.4. Use the :func:`~pl... | trusted_official_docs | CPython Docs | were deprecated in Python 3.2. Use ``iter(x)`` or ``list(x)`` instead of ``x.getchildren()`` and ``x.iter()`` or ``list(x.iter())`` instead of ``x.getiterator()``. (Contributed by Serhiy Storchaka in :issue:`36543`.)
* The old :mod:`plistlib` API has been removed, it was deprecated since Python
3.4. Use the :func:`~pl... | were deprecated in Python 3.2. Use ``iter(x)`` or ``list(x)`` instead of ``x.getchildren()`` and ``x.iter()`` or ``list(x.iter())`` instead of ``x.getiterator()``. (Contributed by Serhiy Storchaka in :issue:`36543`.)
* The old :mod:`plistlib` API has been removed, it was deprecated since Python
3.4. Use the :func:`~pl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea170580-d2cc-4b1b-89ff-eb796b3136fa | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,980 | supabase-export-v2 | 90e4390e78e19bae | Expanded the :func:`math.gcd` function to handle multiple arguments. Formerly, it only supported two arguments. (Contributed by Serhiy Storchaka in :issue:`39648`.)
Added :func:`math.lcm`: return the least common multiple of specified arguments. (Contributed by Mark Dickinson, Ananthakrishnan and Serhiy Storchaka in
:i... | trusted_official_docs | CPython Docs | Expanded the :func:`math.gcd` function to handle multiple arguments. Formerly, it only supported two arguments. (Contributed by Serhiy Storchaka in :issue:`39648`.)
Added :func:`math.lcm`: return the least common multiple of specified arguments. (Contributed by Mark Dickinson, Ananthakrishnan and Serhiy Storchaka in
:i... | Expanded the :func:`math.gcd` function to handle multiple arguments. Formerly, it only supported two arguments. (Contributed by Serhiy Storchaka in :issue:`39648`.)
Added :func:`math.lcm`: return the least common multiple of specified arguments. (Contributed by Mark Dickinson, Ananthakrishnan and Serhiy Storchaka in
:i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ebbc9b90-1e79-4882-94de-aff831edb458 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,087 | supabase-export-v2 | 23e09a1f8f7fc6e4 | It was not documented, tested, or used anywhere within CPython after the implementation of :pep:`442`. Patch by Joannah Nanjekye. (Contributed by Joannah Nanjekye in :issue:`15088`)
* ``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated
since Python 3.1, have been removed: use :func:`base64.enco... | trusted_official_docs | CPython Docs | It was not documented, tested, or used anywhere within CPython after the implementation of :pep:`442`. Patch by Joannah Nanjekye. (Contributed by Joannah Nanjekye in :issue:`15088`)
* ``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated
since Python 3.1, have been removed: use :func:`base64.enco... | It was not documented, tested, or used anywhere within CPython after the implementation of :pep:`442`. Patch by Joannah Nanjekye. (Contributed by Joannah Nanjekye in :issue:`15088`)
* ``base64.encodestring()`` and ``base64.decodestring()``, aliases deprecated
since Python 3.1, have been removed: use :func:`base64.enco... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ebe12b7c-3c6d-4dec-a89e-b87a2dc020e6 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,047 | supabase-export-v2 | 6368dc6b8654975a | 28.0 26.3 25.4 25.3 read_instancevar_slots 27.8 31.3 20.8 20.8 20.2 20.5 read_namedtuple 73.8 57.5 45.0 46.8 18.4 18.7 read_boundmethod 37.6 37.9 29.6 26.9 27.7 41.1
Variable and attribute write access:
write_local 8.7 9.3 5.5 5.3 4.3 4.3
write_nonlocal 10.5 11.1 5.6 5.5 4.7 4.8
write_global 19.7 21.2 18.0 18.0 15.8... | trusted_official_docs | CPython Docs | 28.0 26.3 25.4 25.3 read_instancevar_slots 27.8 31.3 20.8 20.8 20.2 20.5 read_namedtuple 73.8 57.5 45.0 46.8 18.4 18.7 read_boundmethod 37.6 37.9 29.6 26.9 27.7 41.1
Variable and attribute write access:
write_local 8.7 9.3 5.5 5.3 4.3 4.3
write_nonlocal 10.5 11.1 5.6 5.5 4.7 4.8
write_global 19.7 21.2 18.0 18.0 15.8... | 28.0 26.3 25.4 25.3 read_instancevar_slots 27.8 31.3 20.8 20.8 20.2 20.5 read_namedtuple 73.8 57.5 45.0 46.8 18.4 18.7 read_boundmethod 37.6 37.9 29.6 26.9 27.7 41.1
Variable and attribute write access:
write_local 8.7 9.3 5.5 5.3 4.3 4.3
write_nonlocal 10.5 11.1 5.6 5.5 4.7 4.8
write_global 19.7 21.2 18.0 18.0 15.8... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ebfabc4b-7c4c-4eb7-9157-2091c53ccde1 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,071 | supabase-export-v2 | 89a795e744bfaeda | * :func:`!smtpd.MailmanProxy` is now deprecated as it is unusable without an external module, ``mailman``. (Contributed by Samuel Colvin in :issue:`35800`.)
* The :mod:`!lib2to3` module now emits a :exc:`PendingDeprecationWarning`. Python 3.9 switched to a PEG parser (see :pep:`617`), and Python 3.10 may
include new l... | trusted_official_docs | CPython Docs | * :func:`!smtpd.MailmanProxy` is now deprecated as it is unusable without an external module, ``mailman``. (Contributed by Samuel Colvin in :issue:`35800`.)
* The :mod:`!lib2to3` module now emits a :exc:`PendingDeprecationWarning`. Python 3.9 switched to a PEG parser (see :pep:`617`), and Python 3.10 may
include new l... | * :func:`!smtpd.MailmanProxy` is now deprecated as it is unusable without an external module, ``mailman``. (Contributed by Samuel Colvin in :issue:`35800`.)
* The :mod:`!lib2to3` module now emits a :exc:`PendingDeprecationWarning`. Python 3.9 switched to a PEG parser (see :pep:`617`), and Python 3.10 may
include new l... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ec1ee334-da8a-459f-b90f-76423d3c4fab | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,905 | supabase-export-v2 | 1ca2f6759a1a1053 | expression can now be used as a :term:`decorator`. Previously, the grammar was much more restrictive. See :pep:`614` for details. (Contributed by Brandt Bucher in :issue:`39702`.)
* Improved help for the :mod:`typing` module. Docstrings are now shown for
all special forms and special generic aliases (like ``Union`` an... | trusted_official_docs | CPython Docs | expression can now be used as a :term:`decorator`. Previously, the grammar was much more restrictive. See :pep:`614` for details. (Contributed by Brandt Bucher in :issue:`39702`.)
* Improved help for the :mod:`typing` module. Docstrings are now shown for
all special forms and special generic aliases (like ``Union`` an... | expression can now be used as a :term:`decorator`. Previously, the grammar was much more restrictive. See :pep:`614` for details. (Contributed by Brandt Bucher in :issue:`39702`.)
* Improved help for the :mod:`typing` module. Docstrings are now shown for
all special forms and special generic aliases (like ``Union`` an... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eca09362-96f2-491f-a05d-906f9e549ae1 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,057 | supabase-export-v2 | 62ddcafc644a8534 | versions of Python. For the majority of use cases, users can leverage the Abstract Syntax Tree (AST) generation and compilation stage, using the :mod:`ast` module.
* The Public C API functions :c:func:`!PyParser_SimpleParseStringFlags`,
:c:func:`!PyParser_SimpleParseStringFlagsFilename`,
:c:func:`!PyParser_SimplePars... | trusted_official_docs | CPython Docs | versions of Python. For the majority of use cases, users can leverage the Abstract Syntax Tree (AST) generation and compilation stage, using the :mod:`ast` module.
* The Public C API functions :c:func:`!PyParser_SimpleParseStringFlags`,
:c:func:`!PyParser_SimpleParseStringFlagsFilename`,
:c:func:`!PyParser_SimplePars... | versions of Python. For the majority of use cases, users can leverage the Abstract Syntax Tree (AST) generation and compilation stage, using the :mod:`ast` module.
* The Public C API functions :c:func:`!PyParser_SimpleParseStringFlags`,
:c:func:`!PyParser_SimpleParseStringFlagsFilename`,
:c:func:`!PyParser_SimplePars... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ee8dea1b-5e77-452c-b80e-13ea010949b5 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,144 | supabase-export-v2 | c6684aa5e2abf9bc | current frame of a Python thread state. Added :c:func:`PyThreadState_GetID` function: get the unique identifier of a Python thread state. (Contributed by Victor Stinner in :issue:`39947`.)
* Added a new public :c:func:`PyObject_CallNoArgs` function to the C API, which
calls a callable Python object without any argumen... | trusted_official_docs | CPython Docs | current frame of a Python thread state. Added :c:func:`PyThreadState_GetID` function: get the unique identifier of a Python thread state. (Contributed by Victor Stinner in :issue:`39947`.)
* Added a new public :c:func:`PyObject_CallNoArgs` function to the C API, which
calls a callable Python object without any argumen... | current frame of a Python thread state. Added :c:func:`PyThreadState_GetID` function: get the unique identifier of a Python thread state. (Contributed by Victor Stinner in :issue:`39947`.)
* Added a new public :c:func:`PyObject_CallNoArgs` function to the C API, which
calls a callable Python object without any argumen... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f09207ac-af29-4472-8bd3-5c972fc83936 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,070 | supabase-export-v2 | 44b1fbe995e47216 | * Passing ``None`` as the first argument to the :func:`shlex.split` function has been deprecated. (Contributed by Zackery Spytz in :issue:`33262`.)
* :func:`!smtpd.MailmanProxy` is now deprecated as it is unusable without
an external module, ``mailman``. (Contributed by Samuel Colvin in :issue:`35800`.) | trusted_official_docs | CPython Docs | * Passing ``None`` as the first argument to the :func:`shlex.split` function has been deprecated. (Contributed by Zackery Spytz in :issue:`33262`.)
* :func:`!smtpd.MailmanProxy` is now deprecated as it is unusable without
an external module, ``mailman``. (Contributed by Samuel Colvin in :issue:`35800`.) | * Passing ``None`` as the first argument to the :func:`shlex.split` function has been deprecated. (Contributed by Zackery Spytz in :issue:`33262`.)
* :func:`!smtpd.MailmanProxy` is now deprecated as it is unusable without
an external module, ``mailman``. (Contributed by Samuel Colvin in :issue:`35800`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f167f082-032c-4f1f-95d6-26bff183a1a5 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,888 | supabase-export-v2 | b60630488e53bf2e | from a string. Corresponding ``bytes``, ``bytearray``, and ``collections.UserString`` methods have also been added. See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :issue:`39939`.)
Type Hinting Generics in Standard Collections
--------------------------------------------- | trusted_official_docs | CPython Docs | from a string. Corresponding ``bytes``, ``bytearray``, and ``collections.UserString`` methods have also been added. See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :issue:`39939`.)
Type Hinting Generics in Standard Collections
--------------------------------------------- | from a string. Corresponding ``bytes``, ``bytearray``, and ``collections.UserString`` methods have also been added. See :pep:`616` for a full description. (Contributed by Dennis Sweeney in :issue:`39939`.)
Type Hinting Generics in Standard Collections
--------------------------------------------- | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f1851cbb-df86-4d69-ab17-32cf8dd3dea2 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,050 | supabase-export-v2 | a921a4a46d3ce6c0 | 22.5 21.6 20.0 20.0 write_deque 28.7 30.1 22.7 21.8 23.5 21.7 write_dict 31.4 33.3 29.3 29.2 24.7 25.4 write_strdict 28.4 29.9 27.5 25.2 23.1 24.5
Stack (or queue) operations:
list_append_pop 93.4 112.7 75.4 74.2 50.8 50.6
deque_append_pop 43.5 57.0 49.4 49.2 42.5 44.2
deque_append_popleft 43.7 57.3 49.7 49.7 42.8 4... | trusted_official_docs | CPython Docs | 22.5 21.6 20.0 20.0 write_deque 28.7 30.1 22.7 21.8 23.5 21.7 write_dict 31.4 33.3 29.3 29.2 24.7 25.4 write_strdict 28.4 29.9 27.5 25.2 23.1 24.5
Stack (or queue) operations:
list_append_pop 93.4 112.7 75.4 74.2 50.8 50.6
deque_append_pop 43.5 57.0 49.4 49.2 42.5 44.2
deque_append_popleft 43.7 57.3 49.7 49.7 42.8 4... | 22.5 21.6 20.0 20.0 write_deque 28.7 30.1 22.7 21.8 23.5 21.7 write_dict 31.4 33.3 29.3 29.2 24.7 25.4 write_strdict 28.4 29.9 27.5 25.2 23.1 24.5
Stack (or queue) operations:
list_append_pop 93.4 112.7 75.4 74.2 50.8 50.6
deque_append_pop 43.5 57.0 49.4 49.2 42.5 44.2
deque_append_popleft 43.7 57.3 49.7 49.7 42.8 4... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f22a0768-e4b6-4a0e-a8f4-b6ca541c7516 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,925 | supabase-export-v2 | a07da2661f80d9f5 | asyncio -------
Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This is
because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For more
details, see the documentation for ``loop.create_datagram_endpoint()``. (Con... | trusted_official_docs | CPython Docs | asyncio -------
Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This is
because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For more
details, see the documentation for ``loop.create_datagram_endpoint()``. (Con... | asyncio -------
Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This is
because of the behavior of the socket option ``SO_REUSEADDR`` in UDP. For more
details, see the documentation for ``loop.create_datagram_endpoint()``. (Con... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f3a3fd53-476d-4df8-a39d-e6cf8b6eec95 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,209 | supabase-export-v2 | 45673729bb8149e6 | tarfile -------
* The extraction methods in :mod:`tarfile`, and :func:`shutil.unpack_archive`,
have a new a *filter* argument that allows limiting tar features than may be
surprising or dangerous, such as creating files outside the destination
directory. See :ref:`tarfile-extraction-filter` for details. In Python 3.... | trusted_official_docs | CPython Docs | tarfile -------
* The extraction methods in :mod:`tarfile`, and :func:`shutil.unpack_archive`,
have a new a *filter* argument that allows limiting tar features than may be
surprising or dangerous, such as creating files outside the destination
directory. See :ref:`tarfile-extraction-filter` for details. In Python 3.... | tarfile -------
* The extraction methods in :mod:`tarfile`, and :func:`shutil.unpack_archive`,
have a new a *filter* argument that allows limiting tar features than may be
surprising or dangerous, such as creating files outside the destination
directory. See :ref:`tarfile-extraction-filter` for details. In Python 3.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f4644546-e621-4fd6-99e2-e4d14ecff5ef | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,035 | supabase-export-v2 | 1c1ff68c8a23aae7 | interrupted at each bytecode instruction to check for pending signals which cannot be handled. Only the main thread of the main interpreter can handle signals.
Previously, the bytecode evaluation loop was interrupted at each instruction
until the main thread handles signals. (Contributed by Victor Stinner in :issue:`4... | trusted_official_docs | CPython Docs | interrupted at each bytecode instruction to check for pending signals which cannot be handled. Only the main thread of the main interpreter can handle signals.
Previously, the bytecode evaluation loop was interrupted at each instruction
until the main thread handles signals. (Contributed by Victor Stinner in :issue:`4... | interrupted at each bytecode instruction to check for pending signals which cannot be handled. Only the main thread of the main interpreter can handle signals.
Previously, the bytecode evaluation loop was interrupted at each instruction
until the main thread handles signals. (Contributed by Victor Stinner in :issue:`4... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f4805abd-fb72-46d8-b852-4113c5ee0acc | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,180 | supabase-export-v2 | b235a71f02ac7127 | (Contributed by Victor Stinner in :issue:`38644` and :issue:`39542`.)
* Removed ``_PyRuntime.getframe`` hook and removed ``_PyThreadState_GetFrame``
macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
by the internal C API. Removed also ``PyThreadFrameGetter`` type. (Contributed by Victor Stin... | trusted_official_docs | CPython Docs | (Contributed by Victor Stinner in :issue:`38644` and :issue:`39542`.)
* Removed ``_PyRuntime.getframe`` hook and removed ``_PyThreadState_GetFrame``
macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
by the internal C API. Removed also ``PyThreadFrameGetter`` type. (Contributed by Victor Stin... | (Contributed by Victor Stinner in :issue:`38644` and :issue:`39542`.)
* Removed ``_PyRuntime.getframe`` hook and removed ``_PyThreadState_GetFrame``
macro which was an alias to ``_PyRuntime.getframe``. They were only exposed
by the internal C API. Removed also ``PyThreadFrameGetter`` type. (Contributed by Victor Stin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6101550-6762-4435-9e61-06387ef61ed5 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,181 | supabase-export-v2 | 53984105ed78ddc4 | which was an alias to ``_PyRuntime.getframe``. They were only exposed by the internal C API. Removed also ``PyThreadFrameGetter`` type. (Contributed by Victor Stinner in :issue:`39946`.)
* Removed the following functions from the C API. Call :c:func:`PyGC_Collect`
explicitly to clear all free lists. (Contributed by In... | trusted_official_docs | CPython Docs | which was an alias to ``_PyRuntime.getframe``. They were only exposed by the internal C API. Removed also ``PyThreadFrameGetter`` type. (Contributed by Victor Stinner in :issue:`39946`.)
* Removed the following functions from the C API. Call :c:func:`PyGC_Collect`
explicitly to clear all free lists. (Contributed by In... | which was an alias to ``_PyRuntime.getframe``. They were only exposed by the internal C API. Removed also ``PyThreadFrameGetter`` type. (Contributed by Victor Stinner in :issue:`39946`.)
* Removed the following functions from the C API. Call :c:func:`PyGC_Collect`
explicitly to clear all free lists. (Contributed by In... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb13225e-8133-47b1-a757-836283464120 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,166 | supabase-export-v2 | 7f2dd9bf9ed7ced3 | * :c:func:`PyObject_IS_GC` macro was converted to a function.
* The :c:func:`!PyObject_NEW` macro becomes an alias to the
:c:macro:`PyObject_New` macro, and the :c:func:`!PyObject_NEW_VAR` macro
becomes an alias to the :c:macro:`PyObject_NewVar` macro. They no longer
access directly the :c:member:`PyTypeObject.tp_ba... | trusted_official_docs | CPython Docs | * :c:func:`PyObject_IS_GC` macro was converted to a function.
* The :c:func:`!PyObject_NEW` macro becomes an alias to the
:c:macro:`PyObject_New` macro, and the :c:func:`!PyObject_NEW_VAR` macro
becomes an alias to the :c:macro:`PyObject_NewVar` macro. They no longer
access directly the :c:member:`PyTypeObject.tp_ba... | * :c:func:`PyObject_IS_GC` macro was converted to a function.
* The :c:func:`!PyObject_NEW` macro becomes an alias to the
:c:macro:`PyObject_New` macro, and the :c:func:`!PyObject_NEW_VAR` macro
becomes an alias to the :c:macro:`PyObject_NewVar` macro. They no longer
access directly the :c:member:`PyTypeObject.tp_ba... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb2376ea-fc3c-461b-b1b8-58024e878d86 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,882 | supabase-export-v2 | a08dcc37b580e04e | Dictionary Merge & Update Operators -----------------------------------
Merge (``|``) and update (``|=``) operators have been added to the built-in
:class:`dict` class. Those complement the existing ``dict.update`` and
``{**d1, **d2}`` methods of merging dictionaries. | trusted_official_docs | CPython Docs | Dictionary Merge & Update Operators -----------------------------------
Merge (``|``) and update (``|=``) operators have been added to the built-in
:class:`dict` class. Those complement the existing ``dict.update`` and
``{**d1, **d2}`` methods of merging dictionaries. | Dictionary Merge & Update Operators -----------------------------------
Merge (``|``) and update (``|=``) operators have been added to the built-in
:class:`dict` class. Those complement the existing ``dict.update`` and
``{**d1, **d2}`` methods of merging dictionaries. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb59132e-01be-47c2-bdb1-1af71bf08e79 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,913 | supabase-export-v2 | 7d113bbfecb2e811 | >>> from zoneinfo import ZoneInfo >>> import datetime as dt
>>> # Daylight saving time
>>> when = dt.datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles"))
>>> print(when)
2020-10-31 12:00:00-07:00
>>> when.tzname()
'PDT' | trusted_official_docs | CPython Docs | >>> from zoneinfo import ZoneInfo >>> import datetime as dt
>>> # Daylight saving time
>>> when = dt.datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles"))
>>> print(when)
2020-10-31 12:00:00-07:00
>>> when.tzname()
'PDT' | >>> from zoneinfo import ZoneInfo >>> import datetime as dt
>>> # Daylight saving time
>>> when = dt.datetime(2020, 10, 31, 12, tzinfo=ZoneInfo("America/Los_Angeles"))
>>> print(when)
2020-10-31 12:00:00-07:00
>>> when.tzname()
'PDT' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fbdf04b3-4366-4b01-bb23-55ed253e809e | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 61,114 | supabase-export-v2 | 88843c24024bd432 | that :func:`codecs.lookup` also converts the name to lower case. For example, ``"latex+latin1"`` encoding name is now normalized to ``"latex_latin1"``. (Contributed by Jordon Xu in :issue:`37751`.)
Changes in the C API
-------------------- | trusted_official_docs | CPython Docs | that :func:`codecs.lookup` also converts the name to lower case. For example, ``"latex+latin1"`` encoding name is now normalized to ``"latex_latin1"``. (Contributed by Jordon Xu in :issue:`37751`.)
Changes in the C API
-------------------- | that :func:`codecs.lookup` also converts the name to lower case. For example, ``"latex+latin1"`` encoding name is now normalized to ``"latex_latin1"``. (Contributed by Jordon Xu in :issue:`37751`.)
Changes in the C API
-------------------- | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fe4a216f-53ad-4854-835a-1b3c8697ce0f | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,977 | supabase-export-v2 | d3a303a79f061ec8 | Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If present, scope zone ID is available through the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:`34788`.)
Starting with Python 3.9.5 the :mod:`ipaddress` module no longer
accepts any leading zeros... | trusted_official_docs | CPython Docs | Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If present, scope zone ID is available through the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:`34788`.)
Starting with Python 3.9.5 the :mod:`ipaddress` module no longer
accepts any leading zeros... | Scoped IPv6 addresses can be parsed using :class:`ipaddress.IPv6Address`. If present, scope zone ID is available through the :attr:`~ipaddress.IPv6Address.scope_id` attribute. (Contributed by Oleksandr Pavliuk in :issue:`34788`.)
Starting with Python 3.9.5 the :mod:`ipaddress` module no longer
accepts any leading zeros... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fed57d4f-76f9-44f9-b87f-4d94ff5c106c | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,896 | supabase-export-v2 | a8e235d2a80ff145 | The :mod:`ast` module uses the new parser and produces the same AST as the old parser.
In Python 3.10, the old parser will be deleted and so will all
functionality that depends on it (primarily the :mod:`!parser` module,
which has long been deprecated). In Python 3.9 *only*, you can switch
back to the LL(1) parser usin... | trusted_official_docs | CPython Docs | The :mod:`ast` module uses the new parser and produces the same AST as the old parser.
In Python 3.10, the old parser will be deleted and so will all
functionality that depends on it (primarily the :mod:`!parser` module,
which has long been deprecated). In Python 3.9 *only*, you can switch
back to the LL(1) parser usin... | The :mod:`ast` module uses the new parser and produces the same AST as the old parser.
In Python 3.10, the old parser will be deleted and so will all
functionality that depends on it (primarily the :mod:`!parser` module,
which has long been deprecated). In Python 3.9 *only*, you can switch
back to the LL(1) parser usin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ff665fdd-384a-4cd3-899c-d066b3c5353e | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.9.rst | unknown | ccb1d8dc-1c4d-4779-a109-4f618f1b04a2 | 60,923 | supabase-export-v2 | 91127b8f9a9f2cb5 | object and produce a string with code that would produce an equivalent :class:`ast.AST` object when parsed. (Contributed by Pablo Galindo and Batuhan Taskaya in :issue:`38870`.)
Added docstrings to AST nodes that contains the ASDL signature used to
construct that node. (Contributed by Batuhan Taskaya in :issue:`39638`.... | trusted_official_docs | CPython Docs | object and produce a string with code that would produce an equivalent :class:`ast.AST` object when parsed. (Contributed by Pablo Galindo and Batuhan Taskaya in :issue:`38870`.)
Added docstrings to AST nodes that contains the ASDL signature used to
construct that node. (Contributed by Batuhan Taskaya in :issue:`39638`.... | object and produce a string with code that would produce an equivalent :class:`ast.AST` object when parsed. (Contributed by Pablo Galindo and Batuhan Taskaya in :issue:`38870`.)
Added docstrings to AST nodes that contains the ASDL signature used to
construct that node. (Contributed by Batuhan Taskaya in :issue:`39638`.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
00e862d4-4b61-4e96-8d45-1b527b6d0a86 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,401 | supabase-export-v2 | dcbe161e9ca83ea7 | The ``count()``, ``find()``, ``rfind()``, ``index()`` and ``rindex()`` methods of :class:`bytes` and :class:`bytearray` objects now accept an integer between 0 and 255 as their first argument.
(Contributed by Petri Lehtinen in :issue:`12170`.) | trusted_official_docs | CPython Docs | The ``count()``, ``find()``, ``rfind()``, ``index()`` and ``rindex()`` methods of :class:`bytes` and :class:`bytearray` objects now accept an integer between 0 and 255 as their first argument.
(Contributed by Petri Lehtinen in :issue:`12170`.) | The ``count()``, ``find()``, ``rfind()``, ``index()`` and ``rindex()`` methods of :class:`bytes` and :class:`bytearray` objects now accept an integer between 0 and 255 as their first argument.
(Contributed by Petri Lehtinen in :issue:`12170`.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
024569c0-5c4c-4bc1-b565-3aac98cf4b8a | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,611 | supabase-export-v2 | cf09e9f25186554c | sched -----
* :meth:`~sched.scheduler.run` now accepts a *blocking* parameter which when
set to false makes the method execute the scheduled events due to expire
soonest (if any) and then return immediately. This is useful in case you want to use the :class:`~sched.scheduler` in
non-blocking applications. (Contribut... | trusted_official_docs | CPython Docs | sched -----
* :meth:`~sched.scheduler.run` now accepts a *blocking* parameter which when
set to false makes the method execute the scheduled events due to expire
soonest (if any) and then return immediately. This is useful in case you want to use the :class:`~sched.scheduler` in
non-blocking applications. (Contribut... | sched -----
* :meth:`~sched.scheduler.run` now accepts a *blocking* parameter which when
set to false makes the method execute the scheduled events due to expire
soonest (if any) and then return immediately. This is useful in case you want to use the :class:`~sched.scheduler` in
non-blocking applications. (Contribut... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02a6c553-e44b-4a38-b195-ef21197a4c3c | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,729 | supabase-export-v2 | 94f53846a7cad01d | on the ANSI code page anymore and to support any filename. * :issue:`13988`: The :mod:`!xml.etree.cElementTree` module is deprecated. The accelerator is used automatically whenever available.
* The behaviour of :func:`!time.clock` depends on the platform: use the new
:func:`time.perf_counter` or :func:`time.process_ti... | trusted_official_docs | CPython Docs | on the ANSI code page anymore and to support any filename. * :issue:`13988`: The :mod:`!xml.etree.cElementTree` module is deprecated. The accelerator is used automatically whenever available.
* The behaviour of :func:`!time.clock` depends on the platform: use the new
:func:`time.perf_counter` or :func:`time.process_ti... | on the ANSI code page anymore and to support any filename. * :issue:`13988`: The :mod:`!xml.etree.cElementTree` module is deprecated. The accelerator is used automatically whenever available.
* The behaviour of :func:`!time.clock` depends on the platform: use the new
:func:`time.perf_counter` or :func:`time.process_ti... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
04060c6a-a104-4d91-a99e-c14ba3d592a6 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,340 | supabase-export-v2 | 716f48ce750af68c | debugging capability is lost, as the original exception context remains available if needed (for example, if an intervening library has incorrectly suppressed valuable underlying details)::
>>> try:
... D({}).x
... except AttributeError as exc:
... print(repr(exc.__context__))
... KeyError('x',) | trusted_official_docs | CPython Docs | debugging capability is lost, as the original exception context remains available if needed (for example, if an intervening library has incorrectly suppressed valuable underlying details)::
>>> try:
... D({}).x
... except AttributeError as exc:
... print(repr(exc.__context__))
... KeyError('x',) | debugging capability is lost, as the original exception context remains available if needed (for example, if an intervening library has incorrectly suppressed valuable underlying details)::
>>> try:
... D({}).x
... except AttributeError as exc:
... print(repr(exc.__context__))
... KeyError('x',) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
04f9a109-f036-44c6-b06a-9bac68956c8f | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,513 | supabase-export-v2 | 2fa553d9e10ec148 | You can also create addresses from parts::
>>> m['cc'] = [Group('pals', [Address('Bob', 'bob', 'example.com'),
... Address('Sally', 'sally', 'example.com')]),
... Address('Bonzo', addr_spec='bonz@laugh.com')]
>>> print(m)
To: =?utf-8?q?=C3=89ric?= <foo@example.com>
Date: Fri, 25 May 2012 21:44:27 -0400
cc: pals: ... | trusted_official_docs | CPython Docs | You can also create addresses from parts::
>>> m['cc'] = [Group('pals', [Address('Bob', 'bob', 'example.com'),
... Address('Sally', 'sally', 'example.com')]),
... Address('Bonzo', addr_spec='bonz@laugh.com')]
>>> print(m)
To: =?utf-8?q?=C3=89ric?= <foo@example.com>
Date: Fri, 25 May 2012 21:44:27 -0400
cc: pals: ... | You can also create addresses from parts::
>>> m['cc'] = [Group('pals', [Address('Bob', 'bob', 'example.com'),
... Address('Sally', 'sally', 'example.com')]),
... Address('Bonzo', addr_spec='bonz@laugh.com')]
>>> print(m)
To: =?utf-8?q?=C3=89ric?= <foo@example.com>
Date: Fri, 25 May 2012 21:44:27 -0400
cc: pals: ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0654277b-0100-4308-8e60-9af2201ba463 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,328 | supabase-export-v2 | 53697243835855f6 | loop, ``yield from`` allows subgenerators to receive sent and thrown values directly from the calling scope, and return a final value to the outer generator::
>>> def accumulate():
... tally = 0
... while 1:
... next = yield
... if next is None:
... return tally
... tally += next
... >>> def gather_tallies(talli... | trusted_official_docs | CPython Docs | loop, ``yield from`` allows subgenerators to receive sent and thrown values directly from the calling scope, and return a final value to the outer generator::
>>> def accumulate():
... tally = 0
... while 1:
... next = yield
... if next is None:
... return tally
... tally += next
... >>> def gather_tallies(talli... | loop, ``yield from`` allows subgenerators to receive sent and thrown values directly from the calling scope, and return a final value to the outer generator::
>>> def accumulate():
... tally = 0
... while 1:
... next = yield
... if next is None:
... return tally
... tally += next
... >>> def gather_tallies(talli... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07d66fd4-37f7-4fb7-a3a7-21e3df3fb92d | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,621 | supabase-export-v2 | 8ee6d234c1abb602 | * New functions:
* :func:`~shutil.disk_usage`: provides total, used and free disk space
statistics. (Contributed by Giampaolo Rodolà in :issue:`12442`.)
* :func:`~shutil.chown`: allows one to change user and/or group of the given
path also specifying the user/group names and not only their numeric
ids. (Contributed... | trusted_official_docs | CPython Docs | * New functions:
* :func:`~shutil.disk_usage`: provides total, used and free disk space
statistics. (Contributed by Giampaolo Rodolà in :issue:`12442`.)
* :func:`~shutil.chown`: allows one to change user and/or group of the given
path also specifying the user/group names and not only their numeric
ids. (Contributed... | * New functions:
* :func:`~shutil.disk_usage`: provides total, used and free disk space
statistics. (Contributed by Giampaolo Rodolà in :issue:`12442`.)
* :func:`~shutil.chown`: allows one to change user and/or group of the given
path also specifying the user/group names and not only their numeric
ids. (Contributed... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
08024f48-5a8b-4f4c-ab75-0030fa25ea41 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,579 | supabase-export-v2 | ea14a84205e0c153 | manipulate file descriptors instead of file names. Python 3.3 enhances existing functions and introduces new functions to work on file descriptors (:issue:`4761`, :issue:`10755` and :issue:`14626`).
- The :mod:`os` module has a new :func:`~os.fwalk` function similar to
:func:`~os.walk` except that it also yields file ... | trusted_official_docs | CPython Docs | manipulate file descriptors instead of file names. Python 3.3 enhances existing functions and introduces new functions to work on file descriptors (:issue:`4761`, :issue:`10755` and :issue:`14626`).
- The :mod:`os` module has a new :func:`~os.fwalk` function similar to
:func:`~os.walk` except that it also yields file ... | manipulate file descriptors instead of file names. Python 3.3 enhances existing functions and introduces new functions to work on file descriptors (:issue:`4761`, :issue:`10755` and :issue:`14626`).
- The :mod:`os` module has a new :func:`~os.fwalk` function similar to
:func:`~os.walk` except that it also yields file ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0877e614-69a8-4642-a274-eed4250e8e84 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,774 | supabase-export-v2 | 26864e5465d9920b | and you want to benefit of the memory footprint reduction provided by :pep:`393`, you have to convert your code to the new :doc:`Unicode API <../c-api/unicode>`.
However, if you only have been using high-level functions such as
:c:func:`PyUnicode_Concat()`, :c:func:`PyUnicode_Join` or
:c:func:`PyUnicode_FromFormat()`... | trusted_official_docs | CPython Docs | and you want to benefit of the memory footprint reduction provided by :pep:`393`, you have to convert your code to the new :doc:`Unicode API <../c-api/unicode>`.
However, if you only have been using high-level functions such as
:c:func:`PyUnicode_Concat()`, :c:func:`PyUnicode_Join` or
:c:func:`PyUnicode_FromFormat()`... | and you want to benefit of the memory footprint reduction provided by :pep:`393`, you have to convert your code to the new :doc:`Unicode API <../c-api/unicode>`.
However, if you only have been using high-level functions such as
:c:func:`PyUnicode_Concat()`, :c:func:`PyUnicode_Join` or
:c:func:`PyUnicode_FromFormat()`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a34bee7-e63e-45da-bb8f-350dd6710ff3 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,382 | supabase-export-v2 | 1760022429c41144 | finder>` by introducing :class:`importlib.abc.MetaPathFinder` and :class:`importlib.abc.PathEntryFinder`, respectively. The old ABC of :class:`!importlib.abc.Finder` is now only provided for backwards-compatibility and does not enforce any method requirements.
In terms of finders, :class:`importlib.machinery.FileFinder... | trusted_official_docs | CPython Docs | finder>` by introducing :class:`importlib.abc.MetaPathFinder` and :class:`importlib.abc.PathEntryFinder`, respectively. The old ABC of :class:`!importlib.abc.Finder` is now only provided for backwards-compatibility and does not enforce any method requirements.
In terms of finders, :class:`importlib.machinery.FileFinder... | finder>` by introducing :class:`importlib.abc.MetaPathFinder` and :class:`importlib.abc.PathEntryFinder`, respectively. The old ABC of :class:`!importlib.abc.Finder` is now only provided for backwards-compatibility and does not enforce any method requirements.
In terms of finders, :class:`importlib.machinery.FileFinder... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a51fee0-4f1f-4804-ac32-5e2e1b37c3e9 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,389 | supabase-export-v2 | da3909d1a4f42215 | instead of being directly exposed. This means that one can now easily remove or change the order of the various finders to fit one's needs.
Another change is that all modules have a ``__loader__`` attribute, storing the
loader used to create the module. :pep:`302` has been updated to make this
attribute mandatory for l... | trusted_official_docs | CPython Docs | instead of being directly exposed. This means that one can now easily remove or change the order of the various finders to fit one's needs.
Another change is that all modules have a ``__loader__`` attribute, storing the
loader used to create the module. :pep:`302` has been updated to make this
attribute mandatory for l... | instead of being directly exposed. This means that one can now easily remove or change the order of the various finders to fit one's needs.
Another change is that all modules have a ``__loader__`` attribute, storing the
loader used to create the module. :pep:`302` has been updated to make this
attribute mandatory for l... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0abcc8f2-5552-4733-8685-1cad0f16a682 | CPython Docs | file://datasets/cpython/Doc/whatsnew/3.3.rst | unknown | e55be37b-f927-41ae-9e81-fd37f5e5c8d2 | 61,316 | supabase-export-v2 | 20be8a76532768b4 | IOError as err: if err.errno == ENOENT: print("document.txt file is missing") elif err.errno in (EACCES, EPERM): print("You are not allowed to read document.txt") else: raise
can now be written without the :mod:`errno` import and without manual
inspection of exception attributes:: | trusted_official_docs | CPython Docs | IOError as err: if err.errno == ENOENT: print("document.txt file is missing") elif err.errno in (EACCES, EPERM): print("You are not allowed to read document.txt") else: raise
can now be written without the :mod:`errno` import and without manual
inspection of exception attributes:: | IOError as err: if err.errno == ENOENT: print("document.txt file is missing") elif err.errno in (EACCES, EPERM): print("You are not allowed to read document.txt") else: raise
can now be written without the :mod:`errno` import and without manual
inspection of exception attributes:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.