;ò
ëŒü?c           @   sÄ   d  Z  d g Z g  Z d „  Z d „  Z d k Z e e d ƒ o e e i ƒ n e e _ [ e d j oV d „  Z	 d „  Z
 e d	 „ Z e e	 ƒ e e
 d
 ƒ e e d d ƒ e e d ƒ n d S(   sœ   
atexit.py - allow programmer to define multiple exit functions to be executed
upon normal program termination.

One public function, register, is defined.
s   registerc          C   s5   x. t  o& t  i ƒ  \ } } }  | | |  Ž  q Wd S(   s‰   run any registered exit functions

    _exithandlers is traversed in reverse order so functions are executed
    last in, first out.
    N(   s   _exithandlerss   pops   funcs   targss   kargs(   s   kargss   funcs   targs(    (    s#   /mit/python/lib/python2.3/atexit.pys   _run_exitfuncs   s
      c         O   s   t  i |  | | f ƒ d S(   s×   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
    N(   s   _exithandlerss   appends   funcs   targss   kargs(   s   funcs   targss   kargs(    (    s#   /mit/python/lib/python2.3/atexit.pys   register   s     Ns   exitfuncs   __main__c           C   s	   d GHd  S(   Ns
   running x1(    (    (    (    s#   /mit/python/lib/python2.3/atexit.pys   x1(   s    c         C   s   d |  GHd  S(   Ns   running x2(%s)(   s   n(   s   n(    (    s#   /mit/python/lib/python2.3/atexit.pys   x2*   s    c         C   s   d |  | f GHd  S(   Ns   running x3(%s, kwd=%s)(   s   ns   kwd(   s   ns   kwd(    (    s#   /mit/python/lib/python2.3/atexit.pys   x3,   s    i   i   s   bars   no kwd args(   s   __doc__s   __all__s   _exithandlerss   _run_exitfuncss   registers   syss   hasattrs   exitfuncs   __name__s   x1s   x2s   Nones   x3(   s   _exithandlerss   __all__s   _run_exitfuncss   registers   syss   x3s   x2s   x1(    (    s#   /mit/python/lib/python2.3/atexit.pys   ?   s"   								
