This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients mishok13, pitrou, xaka
Date 2008-06-25.10:22:58
SpamBayes Score 0.012844795
Marked as misclassified No
Message-id <1214389379.1.0.758865425692.issue3195@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed, this is not a bug, although it can be misleading.
Generally, if you test for None, it is better to write "if x is None",
it is at the same time more accurate, more explicit for someone reading
your code, and also executes faster than "if not x".
History
Date User Action Args
2008-06-25 10:22:59pitrousetspambayes_score: 0.0128448 -> 0.012844795
recipients: + pitrou, mishok13, xaka
2008-06-25 10:22:59pitrousetspambayes_score: 0.0128448 -> 0.0128448
messageid: <1214389379.1.0.758865425692.issue3195@psf.upfronthosting.co.za>
2008-06-25 10:22:58pitroulinkissue3195 messages
2008-06-25 10:22:58pitroucreate