Getting Object References with getattr : Getattr : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Getattr »

 

Getting Object References with getattr


li = ["A""B"

print li.pop                                    
print getattr(li, "pop")                             
print getattr(li, "append")            
print li 
print getattr({}"clear")                            
print getattr(()"pop")



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Getattr