Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How to write X in both Python 3 and JavaScript. Parent comment
Although this is a case where idiomatic python is different from idiomatic js.
In js:
// same: !! "" // false !! 0 // false !! 1 // true !! null // false // different: !! {} // true !! [] // true
# same: not not "" # False not not 0 # False not not 1 # True not not None # False # different: not not {} # False not not [] # False not not tuple() # False
There are no comments on this comment yet.
Although this is a case where idiomatic python is different from idiomatic js.
In js:
while in python: