471,335 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,335 software developers and data experts.

Element bug?(ElementTree)

I don't know if it's a bug? Try below code:
>>from elementtree.ElementTree import Element
a = Element('a')
if a:
... print 'hhhh'

You can see if I test a, the result will be False. I don't know if
it's an expected result, but this thing has beaten me some times.

I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
meide <<wxPython UI module>>: http://code.google.com/p/meide/
My Blog: http://www.donews.net/limodou
Dec 23 '07 #1
0 819

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.