[issue31230] Define a general "asynchronous operation introspection" protocol

2017-08-18 Thread syncosmic
syncosmic added the comment: I like where this is heading! Aside from the cleaner patterns for handling these objects, I think it'll make it a little easier for people who are just starting to use asynchronous objects in Python (e.g. me) to grasp what's similar about them

[issue31230] Add __code__ attributes to generator and coroutine objects

2017-08-17 Thread syncosmic
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

[issue31230] Add __code__ attributes to generator and coroutine objects

2017-08-17 Thread syncosmic
syncosmic added the comment: Some possibly helpful background (adapted from a discussion in PR 3077): It looks as though `gi_code` was added to generators in bpo-1473257. At this time, function bytecode was still stored in `f.func_code`, so `gi_code` was a clear analogy. My best guess is

[issue31230] Add __code__ attributes to generator and coroutine objects

2017-08-17 Thread syncosmic
Changes by syncosmic : -- pull_requests: -3163 ___ Python tracker <http://bugs.python.org/issue31230> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31230] Add __code__ attributes to generator and coroutine objects

2017-08-17 Thread syncosmic
Changes by syncosmic : -- nosy: +syncosmic ___ Python tracker <http://bugs.python.org/issue31230> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31230] Add __code__ attributes to generator and coroutine objects

2017-08-17 Thread syncosmic
Changes by syncosmic : -- pull_requests: +3163 ___ Python tracker <http://bugs.python.org/issue31230> ___ ___ Python-bugs-list mailing list Unsubscribe: