sys.flags.debug

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 7

Example 1

Project: pyaxon Source File: errors.py
Function: error
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

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

Example 3

Project: Nuitka Source File: Options.py
def isPythonDebug():
    return options.python_debug or sys.flags.debug