

@classdef.method('inspect')
def method_inspect(self, space):
    string_format = ((not self.symbol) or (not string_format.symbol[0].isalpha()) or (not self.symbol.isalnum()))
    if string_format:
        result = [':', '"']
        for c in self.symbol:
            if (c == '"'):
                result.append('\\')
            result.append(c)
        result.append('"')
        return space.newstr_fromchars(result)
    else:
        return space.newstr_fromstr((':%s' % self.symbol))

dataset/ETHPy150Open topazproject/topaz/topaz/objects/symbolobject.py W_SymbolObject.method_inspect/VarMisuse@32/39 `self`->`string_format`