Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions Misc/NEWS.d/3.10.0a1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ convention. Patch by Donghee Na.
.. bpo: 1635741
.. date: 2020-09-26-14-43-30
.. nonce: aJS9B3
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_bisect` module to the multi-phase initialization API
(:pep:`489`).
Expand Down Expand Up @@ -126,7 +126,7 @@ Taskaya.
.. bpo: 1635741
.. date: 2020-09-12-18-34-34
.. nonce: lh335O
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_lsprof` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -136,7 +136,7 @@ Port the :mod:`!_lsprof` extension module to multi-phase initialization
.. bpo: 1635741
.. date: 2020-09-08-21-58-47
.. nonce: vdjSLH
.. section: Core and Builtins
.. section: Library

Port the :mod:`cmath` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -146,7 +146,7 @@ Port the :mod:`cmath` extension module to multi-phase initialization
.. bpo: 1635741
.. date: 2020-09-08-20-39-43
.. nonce: jiXmyT
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_scproxy` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -156,7 +156,7 @@ Port the :mod:`!_scproxy` extension module to multi-phase initialization
.. bpo: 1635741
.. date: 2020-09-07-11-35-02
.. nonce: rvIexb
.. section: Core and Builtins
.. section: Library

Port the :mod:`termios` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -166,7 +166,7 @@ Port the :mod:`termios` extension module to multi-phase initialization
.. bpo: 1635741
.. date: 2020-09-07-09-45-47
.. nonce: QuDIut
.. section: Core and Builtins
.. section: Library

Convert the :mod:`!_sha256` extension module types to heap types.

Expand All @@ -185,7 +185,7 @@ classes with a huge amount of arguments. Patch by Pablo Galindo.
.. bpo: 1635741
.. date: 2020-09-01-17-22-35
.. nonce: CnRME3
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_overlapped` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -195,7 +195,7 @@ Port the :mod:`!_overlapped` extension module to multi-phase initialization
.. bpo: 1635741
.. date: 2020-09-01-17-08-07
.. nonce: X9CZgo
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_curses_panel` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -205,7 +205,7 @@ Port the :mod:`!_curses_panel` extension module to multi-phase initialization
.. bpo: 1635741
.. date: 2020-09-01-17-06-02
.. nonce: 5jZymK
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_opcode` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -225,7 +225,7 @@ format string in f-string and :meth:`str.format`.
.. bpo: 41675
.. date: 2020-08-31-14-53-17
.. nonce: VSoqWU
.. section: Core and Builtins
.. section: Library

The implementation of :func:`signal.siginterrupt` now uses
:c:func:`!sigaction` (if it is available in the system) instead of the
Expand Down Expand Up @@ -257,7 +257,7 @@ Fix a crash that occurred when destroying subclasses of
.. bpo: 1635741
.. date: 2020-08-28-20-54-04
.. nonce: 7ijlcI
.. section: Core and Builtins
.. section: Library

Port the :mod:`zlib` extension module to multi-phase initialization
(:pep:`489`).
Expand All @@ -280,7 +280,7 @@ initialized ``_ast`` module.
.. bpo: 40077
.. date: 2020-08-25-22-43-33
.. nonce: vcxSUa
.. section: Core and Builtins
.. section: Library

Convert :mod:`!_operator` to use :c:func:`PyType_FromSpec`.

