class problem with Embedded Python

Ing Giuseppe Monteleone info at
Mon Mar 8 22:21:17 CET 2004

I Have a problem with embedded python: the interpeter work and i can call my
object. In other word the code

import geppo

where geppo is my own module, work well, but when i try to define a class
like this

import geppo
class pippo:

the C function PyRun_SimpleString give me a ret value < 0, an error.
Moreover when I ty to use an arimethic function I get a memory fault

import geppo
v = 3+3

that code generate a memory fault.

Some one can help me ?

In Giuseppe Monteleone

More information about the Python-list mailing list