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

I have never once used the 'is' keyword in python.


Have you ever tested for a None value?

    if foo is None:
      return

    if bar is not None:
      bar()




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

Search: