[issue28910] Async generator does not raise RuntimeError if finalizer not set

2016-12-08 Thread Yury Selivanov
Yury Selivanov added the comment: fix: https://github.com/python/peps/commit/3e23210fe3aebefb269436e16246f63e1f006291 -- ___ Python tracker ___ _

[issue28910] Async generator does not raise RuntimeError if finalizer not set

2016-12-08 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm not sure if this is a bug, or this is intentional and the finalizer > mechanism should be optional. If it is the latter should PEP525 get updated? This is intentional, PEP 525 is slightly outdated. I'll update it right now. Thanks for reporting this!

[issue28910] Async generator does not raise RuntimeError if finalizer not set

2016-12-08 Thread Eric Appelt
New submission from Eric Appelt: While testing my understanding in order to document PEP525 asynchronous generators in the Language Reference (issue 28091) I noticed that the implemented behavior deviates from PEP525, specifically the PEP states that: "When an asynchronous generator is iterate