[Python-Dev] Add a frozendict builtin type
Raymond Hettinger
raymond.hettinger at gmail.com
Thu Mar 1 01:11:58 CET 2012
On Feb 29, 2012, at 3:52 PM, Victor Stinner wrote:
> I don't know if hardening Python is a compelling argument to add a new
> builtin type.
It isn't.
Builtins are for general purpose use.
It is not something most people should use;
however, if it is a builtin, people will be drawn
to frozendicts like moths to a flame.
The tuple-as-frozenlist anti-pattern shows
what we're up against.
Another thought: if pypy is successful at providing sandboxing,
the need for sandboxing in CPython is substantially abated.
Raymond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120229/f618b53b/attachment-0001.html>
More information about the Python-Dev
mailing list