Here are the examples of the python api sys.flags.debug taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
Example 1
def error(self, msg):
e = AxonError(msg, (self.lnum, self.pos), self.line[self.pos:self.pos+16])
if sys.flags.debug:
self.errto.write(str(e))
raise e
0
Example 2
Project: pyaxon Source File: errors.py
def error2(msg):
e = AxonError(msg)
if sys.flags.debug:
self.errto.write(str(e))
raise e
0
Example 3
Project: Nuitka Source File: Options.py
def isPythonDebug():
return options.python_debug or sys.flags.debug