Expand All @@ -298,7 +298,7 @@ Port :mod:`!_sha3` to multi-phase init. Convert static types to heap types.
.. bpo: 1635741
.. date: 2020-08-13-07-18-05
.. nonce: FC13e7
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_blake2` extension module to the multi-phase initialization
API (:pep:`489`).
Expand Down Expand Up @@ -337,7 +337,7 @@ The output of ``python --help`` contains now only ASCII characters.
.. bpo: 1635741
.. date: 2020-08-10-16-11-32
.. nonce: O0d3ym
.. section: Core and Builtins
.. section: Library

Port the :mod:`!_sha1`, :mod:`!_sha512`, and :mod:`!_md5` extension modules to
multi-phase initialization API (:pep:`489`).
Expand Down Expand Up @@ -454,7 +454,7 @@ Port :mod:`multiprocessing` to multi-phase initialization
.. bpo: 1635741
.. date: 2020-07-06-20-43-19
.. nonce: LYhsni
.. section: Core and Builtins
.. section: Library

Port :mod:`winapi` to multiphase initialization

Expand Down Expand Up @@ -486,7 +486,7 @@ will tagged as so.
.. bpo: 1635741
.. date: 2020-07-03-23-10-02
.. nonce: F5coWe
.. section: Core and Builtins
.. section: Library

Port :mod:`faulthandler` to multiphase initialization.

Expand All @@ -495,7 +495,7 @@ Port :mod:`faulthandler` to multiphase initialization.
.. bpo: 1635741
.. date: 2020-07-01-20-17-38
.. nonce: -AtPYu
.. section: Core and Builtins
.. section: Library

Port :mod:`sha256` to multiphase initialization

Expand Down Expand Up @@ -634,7 +634,7 @@ Remove the remaining files from the old parser and the :mod:`symbol` module.
.. bpo: 40077
.. date: 2020-06-18-19-04-30
.. nonce: _yI-ax
.. section: Core and Builtins
.. section: Library

Convert :mod:`!_bz2` to use :c:func:`PyType_FromSpec`.

Expand All @@ -643,7 +643,7 @@ Convert :mod:`!_bz2` to use :c:func:`PyType_FromSpec`.
.. bpo: 41006
.. date: 2020-06-18-00-07-09
.. nonce: H-wN-d
.. section: Core and Builtins
.. section: Library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave this as Core and Builtins. It is about the behavior of the core interpreter.


The ``encodings.latin_1`` module is no longer imported at startup. Now it is
only imported when it is the filesystem encoding or the stdio encoding.
Expand Down Expand Up @@ -712,7 +712,7 @@ Fix refleak in _Py_fopen_obj() when PySys_Audit() fails
.. bpo: 40950
.. date: 2020-06-12-00-12-28
.. nonce: tzMy7m
.. section: Core and Builtins
.. section: Library

Add a state to the :mod:`!nis` module (:pep:`3121`) and apply the multiphase
initialization. Patch by Donghee Na.
Expand Down Expand Up @@ -999,7 +999,7 @@ Improve performance of generators by not raising internal StopIteration.
.. bpo: 1635741
.. date: 2020-04-10-23-54-57
.. nonce: ZURqoN
.. section: Core and Builtins
.. section: Library

Port :mod:`mmap` to multiphase initialization.

Expand All @@ -1008,7 +1008,7 @@ Port :mod:`mmap` to multiphase initialization.
.. bpo: 1635741
.. date: 2020-04-05-02-35-08
.. nonce: Kfe9fT
.. section: Core and Builtins
.. section: Library

Port :mod:`!_lzma` to multiphase initialization.

Expand Down Expand Up @@ -1040,7 +1040,7 @@ representation of an integer. Patch by Niklas Fiekas.
.. bpo: 36982
.. date: 2019-05-25-05-27-39
.. nonce: 0UHgfB
.. section: Core and Builtins
.. section: Library

Use ncurses extended color functions when available to support terminals
with 256 colors, and add the new function
Expand Down
2 changes: 1 addition & 1 deletion Misc/NEWS.d/3.10.0a2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Micro optimization for range.index if step is 1. Patch by Donghee Na.
.. bpo: 41435
.. date: 2020-08-07-13-42-48
.. nonce: qPWjJA
.. section: Core and Builtins
.. section: Library

Add ``sys._current_exceptions()`` function to retrieve a dictionary mapping
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sysmodule is a core & built-in strictly speaking, but I think it's fine to keep it under Library as it's the user-facing stuff.

This comment was marked as spam.

each thread's identifier to the topmost exception currently active in that
Expand Down
6 changes: 3 additions & 3 deletions Misc/NEWS.d/3.10.0a3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ non-buffer object.
.. bpo: 1635741
.. date: 2020-11-18-23-46-31
.. nonce: GVOQ-m
.. section: Core and Builtins
.. section: Library

Port the ``_warnings`` extension module to the multi-phase initialization
Comment on lines +92 to 94
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this change is in Python/_warnings.c, should this entry stay under Core and Builtins?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in Python because we need to access it from everywhere, but the module itself is more as a "library" module. @serhiy-storchaka thoughts on this one? I think it doesn't really matter though (and it could even be a "build" change...).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is on border. I have no strong opinion.

There is a stable C API for warnings, but it can be used without importing the module, and I think this change did not affect the users of this C API. So, I think it is fine to keep Library.

API (:pep:`489`). Patch by Victor Stinner.
Expand Down Expand Up @@ -204,7 +204,7 @@ Pablo Galindo.
.. bpo: 40077
.. date: 2020-11-03-21-58-27
.. nonce: a9qM1j
.. section: Core and Builtins
.. section: Library

Convert :mod:`queue` to use heap types.

Expand All @@ -223,7 +223,7 @@ objects. See PEP 626 for details.
.. bpo: 40077
.. date: 2020-11-02-14-39-48
.. nonce: grY9TG
.. section: Core and Builtins
.. section: Library

Convert :mod:`mmap` to use heap types.

Expand Down
12 changes: 6 additions & 6 deletions Misc/NEWS.d/3.10.0a4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ blocks
.. bpo: 42639
.. date: 2020-12-09-01-55-10
.. nonce: 5pI5HG
.. section: Core and Builtins
.. section: Library

Make the :mod:`atexit` module state per-interpreter. It is now safe have
more than one :mod:`atexit` module instance. Patch by Donghee Na and Victor
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per PR description (Core and Builtins)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a distinction between a built-in module and a built-in. I'd leave it in "Library" here. (A builtin module is a module that is always in the interpreter and contributes to its overall filesize; it's also statically linked). What matters here is what happens for the user (that is, they can now use atexit in sub-interpreters).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no stable public C API for atexit. Even if this is tied to interpreter internals, the only way it can be used by importing the atexit module. So, Library.

Expand All @@ -124,7 +124,7 @@ the filename.
.. bpo: 42195
.. date: 2020-11-20-00-57-47
.. nonce: HeqcpS
.. section: Core and Builtins
.. section: Library

The ``__args__`` of the parameterized generics for :data:`typing.Callable`
and :class:`collections.abc.Callable` are now consistent. The ``__args__``
Expand All @@ -143,7 +143,7 @@ Ken Jin.
.. bpo: 40137
.. date: 2020-11-19-23-12-57
.. nonce: bihl9O
.. section: Core and Builtins
.. section: Library

Convert functools module to use :c:func:`PyType_FromModuleAndSpec`.

Expand All @@ -152,7 +152,7 @@ Convert functools module to use :c:func:`PyType_FromModuleAndSpec`.
.. bpo: 40077
.. date: 2020-11-03-13-46-10
.. nonce: NfAIdj
.. section: Core and Builtins
.. section: Library

Convert :mod:`array` to use heap types, and establish module state for
these.
Expand All @@ -162,7 +162,7 @@ these.
.. bpo: 42008
.. date: 2020-10-12-14-51-59
.. nonce: ijWw2I
.. section: Core and Builtins
.. section: Library

Fix _random.Random() seeding.

Expand All @@ -171,7 +171,7 @@ Fix _random.Random() seeding.
.. bpo: 1635741
.. date: 2020-09-12-19-21-52
.. nonce: F2kDrU
.. section: Core and Builtins
.. section: Library

Port the :mod:`pyexpat` extension module to multi-phase initialization
(:pep:`489`).
Expand Down
8 changes: 4 additions & 4 deletions Misc/NEWS.d/3.10.0a5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ by Pablo Galindo.
.. bpo: 42924
.. date: 2021-01-13-14-06-01
.. nonce: _WS1Ok
.. section: Core and Builtins
.. section: Library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bytearray is a built-in...


Fix ``bytearray`` repetition incorrectly copying data from the start of the
buffer, even if the data is offset within the buffer (e.g. after reassigning
Expand Down Expand Up @@ -136,7 +136,7 @@ frame.f_lineno is correct even if frame.f_trace is set to True
.. bpo: 37324
.. date: 2020-12-12-20-09-12
.. nonce: jB-9_U
.. section: Core and Builtins
.. section: Library

Remove deprecated aliases to :ref:`collections-abstract-base-classes` from
the :mod:`collections` module.
Expand All @@ -146,7 +146,7 @@ the :mod:`collections` module.
.. bpo: 41994
.. date: 2020-10-10-14-16-03
.. nonce: Xop8sV
.. section: Core and Builtins
.. section: Library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still a core & builtins.


Fixed possible leak in ``import`` when ``sys.modules`` is not a ``dict``.

Expand All @@ -155,7 +155,7 @@ Fixed possible leak in ``import`` when ``sys.modules`` is not a ``dict``.
.. bpo: 27772
.. date: 2018-12-20-23-59-23
.. nonce: idHEcj
.. section: Core and Builtins
.. section: Library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is affecting string formattin... so built-in.


In string formatting, preceding the *width* field by ``'0'`` no longer
affects the default alignment for strings.
Expand Down
4 changes: 2 additions & 2 deletions Misc/NEWS.d/3.10.0a6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Patch by Pablo Galindo.
.. bpo: 42819
.. date: 2021-01-04-23-54-34
.. nonce: 4KO6wU
.. section: Core and Builtins
.. section: Library

:mod:`readline`: Explicitly disable bracketed paste in the interactive
interpreter, even if it's set in the inputrc, is enabled by default (eg GNU
Expand Down Expand Up @@ -144,7 +144,7 @@ Implement :pep:`634` (structural pattern matching). Patch by Brandt Bucher.
.. bpo: 40692
.. date: 2020-05-19-22-10-05
.. nonce: ajEhrR
.. section: Core and Builtins
.. section: Library

In the :class:`concurrent.futures.ProcessPoolExecutor`, validate that
:func:`multiprocess.synchronize` is available on a given platform and rely
Expand Down
10 changes: 5 additions & 5 deletions Misc/NEWS.d/3.10.0a7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Update CPython bytecode magic number.
.. bpo: 43672
.. date: 2021-03-31-09-12-54
.. nonce: jTT5uG
.. section: Core and Builtins
.. section: Library

Raise ImportWarning when calling find_loader().
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change affecting more only importlib or is it affecting the entire interpreter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change only affects importlib

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking this one is Core and Builtins. It's true that the changes are in importlib, but the PR modifies _bootstrap_external.py and thus affects how cpython finds modules globally. Specifically, I expect anything that uses find_loader() would be implicated by this change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out.


Expand Down Expand Up @@ -81,7 +81,7 @@ instruction dispatch a bit.
.. bpo: 40645
.. date: 2021-03-29-11-55-06
.. nonce: PhaT-B
.. section: Core and Builtins
.. section: Library

Fix reference leak in the :mod:`!_hashopenssl` extension. Patch by Pablo
Galindo.
Expand All @@ -91,7 +91,7 @@ Galindo.
.. bpo: 42134
.. date: 2021-03-26-17-30-19
.. nonce: G4Sjxg
.. section: Core and Builtins
.. section: Library

Calls to find_module() by the import system now raise ImportWarning.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the changes are in Lib/importlib/_bootstrap.py and Lib/importlib/_bootstrap_external.py, I believe this belongs in Core and Builtins. @picnixz could you please confirm?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Expand Down Expand Up @@ -120,7 +120,7 @@ convention. Patch by Donghee Na.
.. bpo: 42137
.. date: 2021-03-20-19-54-47
.. nonce: A8aQvj
.. section: Core and Builtins
.. section: Library

The import system now prefers using ``__spec__`` for ``ModuleType.__repr__``
Comment thread
serhiy-storchaka marked this conversation as resolved.
over ``module_repr()``.
Expand Down Expand Up @@ -150,7 +150,7 @@ continuation characters. Patch by Pablo Galindo.
.. bpo: 43517
.. date: 2021-03-16-17-12-54
.. nonce: zAo6Ws
.. section: Core and Builtins
.. section: Library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again.


Fix misdetection of circular imports when using ``from pkg.mod import
attr``, which caused false positives in non-trivial multi-threaded code.
Expand Down
Loading
Loading