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 vstinner
Recipients gvanrossum, pablogsal, pfalcon, ppperry, terry.reedy, vstinner
Date 2020-01-15.21:45:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579124742.94.0.141189163255.issue32615@roundup.psfhosted.org>
In-reply-to
Content
I modified ceval.c to accept dict subclasses when I was working on PEP 416:
https://www.python.org/dev/peps/pep-0416/

This PEP motivation was to implement a sandbox. The PEP was rejected. Later, I closed my pysandbox beause it was "broken by design":
https://lwn.net/Articles/574215/

Paul Sokolovsky wrote in bpo-36220 than his idea is also to implement a sandbox:
https://bugs.python.org/issue36220#msg359046

IMHO we should reject dict subclasses to make Python (especially ceval.c) more efficient. The global type must be checked at every place where it's possible to specify or override globals. Like the exec() function.
History
Date User Action Args
2020-01-15 21:45:42vstinnersetrecipients: + vstinner, gvanrossum, terry.reedy, pfalcon, ppperry, pablogsal
2020-01-15 21:45:42vstinnersetmessageid: <1579124742.94.0.141189163255.issue32615@roundup.psfhosted.org>
2020-01-15 21:45:42vstinnerlinkissue32615 messages
2020-01-15 21:45:42vstinnercreate