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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27070>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to