Python Forum
Copy item from one dict to another
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy item from one dict to another
#4
Thanks,
Anyway, the code pattern in my 1st post is irrelevant because in the condition the item's value is checked.
So the loop should run on (key, value) rather than on items.
Reply


Messages In This Thread
Copy item from one dict to another - by Pavel_47 - Dec-22-2022, 05:17 PM
RE: Copy item from one dict to another - by Pavel_47 - Dec-23-2022, 11:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 1,487 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Remove an item from a list contained in another item in python CompleteNewb 19 9,314 Nov-11-2021, 06:43 AM
Last Post: Gribouillis
  Sort a dict in dict cherry_cherry 4 104,625 Apr-08-2020, 12:25 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

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