def is_number(s, cast=float):
    try:
        cast(s) # for int, long and float
    except ValueError:
        return False

    return True
Create a Git repository in the specified path.
dataset/ETHPy150Open tanghaibao/jcvi/formats/base.py/is_number--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/GitCommandTest.makeRepository