parameters: (s)
docstring: Only for flat objects at the moment
docstring_summary: Only for flat objects at the moment
docstring_tokens: Only for flat objects at the moment
function: def str_to_obj(s):
      """
      Only for flat objects at the moment
      """
      # print 'str_to_obj',type(s),s
      s = s.strip()
      if len(s) == 0:
          return ''
  
      if s[0] == s[-1]:
          if s[0] in("'", '"'):
              s = s[1:-1]
      # print 'str_to_obj',s,len(s),type(s),s.isdigit(),s.isalnum()
      if s.isdigit():
          return string.atoi(s)
      else:
          try:
              return string.atof(s)
          except:
              return s
function_tokens: def str_to_obj ( s ) : # print 'str_to_obj',type(s),s s = s . strip ( ) if len ( s ) == 0 : return '' if s [ 0 ] == s [ - 1 ] : if s [ 0 ] in ( "'" , '"' ) : s = s [ 1 : - 1 ] # print 'str_to_obj',s,len(s),type(s),s.isdigit(),s.isalnum() if s . isdigit ( ) : return string . atoi ( s ) else : try : return string . atof ( s ) except : return s