Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python quirks. Parent comment
Default values for functions in Python are instantiated when the function is defined, not when it’s called.
Thread: https://news.ycombinator.com/item?id=5999772
Direct link: http://blog.amir.rachum.com/post/54770419679/python-common-n...
It looks like the author posted a "part 2" to HN as well, but it never made the front page.
http://blog.amir.rachum.com/post/55024295793/python-common-n...
There are no comments on this comment yet.
Default values for functions in Python are instantiated when the function is defined, not when it’s called.
Thread: https://news.ycombinator.com/item?id=5999772
Direct link: http://blog.amir.rachum.com/post/54770419679/python-common-n...
It looks like the author posted a "part 2" to HN as well, but it never made the front page.
http://blog.amir.rachum.com/post/55024295793/python-common-n...