def _convert_stringval(value):
    """Converts a value to, hopefully, a more appropriate Python object."""
    value = unicode(value)
    try:
        value = int(value)
    except (__HOLE__, TypeError):
        pass

    return value
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py/_convert_stringval