Thanks in advance for your help. I am trying to pickle a class, but I want to exclude function objects for obvious reasons. How do I determine if a python object is a function, specifically when using isinstance()? I am not sure what a type or instance a Python 'function' originates from.
The below code throws an exception, because function is not a type. Presently I am attempting to do the following: def __getstate__( ret_val = {} for key in self.__dict__: if not isinstance(self.__dict__[key], function): pass # do assignment here Thanks again, Adam _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor