Skip to content

Instantly share code, notes, and snippets.

@mattpavelle
Created February 12, 2014 15:48
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 mattpavelle/8958018 to your computer and use it in GitHub Desktop.
Save mattpavelle/8958018 to your computer and use it in GitHub Desktop.
reminder: vars displays a dictionary corresponding to the current local symbol table, dir displays the list of names in the current local scope
import math
from pprint import pprint
pprint(vars(math))
pprint(dir(math))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment