Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python Best Practice Patterns. Parent comment
So methods that mutate state, and don't return None are un-Pythonic?
What about this example:
a = [1, 2, 3] b = a.pop()
There are no comments on this comment yet.
So methods that mutate state, and don't return None are un-Pythonic?
What about this example:
pop() mutates the state of a and returns a value that is not None. Is the Python code language itself un-Pythonic?