apply the dir() function to a type as well as a variable : Dir : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Dir »

 

apply the dir() function to a type as well as a variable


class MyClass :
    name = "MyClass"

dir(MyClass)

print MyClass.__dict__

print me.__dict__
me.__dict__['name'] 'newname'



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Function
» Dir