Python Forum
Populating a list with Dictionaries....
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Populating a list with Dictionaries....
#2
When you do qso = qsotom, qso basically becomes a pointer to the same dictionary qsotom is pointing at. It doesn't become a new dictionary. You need to make a new dictionary each time. Try using qso = {} instead.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Populating a list with Dictionaries.... - by ichabod801 - Sep-24-2018, 01:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help comparing totals from list of dictionaries AnOddGirl 1 1,606 Mar-18-2020, 01:17 AM
Last Post: AnOddGirl
  dictionaries and list as values Pippi 6 3,603 Apr-13-2019, 09:05 AM
Last Post: perfringo
  Newbie to Python - Problem in accessing Dictionaries and List sambill 1 3,118 Aug-17-2017, 07:38 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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