This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zabolekar
Recipients Zabolekar
Date 2021-12-07.21:53:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638914009.53.0.916939757704.issue46009@roundup.psfhosted.org>
In-reply-to
Content
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))
History
Date User Action Args
2021-12-07 21:53:29Zabolekarsetrecipients: + Zabolekar
2021-12-07 21:53:29Zabolekarsetmessageid: <1638914009.53.0.916939757704.issue46009@roundup.psfhosted.org>
2021-12-07 21:53:29Zabolekarlinkissue46009 messages
2021-12-07 21:53:29Zabolekarcreate