In addition to what GVR wrote, a generator function would have to have its own syntax - backward compatibility would be another issue.
Santa Clara, CA
On Wed, Oct 24, 2018 at 2:31 PM Greg Ewing email@example.com wrote:
Calvin Spealman wrote:
def ignore_exc(exc_type): return def (func): ...
Something very similar has been suggested before, you might like to review the previous discussion.
Python-ideas mailing list Pythonfirstname.lastname@example.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/