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