def get_func_code(func):
    if PY2:
        # Python 2
        return func.func_code
    else:
        # Python 3
        return func.__code__
Return function code object
dataset/ETHPy150Open winpython/winpython/winpython/py3compat.py/get_func_code