Message300468
| Author |
ncoghlan |
| Recipients |
ncoghlan |
| Date |
2017年08月18日.02:25:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1503023130.32.0.241759623891.issue31230@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As covered in issue 31183, correctly disassembling functions, generator-iterators, coroutines, and async generator-iterators currently requires checking for 4 different attributes:
* __code__ (functions)
* gi_code (generator iterators)
* cr_code (coroutines)
* ag_code (async generator iterators)
This could be simplified if the latter three all *also* exposed their code attributes as `__code__`. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年08月18日 02:25:30 | ncoghlan | set | recipients:
+ ncoghlan |
| 2017年08月18日 02:25:30 | ncoghlan | set | messageid: <1503023130.32.0.241759623891.issue31230@psf.upfronthosting.co.za> |
| 2017年08月18日 02:25:30 | ncoghlan | link | issue31230 messages |
| 2017年08月18日 02:25:29 | ncoghlan | create |
|