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

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -