News for hackers. Stuff that matters.
Re:Clinkle gets hacked before it even launches by ijl on Thursday January 30, 2014 @08:48PM (#7154752)
In [1]: bool(0)

Out[1]: False

Idiomatic Python may say "if not user_id:" and erroneously skip this.

Re:Clinkle gets hacked before it even launches by d0mine on Thursday January 30, 2014 @09:07PM (#7154811)
There is no `NULL` in Python. It is `None`.

Idiomatic test for `None` is:

   if something is None:
      # ...
It would be incorrect to use `if not something:` here.