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

I do this all the time:

x = function_that_might_return_none()

if x: do_stuff



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

Search: