Skip to content

Instantly share code, notes, and snippets.

@highsmallxu
Last active July 10, 2020 21:04
Show Gist options
  • Save highsmallxu/2c771f7eb1c80d24a5017c4acc7d31b5 to your computer and use it in GitHub Desktop.
Save highsmallxu/2c771f7eb1c80d24a5017c4acc7d31b5 to your computer and use it in GitHub Desktop.
class BaseClass:
pass
print(BaseClass.__bases__)
# (<class 'object'>,)
print(dir(object))
# ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__',
# '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__',
# '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
# '__sizeof__', '__str__', '__subclasshook__']
print(object.__bases__)
# ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment