Message241705
> should inspect.isgenerator() be changed?
Replying to myself, one thing that speaks against this approach is that "inspect" also has the functions "getgeneratorlocals()" and "getgeneratorstate()", which depend on "gen.gi_frame". Cython could emulate that, but normal user code usually can't. It's definitely not part of the Generator protocol but an implementation detail of GeneratorType. |
|
| Date |
User |
Action |
Args |
| 2015-04-21 06:35:10 | scoder | set | recipients:
+ scoder, gvanrossum, rhettinger, pitrou, vstinner, lukasz.langa, martin.panter, yselivanov |
| 2015-04-21 06:35:10 | scoder | set | messageid: <[email protected]> |
| 2015-04-21 06:35:10 | scoder | link | issue24018 messages |
| 2015-04-21 06:35:10 | scoder | create | |
|