Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dictionary merge
#6
i did not know it is possible to "merge" 2 or more keyword args when using **. that is why i wondered if that dictionary object reference was passed as the reference in the function that is also using **. so, it must be true that for a function call with keyword args, all of them are collected into a new dictionary for a function that uses ** and a reference to that new dictionary is stored in that function instance's local name space as the name after the ** in the def.
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
dictionary merge - by Skaperen - Jan-16-2020, 02:19 AM
RE: dictionary merge - by snippsat - Jan-16-2020, 04:04 AM
RE: dictionary merge - by Skaperen - Jan-16-2020, 07:11 AM
RE: dictionary merge - by buran - Jan-16-2020, 07:50 AM
RE: dictionary merge - by perfringo - Jan-16-2020, 08:05 AM
RE: dictionary merge - by Skaperen - Jan-17-2020, 01:28 AM

Forum Jump:

User Panel Messages

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