syncosmic added the comment:

A related issue (since this issue is contemplating restructuring these objects 
anyway):

Other than `??_code`, none of the `f.func_X` attributes which were eliminated 
in 3.0 have direct equivalents in generator-iterators, coroutines, or async 
generator-iterators.

However, all three of those have `[gi|cr|ag]_running` and `[gi|cr|ag]_frame` 
attributes. Generator-iterators also have `gi_yieldfrom`, and coroutines and 
async generator-iterators have `[cr|ag]_await`.

On a clean slate (with no attention paid to issues around breaking changes or 
how these attributes are already used in existing code), is there an argument 
for dundering some or all of these along with `__code__`? Or is special casing 
a better pattern when dealing with these other attributes?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31230>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to