[issue27070] Add ability to freeze (seal) mutable objects

ppperry report at bugs.python.org
Fri May 20 19:21:55 EDT 2016


ppperry added the comment:

Python is not the type of language in which one applies such memory micro-optimizations. In any case, if you really need to do this, use a custom class that subclasses `list` and overrides the modification methods to add a check.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27070>
_______________________________________


More information about the Python-bugs-list mailing list