On Jun 10, 7:41 am, "Gabriel Genellina"
wrote:
> En Mon, 08 Jun 2009 22:15:22 -0300, BigHand escribió:
>
> > I have an embedded python application. which is a MFC app with
> > Python interpreter embedded.
>
> > In the App, I have a separate thread to e
Hi,All
I have an embedded python application. which is a MFC app with
Python interpreter embedded.
In the App, I have a separate thread to execute a Python script
(using the PyRun_File), but if the user want to stop the executing
script, how should I do?
A possible way is terminate the thr
On Mar 9, 9:02 am, BigHand wrote:
> On Mar 8, 9:49 pm, "Gabriel Genellina" wrote:
>
>
>
> > En Sat, 07 Mar 2009 21:18:22 -0200, BigHand escribió:
>
> > > On 3月7日, 下午11时21分, "Gabriel Genellina"
> > > wrote:
> > >> En Sa
On Mar 7, 9:22 pm, "Gabriel Genellina" wrote:
> En Sat, 07 Mar 2009 01:43:05 -0200, BigHand escribió:
>
>
>
> > On Mar 7, 11:40 am, BigHand wrote:
> >> Guys:
> >> I have a embedded python in MFC app. to execute a py script of a.py,
> >> th
On Mar 8, 9:49 pm, "Gabriel Genellina" wrote:
> En Sat, 07 Mar 2009 21:18:22 -0200, BigHand escribió:
>
> > On 3月7日, 下午11时21分, "Gabriel Genellina"
> > wrote:
> >> En Sat, 07 Mar 2009 11:46:08 -0200, BigHand
> >> escribió:
>
&g
On 3月7日, 下午10时38分, "Gabriel Genellina" wrote:
> En Sat, 07 Mar 2009 07:38:29 -0200, BigHand escribió:
>
> > how do I pass True to the Python function in the C++ code?
>
> (I've already suggested using PyErr_Print/PyTraceback_Print instead)
>
> See the
On 3月7日, 下午11时21分, "Gabriel Genellina" wrote:
> En Sat, 07 Mar 2009 11:46:08 -0200, BigHand escribió:
>
>
>
> > Here is copy from my IDLE of python 3.0
>
> >>>> traceback.print_tb(exc_tb)
> > File "", line 2, in
> > File
Here is copy from my IDLE of python 3.0
>>> import sys
>>> import traceback
>>> def a():
b()
>>> def b():
return tuple()[0]
>>> try:
a()
except:
exc_typ, exc_val, exc_tb = sys.exc_info()
>>> traceback.print_tb(exc_tb)
File "", line 2, in
File "", line 2, i
On Mar 7, 6:59 pm, Detlev Offenbach wrote:
> Hi,
>
> I just uploaded eric 4.3.1. It is a maintenance release fixing some bugs.
> It is available via the eric4 web site.
>
> http://eric-ide.python-projects.org/index.html
>
> Eric is a Python (and Ruby) IDE that comes with batteries included.
> Plea
On Mar 7, 5:38 pm, BigHand wrote:
> Guys, How do I transfer the parameters ?
> in python code:
> traceback.format_exception(exc_type, exc_val, exc_tb, 2, True)
>
> in C++ code:
> obFunc_format_exception = PyObject_GetAttrString(modTB,
> "format_exception");
Guys, How do I transfer the parameters ?
in python code:
traceback.format_exception(exc_type, exc_val, exc_tb, 2, True)
in C++ code:
obFunc_format_exception = PyObject_GetAttrString(modTB,
"format_exception");
tbArgs = Py_BuildValue("OOOii", exc_type, exc_value, exc_tb, 2, 1);
tbResultList = PyObj
On Mar 7, 11:40 am, BigHand wrote:
> Guys:
> I have a embedded python in MFC app. to execute a py script of a.py,
> the is only one line in a.py, it "a()" , normally ,excute this script
> file ,you will get a
> "the exception type is "
> "The
On Mar 7, 11:40 am, BigHand wrote:
> Guys:
> I have a embedded python in MFC app. to execute a py script of a.py,
> the is only one line in a.py, it "a()" , normally ,excute this script
> file ,you will get a
> "the exception type is "
> "The
Guys:
I have a embedded python in MFC app. to execute a py script of a.py,
the is only one line in a.py, it "a()" , normally ,excute this script
file ,you will get a
"the exception type is "
"The exception value is name 'a' is not defined "
Python3.0 with VS2005.
here is the brief code:
Py_Initi
On Mar 7, 9:34 am, BigHand wrote:
> On Mar 7, 3:50 am, Benjamin Peterson wrote:
>
> > BigHand gmail.com> writes:
>
> > > > There is no PyString_AsString. Everything
> > >> string is unicode now. (PyUnicode API)
> > > hello,Ben,
&g
On Mar 7, 3:50 am, Benjamin Peterson wrote:
> BigHand gmail.com> writes:
>
> > > There is no PyString_AsString. Everything
> >> string is unicode now. (PyUnicode API)
> > hello,Ben,
> > could you give me an example? I almost know the
> > PyUnicode AP
On 3月6日, 下午8时50分, Benjamin Peterson wrote:
> BigHand gmail.com> writes:
>
>
>
> > Guys:
> > I know that there is no PyString_AsString in Python3.0,
> > could you guys give me instruction about how can I do with the
> > following ?
>
> There is no Py
Guys:
I know that there is no PyString_AsString in Python3.0,
could you guys give me instruction about how can I do with the
following ?
PyObject *exc_type = NULL, *exc_value = NULL, *exc_tb = NULL;
PyErr_Fetch(&exc_type, &exc_value, &exc_tb);
how do I transfer the exc_type in a char* ?
thanks i
18 matches
Mail list logo