Jeroen Demeyer <j.deme...@ugent.be> added the comment: > 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". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33261> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com