summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorClaudio Bley <cbley@av-test.de>2013-08-22 11:16:03 +0200
committerClaudio Bley <cbley@av-test.de>2013-08-23 08:12:26 +0200
commitd101d3bce8c59583c5713215b6a7fb2f7376a1fc (patch)
treecbeaa7759899a4295ba7d628920261ff3b76987e /README
parent2d533bde3bad357a070b2703fed7292eb2e2fb55 (diff)
downloadlibvirt-python-split-d101d3bce8c59583c5713215b6a7fb2f7376a1fc.tar.gz
libvirt-python-split-d101d3bce8c59583c5713215b6a7fb2f7376a1fc.tar.xz
libvirt-python-split-d101d3bce8c59583c5713215b6a7fb2f7376a1fc.zip
Test for object identity when checking for None in Python
Consistently use "is" or "is not" to compare variables to None, because doing so is preferrable, as per PEP 8 (http://www.python.org/dev/peps/pep-0008/#programming-recommendations): > Comparisons to singletons like None should always be done with is or > is not, never the equality operators.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions