#!/usr/local/bin/python2 from copy import deepcopy class C(object): def __init__(self): self.a = [] def p(self): print self.a p = C().p print dir(p) print issubclass(type(p), type) print isinstance(p.__reduce_ex__(4), str)