Skip to content

Instantly share code, notes, and snippets.

@clyfe
Created July 20, 2011 20:47
Show Gist options
  • Save clyfe/1095892 to your computer and use it in GitHub Desktop.
Save clyfe/1095892 to your computer and use it in GitHub Desktop.
Python nifty useful snippets I learned at pybucuresti and want to remember next time I need them
# stop the execution and open a debug console
import pdb; pdb.set_trace()
# inspect the object (what names it defines, as in methods)
dir(object)
# inspect the object more (the dictionary of attributes, as in properties)
dir(object.__dict__) # or something like that
@clyfe
Copy link
Author

clyfe commented Sep 18, 2011

@clyfe
Copy link
Author

clyfe commented Sep 18, 2011

@clyfe
Copy link
Author

clyfe commented Sep 18, 2011

@clyfe
Copy link
Author

clyfe commented Sep 18, 2011

@clyfe
Copy link
Author

clyfe commented Sep 18, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment