Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some doubts on dictionaries
#3
I suggest to watch Raymond Hettinger famous Transforming Code into Beautiful, Idiomatic Python.

There is part named Dictionary Skills which should be mandatory to every pythonista (includes explanation why didn't you find dictionary values you were expecting). NB! In current versions you can't do del-trick he showed (you will get RuntimeError: dictionary changed size during iteration, reason being that d.keys() now returns view)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Some doubts on dictionaries - by newbieAuggie2019 - Oct-16-2019, 11:54 PM
RE: Some doubts on dictionaries - by stullis - Oct-17-2019, 12:35 AM
RE: Some doubts on dictionaries - by perfringo - Oct-17-2019, 05:45 AM

Forum Jump:

User Panel Messages

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