Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JS: undefined && undefined -> undefined

Python: None and None -> None



On top of that, truthy values also propagate, so if isDelivered or isNotified are something else that's truthy (such as a 1 from mysql), isDone will not be True either and risk failing in more interesting ways down the line.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: