Message383817
About the difference in behavior. Currently:
>>> (1/0).numerator: int
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
>>> x[0]: int
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
>>> [][print('Hi!')]: int
Hi!
With PR 23952 it all will be no-op.
Also, there should be changes in the following weird example:
def f():
(yield).x: int |
|
Date |
User |
Action |
Args |
2020-12-26 18:21:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, lys.nikolaou, pablogsal, BTaskaya |
2020-12-26 18:21:50 | serhiy.storchaka | set | messageid: <1609006910.64.0.0653829301001.issue42737@roundup.psfhosted.org> |
2020-12-26 18:21:50 | serhiy.storchaka | link | issue42737 messages |
2020-12-26 18:21:50 | serhiy.storchaka | create | |
|