Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
meta array question
#6
Wow! Yeah, the keys can be anything immutable, meaning you can't change its value. For example, you can't change a string, tuple or integer in-place, you have to replace the whole variable. Contrast that with a list, which can change. The dictionary would then have issues if the way it organizes things internally relies on the keys not changing, so that's a high-level explanation of why.
Reply


Messages In This Thread
meta array question - by meems - Jan-18-2017, 10:03 PM
RE: meta array question - by micseydel - Jan-18-2017, 10:26 PM
RE: meta array question - by meems - Jan-19-2017, 01:00 AM
RE: meta array question - by micseydel - Jan-19-2017, 06:32 PM
RE: meta array question - by meems - Jan-21-2017, 05:15 PM
RE: meta array question - by micseydel - Jan-21-2017, 05:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  np.array question hissonrr 3 1,992 Apr-20-2020, 01:15 PM
Last Post: hissonrr

Forum Jump:

User Panel Messages

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