(f)
return bool(regex.match(pat, f))
Return True if n can be interpreted as a floating point number.
Return True if n can be interpreted as a floating point number.
Return True if n can be interpreted as a floating point number .
def _literal_float(f):
    """Return True if n can be interpreted as a floating point number."""
    pat = r"[-+]?((\d*\.\d+)|(\d+\.?))(eE[-+]?\d+)?"
    return bool(regex.match(pat, f))
def _literal_float ( f ) : pat = r"[-+]?((\d*\.\d+)|(\d+\.?))(eE[-+]?\d+)?" return bool ( regex . match ( pat , f ) )