Message300472
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? |
|
Date |
User |
Action |
Args |
2017-08-18 03:00:41 | syncosmic | set | recipients:
+ syncosmic, ncoghlan |
2017-08-18 03:00:41 | syncosmic | set | messageid: <1503025241.89.0.899530238595.issue31230@psf.upfronthosting.co.za> |
2017-08-18 03:00:41 | syncosmic | link | issue31230 messages |
2017-08-18 03:00:41 | syncosmic | create | |
|