Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
duplicate key storing
#1
i recall a module that did this, but i haven't gone to look for it, yet. i think it was called collection. i want to stored keyed data which could have multiple data objects under the same key. what i would normally do is just keep everything in a list, with all lists in a dictionary under the respective key, and append if the list is already there. that way i have every object that has that key and they are in the order stored (i don't need the ordering). right now i am wondering if my simple way is good enough or if i should go find that module.
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
duplicate key storing - by Skaperen - Oct-02-2018, 04:42 AM
RE: duplicate key storing - by gruntfutuk - Oct-02-2018, 08:38 AM
RE: duplicate key storing - by snippsat - Oct-02-2018, 01:49 PM
RE: duplicate key storing - by DeaD_EyE - Oct-02-2018, 02:13 PM
RE: duplicate key storing - by Skaperen - Oct-03-2018, 01:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Taking user input and storing that to a variable then storing that variable to a list jowalk 12 42,182 Mar-27-2017, 11:45 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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