Using Python As an Extensibility Library
Ignacio Vazquez-Abrams
ignacio at openservices.net
Fri Sep 7 08:27:55 EDT 2001
On 7 Sep 2001, kmalloc wrote:
> 1) I understand it is possible to run client code using an
> already-set-up context containing classes, variables and functions.
> How do I exactly do that?
You have to use PyRun_String() or PyRun_File(), passing them two dictionaries
to be used as the global and local symbol tables.
> 2) I have unsuccessfully tried to programmatically create a Python
> class in an existing module dictionary. All I got was an access
> violation...
> Can anyone explain to me how to do that "the right way"?
Not if we don't know what you're doing wrong. Show some code.
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list