Package SCons :: Module Action :: Class FunctionAction
[show private | hide private]
[frames | no frames]

Class FunctionAction

ActionBase --+    
             |    
 _ActionAction --+
                 |
                FunctionAction


Class for Python function actions.


Method Summary
  __init__(self, execfunction, cmdstr, *args, **kw)
  __str__(self)
  execute(self, target, source, env)
  function_name(self)
  get_contents(self, target, source, env)
Return the signature contents of this callable action.
  get_implicit_deps(self, target, source, env)
  strfunction(self, target, source, env)
    Inherited from _ActionAction
  __call__(self, target, source, env, exitstatfunc, presub, show, execute, chdir)
  print_cmd_line(self, s, target, source, env)
    Inherited from ActionBase
  __add__(self, other)
  __cmp__(self, other)
  __radd__(self, other)
  genstring(self, target, source, env)
  get_executor(self, env, overrides, tlist, slist, executor_kw)
Return the Executor for this Action.
  presub_lines(self, env)

Method Details

get_contents(self, target, source, env)

Return the signature contents of this callable action.

By providing direct access to the code object of the function, Python makes this extremely easy. Hooray!

Unfortunately, older versions of Python include line number indications in the compiled byte code. Boo! So we remove the line number byte codes to prevent recompilations from moving a Python function.


Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net