looking for Java final/Ruby freeze functionality in Python

  • Thread starter Antoine De Groote
  • Start date
A

Antoine De Groote

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?

Kind regards,
antoine
 
B

Bart Van Loon

It said:
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?

what about a tuple?

--
regards,
BBBart

My family is dysfunctional and my parents won't empower me. Consequently
I'm not self actualized. -- Calvin
 
A

Arnaud Delobelle

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top