Python equivalent of php var dump pprint

Just putting this snippet here. If you need to print out details on an object in python:

1
2
3
from inspect import getmembers
from pprint import pprint
pprint(getmembers(image))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.