mirror of https://github.com/python/cpython
gh-91058: Add what's new entry for the improvement in commit 7cfbb49fcd
(#99198)
This commit is contained in:
parent
e02f1e2df9
commit
be31ecf8b3
|
@ -106,6 +106,16 @@ Improved Error Messages
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
SyntaxError: Did you mean to use 'from ... import ...' instead?
|
SyntaxError: Did you mean to use 'from ... import ...' instead?
|
||||||
|
|
||||||
|
* :exc:`ImportError` exceptions raised from failed ``from <module> import
|
||||||
|
<name>`` statements now include suggestions for the value of ``<name>`` based on the
|
||||||
|
available names in ``<module>``. Contributed by Pablo Galindo in :gh:`91058`.
|
||||||
|
|
||||||
|
>>> from collections import chainmap
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "<stdin>", line 1, in <module>
|
||||||
|
ImportError: cannot import name 'chainmap' from 'collections'. Did you mean: 'ChainMap'?
|
||||||
|
|
||||||
|
|
||||||
New Features
|
New Features
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue