Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PEP 572: Python assignment expressions has been accepted. Parent comment
`bar[baz] = bar.get(baz, 0) + 1`
One line and no error checking.
But the OP was probably just illustrating a basic example where you might have some more intense logic
There are no comments on this comment yet.
`bar[baz] = bar.get(baz, 0) + 1`
One line and no error checking.
But the OP was probably just illustrating a basic example where you might have some more intense logic