

def get_compiler_flags(self):
    '\n        Give the current compiler flags by looking for _Feature instances\n        in the globals.\n        '
    flags = 0
    for value in self.get_globals().values():
        if isinstance(value, __future__._Feature):
            flags |= value.compiler_flag
    return flags

dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py PythonInput.get_compiler_flags/original