This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients jdemeyer, ncoghlan, rhettinger, terry.reedy
Date 2018-04-14.20:47:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523738820.47.0.682650639539.issue33261@psf.upfronthosting.co.za>
In-reply-to
Content
> 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".
History
Date User Action Args
2018-04-14 20:47:00jdemeyersetrecipients: + jdemeyer, rhettinger, terry.reedy, ncoghlan
2018-04-14 20:47:00jdemeyersetmessageid: <1523738820.47.0.682650639539.issue33261@psf.upfronthosting.co.za>
2018-04-14 20:47:00jdemeyerlinkissue33261 messages
2018-04-14 20:47:00jdemeyercreate