Message407975
Tested with Python 3.10.1 on Linux and Python 3.10.0 on Windows.
The following code prints None in 3.9 and raises StopIteration without any additional information in 3.10:
def f():
yield
x = f()
try:
x.send(0)
except TypeError as e:
print(e) # can't send non-None value to a just-started generator
print(next(x)) |
|
Date |
User |
Action |
Args |
2021-12-07 21:53:29 | Zabolekar | set | recipients:
+ Zabolekar |
2021-12-07 21:53:29 | Zabolekar | set | messageid: <1638914009.53.0.916939757704.issue46009@roundup.psfhosted.org> |
2021-12-07 21:53:29 | Zabolekar | link | issue46009 messages |
2021-12-07 21:53:29 | Zabolekar | create | |
|