def get_func_name(func):
    if PY2:
        # Python 2
        return func.func_name
    else:
        # Python 3
        return func.__name__
Returns the default traits UI editor for this type of trait.
dataset/ETHPy150Open winpython/winpython/winpython/py3compat.py/get_func_name--crossover with--dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseFloat.create_editor