Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
immutable types
#3
in that language i created 3 decades ago, its mapping type also served as sets. it had a way to place a key with no value (and to delete a value while keeping the key in place). every type had mutable and immutable forms. i remember when i first encountered Python, i backed away because str was strictly immutable. now i realize that every use case for a "mutable str" is better handled by a list.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
immutable types - by Skaperen - Jul-07-2021, 12:08 AM
RE: immutable types - by Gribouillis - Jul-07-2021, 06:10 AM
RE: immutable types - by Skaperen - Jul-09-2021, 01:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Are tuples immutable? python_user_n 13 5,740 Jan-07-2019, 01:26 PM
Last Post: python_user_n

Forum Jump:

User Panel Messages

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