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 Bryan Koch
Recipients Bryan Koch, greg.ewing, steven.daprano, terry.reedy
Date 2019-01-21.21:21:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548105675.24.0.46031706189.issue35756@roundup.psfhosted.org>
In-reply-to
Content
steven your generator example is exactly what I wanted to do; looks like I'm upgrading to Python 3.8 for the new assignment syntax.

I was actually expecting the SyntaxError to be raised at runtime which would be a pretty large behavior change (definitely required to go through python-ideas) but I think my use case is covered by 3.8 and just upgrading is simpler to do.

Some details of the implementation that stirred this is that I'm streaming output from a hierarchy of generated modules and I get what is essentially (final value, EOF) as the last result so I need to yield the final value but for external reasons I need to perform the clean-up of native resources before yielding.

Let's consider this as closed since what I need is supported in 3.8.  Thank you for your help!
History
Date User Action Args
2019-01-21 21:21:17Bryan Kochsetrecipients: + Bryan Koch, terry.reedy, steven.daprano, greg.ewing
2019-01-21 21:21:15Bryan Kochsetmessageid: <1548105675.24.0.46031706189.issue35756@roundup.psfhosted.org>
2019-01-21 21:21:15Bryan Kochlinkissue35756 messages
2019-01-21 21:21:15Bryan Kochcreate