scipy/weave/swig2_spec.py
def type_spec(self,name,value):
        """ This returns a generic type converter for SWIG-1.3
        objects.  For specific instances, override this function if
        necessary."""
        # factory
        swig_ob_type = self._get_swig_type(value)
        pycobj = 0
        if swig_ob_type == 'str':
            class_name = value.this.split('_')[-1]
        elif swig_ob_type == 'pycobj':
            pycobj = 1
        elif swig_ob_type == 'pyswig':
            pycobj = 2
        else:
            raise AssertionError("Does not look like a SWIG object: %s" % value)

        if pycobj:
            class_name = value.__class__.__name__
            if class_name[-3:] == 'Ptr':
                class_name = class_name[:-3]

        new_spec = self.__class__(class_name, pycobj, self.runtime_version)
        new_spec.name = name
        return new_spec
 This returns a generic type converter for SWIG-1.3
        objects.  For specific instances, override this function if
        necessary.
This returns a generic type converter for SWIG-1.3
objects.  For specific instances, override this function if
necessary.
This returns a generic type converter for SWIG - 1 . 3 objects . For specific instances override this function if necessary .
def type_spec(self,name,value):
        swig_ob_type = self._get_swig_type(value)
        pycobj = 0
        if swig_ob_type == 'str':
            class_name = value.this.split('_')[-1]
        elif swig_ob_type == 'pycobj':
            pycobj = 1
        elif swig_ob_type == 'pyswig':
            pycobj = 2
        else:
            raise AssertionError("Does not look like a SWIG object: %s" % value)
        if pycobj:
            class_name = value.__class__.__name__
            if class_name[-3:] == 'Ptr':
                class_name = class_name[:-3]
        new_spec = self.__class__(class_name, pycobj, self.runtime_version)
        new_spec.name = name
        return new_spec
def type_spec ( self , name , value ) : swig_ob_type = self . _get_swig_type ( value ) pycobj = 0 if swig_ob_type == 'str' : class_name = value . this . split ( '_' ) [ - 1 ] elif swig_ob_type == 'pycobj' : pycobj = 1 elif swig_ob_type == 'pyswig' : pycobj = 2 else : raise AssertionError ( "Does not look like a SWIG object: %s" % value ) if pycobj : class_name = value . __class__ . __name__ if class_name [ - 3 : ] == 'Ptr' : class_name = class_name [ : - 3 ] new_spec = self . __class__ ( class_name , pycobj , self . runtime_version ) new_spec . name = name return new_spec
This returns a generic type converter for SWIG-1.3
objects.
This returns a generic type converter for SWIG - 1 . 3 objects .
""" This returns a generic type converter for SWIG-1.3
        objects.  For specific instances, override this function if
        necessary.""" # factory
self
name
value