def quoted(s):
    # strip any existing quotes
    s = s.strip(u'"')
    if u' ' in s or u'/' in s:
        return u'"%s"' % s
    else:
        return s
Convert mpmath's ``mpf`` to Python's ``int``.
dataset/ETHPy150Open ContinuumIO/menuinst/menuinst/win32.py/quoted--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/pythonintegerring.py/PythonIntegerRing.from_RealField