scipy/weave/swig2_spec.py
def _get_swig_type(self, value):
        """Given the object in the form of `value`, this method
        returns information on the SWIG internal object repesentation
        type.  Different versions of SWIG use different object
        representations.  This method provides information on the type
        of internal representation.

        Currently returns one of ['', 'str', 'pycobj', 'pyswig'].
        """
        swig_typ = ''
        if hasattr(value, 'this'):
            type_this = type(value.this)
            type_str = str(type_this)
            if isinstance(type_this, str):
                try:
                    data = value.this.split('_')
                    if data[2] == 'p':
                        swig_typ = 'str'
                except AttributeError:
                    pass
            elif type_str == "<type 'PyCObject'>":
                swig_typ = 'pycobj'
            elif type_str.find('PySwig') > -1:
                swig_typ = 'pyswig'

        return swig_typ
Given the object in the form of `value`, this method
        returns information on the SWIG internal object repesentation
        type.  Different versions of SWIG use different object
        representations.  This method provides information on the type
        of internal representation.

        Currently returns one of ['', 'str', 'pycobj', 'pyswig'].
        
Given the object in the form of `value`, this method
returns information on the SWIG internal object repesentation
type.  Different versions of SWIG use different object
representations.  This method provides information on the type
of internal representation.


Given the object in the form of ` value ` this method returns information on the SWIG internal object repesentation type . Different versions of SWIG use different object representations . This method provides information on the type of internal representation .
def _get_swig_type(self, value):
        swig_typ = ''
        if hasattr(value, 'this'):
            type_this = type(value.this)
            type_str = str(type_this)
            if isinstance(type_this, str):
                try:
                    data = value.this.split('_')
                    if data[2] == 'p':
                        swig_typ = 'str'
                except AttributeError:
                    pass
            elif type_str == "<type 'PyCObject'>":
                swig_typ = 'pycobj'
            elif type_str.find('PySwig') > -1:
                swig_typ = 'pyswig'
        return swig_typ
def _get_swig_type ( self , value ) : swig_typ = '' if hasattr ( value , 'this' ) : type_this = type ( value . this ) type_str = str ( type_this ) if isinstance ( type_this , str ) : try : data = value . this . split ( '_' ) if data [ 2 ] == 'p' : swig_typ = 'str' except AttributeError : pass elif type_str == "<type 'PyCObject'>" : swig_typ = 'pycobj' elif type_str . find ( 'PySwig' ) > - 1 : swig_typ = 'pyswig' return swig_typ
Given the object in the form of `value`, this method
returns information on the SWIG internal object repesentation
type.
Given the object in the form of ` value ` this method returns information on the SWIG internal object repesentation type .
"""Given the object in the form of `value`, this method
        returns information on the SWIG internal object repesentation
        type.  Different versions of SWIG use different object
        representations.  This method provides information on the type
        of internal representation.

        Currently returns one of ['', 'str', 'pycobj', 'pyswig'].
        """
self
value