def stringIsNumber(S):

    S = S.strip()
    
    if S[0] in '-+' and len(S) > 1:
        S = S[1:].strip()
    
    match = complexNumberRE.match(S)
    if not match:
        match = numberRE.match(S)
    if not match or (match.end() != len(S)):
        return False
    else:
        return True
Return True if theString represents a Python number, False otherwise.
dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/SettingsManager.py/stringIsNumber