[Tutor] Immutable objects

Nitin Das nitin.162 at gmail.com
Thu Aug 19 05:24:11 CEST 2010


Hello,

     Can somebody help me how to make immutable objects in python. I have
seen overriding the __new__, __setattr__ methods.. but not comfortable with
how to use them to make the object immutable.

thanks in advance
--nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100819/3fee1465/attachment.html>


More information about the Tutor mailing list