Message315305
> I would like python_coded_callable.__code__ to be the code object executed when python_coded_callable is called
First of all, that doesn't answer the question of what to do with non-Python coded callables where there is no __code__ object at all.
Second, are you *really* sure that you want that? That would mean adding a __code__ attribute to all callable Python classes or adding a __code__ descriptor to "type". |
|
Date |
User |
Action |
Args |
2018-04-14 20:47:00 | jdemeyer | set | recipients:
+ jdemeyer, rhettinger, terry.reedy, ncoghlan |
2018-04-14 20:47:00 | jdemeyer | set | messageid: <1523738820.47.0.682650639539.issue33261@psf.upfronthosting.co.za> |
2018-04-14 20:47:00 | jdemeyer | link | issue33261 messages |
2018-04-14 20:47:00 | jdemeyer | create | |
|