News for hackers. Stuff that matters.
Re:1-star reviews of 'Extreme Programming' by aerique on Thursday December 19, 2013 @02:06PM (#6936959)
Why not just:

    if i["DupilcateAssets"]
is there some Python subtlety I am missing?
Re:1-star reviews of 'Extreme Programming' by cma on Thursday December 19, 2013 @03:09PM (#6937467)
In python some things evaluate as false in an if or boolean conversion (0, an empty list/tuple/set/dict/user_defined, an empty string "", and more). None evaluates as false as well, but is still distinguishable from the rest.

In ruby you likewise sometimes need to use object.nil? because nil and False are both "false-ish".