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 -

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

java - Android recognize cell phone with keyboard or not? -