ATLAS Offline Software
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
python.DebuggingContext.Context Class Reference
Inheritance diagram for python.DebuggingContext.Context:
Collaboration diagram for python.DebuggingContext.Context:

Public Member Functions

def __init__ (self, c)
 
def __del__ (self)
 
def current (cls)
 
def complete (cls)
 

Static Public Attributes

 hint
 

Static Private Attributes

 __context
 

Detailed Description

Keeps the context info as a stack
Usage:
context = Context("context string")  # this is it

Definition at line 5 of file DebuggingContext.py.

Constructor & Destructor Documentation

◆ __init__()

def python.DebuggingContext.Context.__init__ (   self,
  c 
)

Definition at line 14 of file DebuggingContext.py.

14  def __init__(self, c):
15  Context.__context.append(c)
16 

◆ __del__()

def python.DebuggingContext.Context.__del__ (   self)

Definition at line 17 of file DebuggingContext.py.

17  def __del__(self):
18  Context.__context.pop()
19 

Member Function Documentation

◆ complete()

def python.DebuggingContext.Context.complete (   cls)

Definition at line 25 of file DebuggingContext.py.

25  def complete(cls):
26  return Context.hint if not Context.__context else "\n".join(Context.__context)
27 
28 

◆ current()

def python.DebuggingContext.Context.current (   cls)

Definition at line 21 of file DebuggingContext.py.

21  def current(cls):
22  return Context.__context[-1]
23 

Member Data Documentation

◆ __context

python.DebuggingContext.Context.__context
staticprivate

Definition at line 12 of file DebuggingContext.py.

◆ hint

python.DebuggingContext.Context.hint
static

Definition at line 11 of file DebuggingContext.py.


The documentation for this class was generated from the following file:
fillPileUpNoiseLumi.current
current
Definition: fillPileUpNoiseLumi.py:52
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
python.AthDsoLogger.__del__
def __del__(self)
Definition: AthDsoLogger.py:82