Skip to content

Instantly share code, notes, and snippets.

@ustropo
Created August 12, 2022 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ustropo/d1f8dffc563d764a7be5ea732c283ca4 to your computer and use it in GitHub Desktop.
Save ustropo/d1f8dffc563d764a7be5ea732c283ca4 to your computer and use it in GitHub Desktop.
>>> class V:
... pass
...
>>> dir(V)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__',
'__format__', '__ge__', '__getattribute__', '__gt__', '__hash__',
'__init__', '__init_subclass__', '__le__', '__lt__', '__module__',
'__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
'__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__']
>>> V.__name__
'V'
>>> V.__class__
<class 'type'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment