(self, obj, name=None)
Registered with the dispatch to handle all function types.

        Determines what kind of function obj is (e.g. lambda, defined at
        interactive prompt, etc) and handles the pickling appropriately.
Registered with the dispatch to handle all function types.
Registered with the dispatch to handle all function types .
def save_function(self, obj, name=None):
        """ Registered with the dispatch to handle all function types.

        Determines what kind of function obj is (e.g. lambda, defined at
        interactive prompt, etc) and handles the pickling appropriately.
        """
        if _is_global(obj, name=name):
            return Pickler.save_global(self, obj, name=name)
        elif PYPY and isinstance(obj.__code__, builtin_code_type):
            return self.save_pypy_builtin_func(obj)
        else:
            return self.save_function_tuple(obj)
def save_function ( self , obj , name = None ) : if _is_global ( obj , name = name ) : return Pickler . save_global ( self , obj , name = name ) elif PYPY and isinstance ( obj . __code__ , builtin_code_type ) : return self . save_pypy_builtin_func ( obj ) else : return self . save_function_tuple ( obj )