8000 gh-121637: Syntax error for optimized-away incorrect await by JelleZijlstra · Pull Request #121656 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121637: Syntax error for optimized-away incorrect await #121656

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 10 commits into from
Jul 22, 2024
Prev Previous commit
Next Next commit
Merge branch 'main' into toplevelawait
  • Loading branch information
JelleZijlstra authored Jul 16, 2024
commit 42fef7086893127edc2583c9d986bca8c5f88ba4
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ Other Language Changes
command line option. For example, ``python -O -c 'assert await 1'``
now produces a :exc:`SyntaxError`. (Contributed by Jelle Zijlstra in :gh:`121637`.)

* Added class methods :meth:`float.from_number` and :meth:`complex.from_number`
to convert a number to :class:`float` or :class:`complex` type correspondingly.
They raise an error if the argument is a string.
(Contributed by Serhiy Storchaka in :gh:`84978`.)


New Modules
===========
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0