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 petr.viktorin
Recipients petr.viktorin
Date 2021-09-07.14:01:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631023283.37.0.554928388357.issue45127@roundup.psfhosted.org>
In-reply-to
Content
How to fix this? I guess:

* co_filename should be converted to an actual str, or reject subclasses with an exception
* for co_consts, the [marshal docs] could be updated to add code objects to "containers". The [code docs] already say co_consts "is a tuple containing the literals"; if someone's putting in non-literals they're voiding the warranty.

And so on for all other fields of code objects.

[marshal docs]: https://docs.python.org/3/library/marshal.html
[code docs]: https://docs.python.org/3.9/reference/datamodel.html#index-55
History
Date User Action Args
2021-09-07 14:01:23petr.viktorinsetrecipients: + petr.viktorin
2021-09-07 14:01:23petr.viktorinsetmessageid: <1631023283.37.0.554928388357.issue45127@roundup.psfhosted.org>
2021-09-07 14:01:23petr.viktorinlinkissue45127 messages
2021-09-07 14:01:23petr.viktorincreate