Re: Should I use "if" or "try" (as a matter of speed)?

2005-07-09 Thread Wezzy
Linux on a AMD Sempron 2200+) it gives: > 0:00:00.000637 > 0:00:00.000823 PowerBook:~/Desktop wezzy$ python test.py 0:00:00.001206 0:00:00.002092 Python 2.4.1 Pb15 with Tiger -- Ciao Fabio -- http://mail.python.org/mailman/listinfo/python-list

Modify a C++ instance from the embed python interpreter

2005-08-27 Thread Wezzy
Hi, is there a tool that automatically expose an object to python? i have an instance of a C++ (or ObjC) object and i want to pass it to the embed interpreter that runs inside my program. Python code have to call c++ method and register some callback. I know that swig helps when python creates c++

Re: Modify a C++ instance from the embed python interpreter

2005-08-28 Thread Wezzy
Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > Wezzy wrote: > > Hi, is there a tool that automatically expose an object to python? i > > have an instance of a C++ (or ObjC) object and i want to pass it to the > > embed interpreter that runs inside my program. >