. .

smalltalk

OpenQwaq Python Integration

May 4, 2011 6:48:37.146

Andreas Raab has been exploring the OpenQwaq codebase, and has found some cool stuff. For instance:

This is the first part of our series about the Cool bits of OpenQwaq. OpenQwaq has a complete integration with Python. What this means is that from OpenQwaq you can call Python code simply via something like here:


Python initialize. "initialize the bridge"
module := Python loadModule: 'ExampleModule'.
result := module call: 'add' with: 3 with: 4.
instance := module call: 'ExampleClass'.
instance call: 'exampleMethod' with: instance.

Technorati Tags:

posted by James Robertson

Comments

Re: OpenQwaq Python Integration

[anonymous] May 4, 2011 9:27:56.665

Hi James,

How do you get / install the OpenQwag package?

Does it run on Pharo as well?

Re: OpenQwaq Python Integration

[James Robertson] May 4, 2011 9:47:55.315

Looks like you need SVN to get the code:

[link 1]

[1 http://code.google.com/p/openqwaq/source/checkout]

 Share Tweet This