Python calls Trace Handler fn within call to PyObject_Str

Mark Hammond MarkH at ActiveState.com
Thu Jan 18 20:59:21 EST 2001


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.

Mark.


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list