Python calls Trace Handler fn within call to PyObject_Str
Tom
NoSpam at NoSpam.com
Fri Jan 19 01:19:18 EST 2001
"Mark Hammond" <MarkH at ActiveState.com> wrote in message
news:94871m$bpo$1 at nnrp1.deja.com...
> In article <3RM96.183472$59.49047774 at news3.rdc1.on.home.com>,
> "Tom" <NoSpam at NoSpam.com> wrote:
> >
> > My C++ module calls the PyObject_Str function, as so:
> >
> > PyObject* pPyStr = PyObject_Str( m_pPyObject ); // New Ref
> >
> > Stepping through the code in my debugger, I see that beneath
> (or 'within')
> > this call, Python is calling my trace handler function. The trace
> event is
> > a 'call'. Is this normal behavior?
>
> If the process of converting the object to a string calls .py code,
> then yes.
I thought it didn't, but looking closer, you're right - that was my problem.
Thanks.
Tom.
> Mark.
>
>
> Sent via Deja.com
> http://www.deja.com/
More information about the Python-list
mailing list