Lisa Roach <lisaroac...@gmail.com> added the comment:
Following up from xtreak's proposal (https://github.com/python/cpython/pull/9296) I think checking if __code__ is actually a CodeType is a good idea. It's simple and doesn't change any other functionality in an unwanted way. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37251> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com