Changes between Version 6 and Version 7 of PythonPort/Design
- Timestamp:
- Oct 27, 2007, 1:58:03 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonPort/Design
v6 v7 172 172 The following functions are avaiable from python, in the bjam module. 173 173 174 {{{call <name>, <param0>, <param1>, ....}}} 174 {{{call <name>, <param0>, <param1>, ....}}}[[br]] 175 175 Looksup <name> in bjam module 'python_interface'. If found, calls that rule, passsing <param0>, <paramN>. Each <paramI> should be 176 176 a list of strings. 177 177 178 {{{import_rule <bjam module>, <bjam name>, <callable>}}} 178 {{{import_rule <bjam module>, <bjam name>, <callable>}}}[[br]] 179 179 Adds new rule <bjam name> to <bjam module>. Calling that rule will call back to Python <callable> -- which should accept lists of strings as parameters. 180 180 181 {{{define_action action_name, action_body, bind_list, flags.}}} 181 {{{define_action action_name, action_body, bind_list, flags.}}}[[br]] 182 182 Defines new action with specified name, body, list if bound variables and flags. The action is created in the global module. 183 183 184 {{{variable name <name>}}} 184 {{{variable name <name>}}}[[br]] 185 185 Obtains the value of a variable 'name' in Jam's global module. 186 186 187 {{{backtrace}}}[[br]] 188 Returns 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).
