Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Asciinema 1.3 Switches from Go Back to Python. Parent comment
1) the "except" semantics help hit home the point you expect the key to be there most of the time
2) in cases where the exception will rarely be raised, the "try ... except" route runs faster than the ".get() ... if" route.
There are no comments on this comment yet.
1) the "except" semantics help hit home the point you expect the key to be there most of the time
2) in cases where the exception will rarely be raised, the "try ... except" route runs faster than the ".get() ... if" route.