looking for Java final/Ruby freeze functionality in Python

Arnaud Delobelle arnodel at googlemail.com
Sun Mar 4 15:03:14 EST 2007


On Mar 4, 7:38 pm, Antoine De Groote <anto... at vo.lu> wrote:
> Hello,
>
> I've been googling for quite a while now but can't find anything about a
> function/keyword to make a list (or something else) immutable. Could
> anybody point me to docs about this matter or give me a reason why this
> (apparently) doesn't exist in Python?

First result from google 'python freeze object':

http://www.python.org/dev/peps/pep-0351/

The PEP was rejected but the document contains a link to a discussion
about why there is no such thing in python:

http://mail.python.org/pipermail/python-dev/2006-February/060793.html

HTH

--
Arnaud




More information about the Python-list mailing list