473,385 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

looking for Java final/Ruby freeze functionality in Python

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
Mar 4 '07 #1
3 1119
It was Sun, 04 Mar 2007 20:38:16 +0100, when Antoine De Groote 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?
what about a tuple?

--
regards,
BBBart

My family is dysfunctional and my parents won't empower me. Consequently
I'm not self actualized. -- Calvin
Mar 4 '07 #2
On Mar 4, 7:38 pm, Antoine De Groote <anto...@vo.luwrote:
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/pyt...ry/060793.html

HTH

--
Arnaud

Mar 4 '07 #3
yes thanks, that is quite what I was looking for.

Arnaud Delobelle wrote:
On Mar 4, 7:38 pm, Antoine De Groote <anto...@vo.luwrote:
>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/pyt...ry/060793.html

HTH

--
Arnaud
Mar 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data...
31
by: somebody | last post by:
No, I'm not a troll, just angry. I just started learning C++, and find it extremely lacking compared to Java. For example, I had to write my own functions to do something as simple as a case...
0
by: UrsusMaximus | last post by:
One measurement by which Python is more popular than Ruby, Java, Perl, PHP and .NET is in the world of Podcasts. At Podcastalley, podcasts are ranked by popularity in each of several genre's. In...
28
by: liorm | last post by:
Hi everyone, I need to write a web app, that will support millions of user accounts, template-based user pages and files upload. The client is going to be written in Flash. I wondered if I coudl...
16
by: Ilias Lazaridis | last post by:
I have a few small questions subjecting python functionality, most importantly the "alias_method". - *IMPORT* I would like to know, if this construct is valid, or if it can result in...
6
by: Chas Emerick | last post by:
This may seem like it's coming out of left field for a minute, but bear with me. There is no doubt that Ruby's success is a concern for anyone who sees it as diminishing Python's status. ...
1
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
2
by: yeshello54 | last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.