def get_compiler_flags(self):
        flags = 0

        for value in self.get_globals().values():
            if isinstance(value, __future__._Feature):
                flags |= value.compiler_flag

        return flags
Give the current compiler flags by looking for _Feature instances
dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py/PythonInput.get_compiler_flags