Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
atexit Namespace Reference

Functions

def register
 
def x1
 
def x2
 
def x3
 

Variables

list __all__ = ["register"]
 
list _exithandlers = []
 
 x = sys.exitfunc
 

Detailed Description

atexit.py - allow programmer to define multiple exit functions to be executed
upon normal program termination.

One public function, register, is defined.

Function Documentation

def atexit.register (   func,
  targs,
  kargs 
)
register a function to be executed upon normal program termination

func - function to be called at exit
targs - optional arguments to pass to func
kargs - optional keyword arguments to pass to func

Definition at line 22 of file atexit.py.

22 
23 def register(func, *targs, **kargs):
24  """register a function to be executed upon normal program termination
25 
26  func - function to be called at exit
27  targs - optional arguments to pass to func
28  kargs - optional keyword arguments to pass to func
29  """
30  _exithandlers.append((func, targs, kargs))
def atexit.x1 ( )

Definition at line 44 of file atexit.py.

44 
45  def x1():
print "running x1"
def atexit.x2 (   n)

Definition at line 46 of file atexit.py.

46 
47  def x2(n):
print "running x2(%s)" % `n`
def atexit.x3 (   n,
  kwd = None 
)

Definition at line 48 of file atexit.py.

References register().

48 
49  def x3(n, kwd=None):
50  print "running x3(%s, kwd=%s)" % (`n`, `kwd`)

Variable Documentation

list __all__ = ["register"]

Definition at line 8 of file atexit.py.

list _exithandlers = []

Definition at line 10 of file atexit.py.

x = sys.exitfunc

Definition at line 33 of file atexit.py.