I am trying to use lists as dictionary values. I am running a loop that creates a new list each time and then assigns it to a specific key. The iteration works the first time. However, when I clear the temporary list and populate the list with new information and assign the list to the next key, the keys remain unique but the previous dictionary values all become the current list values. I believe this is somehow a memory pointer issue, but how can I make this work? Thanks.
Using Lists as Dictionary Values
Using Lists as Dictionary Values
|
|
Messages In This Thread |
Using Lists as Dictionary Values - by bfallert - Apr-19-2024, 08:30 PM
RE: Using Lists as Dictionary Values - by menator01 - Apr-19-2024, 08:57 PM
RE: Using Lists as Dictionary Values - by deanhystad - Apr-19-2024, 11:23 PM
RE: Using Lists as Dictionary Values - by buran - Apr-20-2024, 03:49 AM
RE: Using Lists as Dictionary Values - by bfallert - Apr-20-2024, 02:23 PM
RE: Using Lists as Dictionary Values - by deanhystad - Apr-20-2024, 03:46 PM
RE: Using Lists as Dictionary Values - by bfallert - Apr-20-2024, 09:55 PM
RE: Using Lists as Dictionary Values - by deanhystad - Apr-20-2024, 11:44 PM
RE: Using Lists as Dictionary Values - by Pedroski55 - Apr-21-2024, 06:55 AM
|
Users browsing this thread: 1 Guest(s)