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 xaka
Recipients xaka
Date 2008-06-25.09:09:14
SpamBayes Score 0.045193095
Marked as misclassified No
Message-id <1214384956.08.0.408285823661.issue3195@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.5.2 (r252:60911, May  7 2008, 15:19:09)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from xml.etree.ElementTree import Element
>>> e = Element('Test', {'attr' : 'value'})
>>> b = not e
>>> print b
True

Why i'm getting True here instead of False?
Because of this i can not do:
if not e:
    # here some logic
    pass
History
Date User Action Args
2008-06-25 09:09:16xakasetspambayes_score: 0.0451931 -> 0.045193095
recipients: + xaka
2008-06-25 09:09:16xakasetspambayes_score: 0.0451931 -> 0.0451931
messageid: <1214384956.08.0.408285823661.issue3195@psf.upfronthosting.co.za>
2008-06-25 09:09:15xakalinkissue3195 messages
2008-06-25 09:09:14xakacreate