Skip to content

Instantly share code, notes, and snippets.

@ansrivas
Created May 14, 2018 14:16
Show Gist options
  • Select an option

  • Save ansrivas/d90cb34f1f4e6855197577946644acd3 to your computer and use it in GitHub Desktop.

Select an option

Save ansrivas/d90cb34f1f4e6855197577946644acd3 to your computer and use it in GitHub Desktop.
all static variables in a class
class Test(object):
    one = 1
    two = 2
print([k for k,v in Test.__dict__.items() if not k.startswith("__")])```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment