Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Are tuples immutable?
#2
Python documentation:

Quote:The value of some objects can change. Objects whose value can change are said to be mutable; objects whose value is unchangeable once they are created are called immutable. (The value of an immutable container object that contains a reference to a mutable object can change when the latter’s value is changed; however the container is still considered immutable, because the collection of objects it contains cannot be changed. So, immutability is not strictly the same as having an unchangeable value, it is more subtle.) An object’s mutability is determined by its type; for instance, numbers, strings and tuples are immutable, while dictionaries and lists are mutable.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Are tuples immutable? - by python_user_n - Jan-06-2019, 01:00 PM
RE: Are tuples immutable? - by perfringo - Jan-06-2019, 01:53 PM
RE: Are tuples immutable? - by buran - Jan-06-2019, 02:27 PM
RE: Are tuples immutable? - by python_user_n - Jan-06-2019, 02:41 PM
RE: Are tuples immutable? - by buran - Jan-06-2019, 03:06 PM
RE: Are tuples immutable? - by ichabod801 - Jan-06-2019, 03:28 PM
RE: Are tuples immutable? - by python_user_n - Jan-06-2019, 04:24 PM
RE: Are tuples immutable? - by ichabod801 - Jan-06-2019, 04:39 PM
RE: Are tuples immutable? - by micseydel - Jan-06-2019, 04:46 PM
RE: Are tuples immutable? - by python_user_n - Jan-06-2019, 05:21 PM
RE: Are tuples immutable? - by perfringo - Jan-07-2019, 08:04 AM
RE: Are tuples immutable? - by python_user_n - Jan-07-2019, 08:08 AM
RE: Are tuples immutable? - by buran - Jan-07-2019, 11:12 AM
RE: Are tuples immutable? - by python_user_n - Jan-07-2019, 01:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  immutable types Skaperen 2 2,108 Jul-09-2021, 01:00 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020