10000 bpo-43950: Add documentation for PEP-657 by ammaraskar · Pull Request #27047 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-43950: Add documentation for PEP-657 #27047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 13, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add example of binop specialization
  • Loading branch information
ammaraskar committed Jul 12, 2021
commit 577d0fa86ca04249109e0a8d5656f3bd2a614bba
12 changes: 11 additions & 1 deletion Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ that caused the error instead of just the line. For example:

Previous versions of the interpreter would point to just the line making it
ambiguous which object was ``None``. These enhanced errors can also be helpful
when dealing with deeply nested dictionary objects and multiple function calls:
when dealing with deeply nested dictionary objects and multiple function calls,

.. code-block:: python

Expand All @@ -110,6 +110,16 @@ when dealing with deeply nested dictionary objects and multiple function calls:
~~~~~~~~~~~~~~~~~~^^^^^
TypeError: 'NoneType' object is not subscriptable

as well as complex arithmetic expressions:

.. code-block:: python

Traceback (most recent call last):
File "calculation.py", line 54, in <module>
result = (x / y / z) * (a / b / c)
~~~~~~^~~
ZeroDivisionError: division by zero

See :pep:`657` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
and Ammar Askar in :issue:`43950`.)

Expand Down
0