CMS 3D CMS Logo

Namespaces | Classes | Functions
python Namespace Reference

Namespaces

 cmscompleter
 
 cmstools
 
 diff_provenance
 
 diffProv
 
 iterators
 
 LumiList
 
 namespaceDict
 
 ParticleDecayDrawer
 
 read_provenance
 
 readProv
 
 rootplot
 
 XML2Python
 

Classes

class  Events
 

## Events

More...
 
class  Handle
 

## Handle

More...
 
class  Lumis
 

## Lumis

More...
 
class  Runs
 

## Runs

More...
 

Functions

def setQuietWarn (quiet=True)
 
def warn (args, kwargs)
 

Function Documentation

def python.setQuietWarn (   quiet = True)

Definition at line 16 of file __init__.py.

16 def setQuietWarn (quiet = True):
17  global quietWarn
18  quietWarn = quiet
19 
def setQuietWarn(quiet=True)
Definition: __init__.py:16
def python.warn (   args,
  kwargs 
)
print out warning with line number and rest of arguments

Definition at line 20 of file __init__.py.

20 def warn (*args, **kwargs):
21  """print out warning with line number and rest of arguments"""
22  if quietWarn: return
23  frame = inspect.stack()[1]
24  filename = frame[1]
25  lineNum = frame[2]
26  #print "after '%s'" % filename
27  blankLines = kwargs.get('blankLines', 0)
28  if blankLines:
29  print '\n' * blankLines
30  spaces = kwargs.get('spaces', 0)
31  if spaces:
32  print ' ' * spaces,
33  if len (args):
34  print "%s (%s): " % (filename, lineNum),
35  for arg in args:
36  print arg,
37  print
38  else:
39  print "%s (%s):" % (filename, lineNum)
40 
def warn(args, kwargs)
Definition: __init__.py:20