Python Forum
a dictionary with a key default
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a dictionary with a key default
#2
express the key on separate line and assign to name, then use that name twice in get() call or define custom class that inherit from dict but override get() method and use it instead of built in class
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
a dictionary with a key default - by Skaperen - Jan-17-2020, 03:01 AM
RE: a dictionary with a key default - by buran - Jan-17-2020, 07:11 AM
RE: a dictionary with a key default - by perfringo - Jan-17-2020, 07:56 AM
RE: a dictionary with a key default - by Skaperen - Jan-18-2020, 12:26 AM
RE: a dictionary with a key default - by Skaperen - Jan-18-2020, 04:14 AM

Forum Jump:

User Panel Messages

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