[Dune] [#661] Use Python to evaluate function strings (Attachment added)

Dune flyspray at dune-project.org
Wed Mar 7 23:08:53 CET 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#661 - Use Python to evaluate function strings
User who did this - Carsten Gräser (Carsten)

----------
Indeed the python interface in dune-fufem is much more mature now. It allows to use python inside of C++ in a very simple and flexible ways. This is achieved by hiding all the technical details of the python api (including e.g. manual reference counting) from the user.

In fact it does only cover a small part of the python api. However it should be enough to do most you ever want to do with in. It does e.g. cover
* execution of python statements from strings, streams, files
* evaluation of expressions
* import and creation of modules
* easy access to module members (functions,classes, objects)
* calling constructors and functions
* extendable conversion between python and C++ types
The only dune specific stuff are conversions for dune types and wrapper for python callables as Dune::VirtualFunction.

Attached you can find the header containing the code and a c++ program and a python module demonstrating its use.

----------

One or more files have been attached.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=661#comment3250

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list