Changes between Version 6 and Version 7 of PythonPort/Design


Ignore:
Timestamp:
Oct 27, 2007, 1:58:03 PM (18 years ago)
Author:
ghost
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonPort/Design

    v6 v7  
    172172The following functions are avaiable from python, in the bjam module.
    173173
    174 {{{call <name>, <param0>, <param1>, ....}}}
     174{{{call <name>, <param0>, <param1>, ....}}}[[br]]
    175175Looksup <name> in bjam module 'python_interface'. If found, calls that rule, passsing <param0>, <paramN>. Each <paramI> should be
    176176a list of strings.
    177177
    178 {{{import_rule <bjam module>, <bjam name>, <callable>}}}
     178{{{import_rule <bjam module>, <bjam name>, <callable>}}}[[br]]
    179179Adds new rule <bjam name> to <bjam module>. Calling that rule will call back to Python <callable> -- which should accept lists of strings as parameters.
    180180
    181 {{{define_action action_name, action_body, bind_list, flags.}}}
     181{{{define_action action_name, action_body, bind_list, flags.}}}[[br]]
    182182Defines new action with specified name, body, list if bound variables and flags. The action is created in the global module.
    183183
    184 {{{variable name <name>}}}
     184{{{variable name <name>}}}[[br]]
    185185Obtains the value of a variable 'name' in Jam's global module.
    186186
     187{{{backtrace}}}[[br]]
     188Returns a backtrace from the point where Python was called from Bjam, till either bjam top-level, or the place where it was called from Python. The result is a list, each element of the tuple of format (file, file, jam module, function).