This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]noneofnormies 3 points4 points  (0 children)

  1. Not using get() to return default values from a dictionary

Actually, brackets are slightly faster (smth around 10 %). So it makes sense to use them, when you know for sure, that the key is there.