Trees | Indices | Help |
|
---|
|
object --+ | PyRiveObjects
A RiveScript object handler for Python code. This class provides built-in support for your RiveScript documents to include and execute object macros written in Python. For example: > object base64 python import base64 as b64 return b64.b64encode(" ".join(args)) < object + encode * in base64 - OK: <call>base64 <star></call> Python object macros receive these two parameters: rs: The reference to the parent RiveScript instance args: A list of argument words passed to your object macro Python support is on by default. To turn it off, just unset the Python language handler on your RiveScript object: rs.set_handler("python", None)
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
_objects =
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Oct 10 19:28:49 2015 | http://epydoc.sourceforge.net |