How can I see if a child exists in Python? -


i have lxml object called item , may have child called item.brand, it's possible there none returned api. how can check in python?

try hasattr().


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -