How do I refer to the null object in Python?


In Python, the 'null' object is the singleton None.

The best way to check things for "Noneness" is to use the identity operator, is:

if foo is None:
    ...



source - http://stackoverflow.com/questions/3289601/null-object-in-python

'Development > python' 카테고리의 다른 글

python - setuptool + MySQL-python 설치  (0) 2012.05.15
Python socket - A simple TCP client  (0) 2012.05.07
Posted by linuxism
,