Hi,

I understand that you are looking for PyEval_SetTrace(NULL, NULL) to
unregister a trace function set previously.

Maybe the documentation should be enhanced to explain that. Do you
want to propose a PR to enhance the doc?

https://docs.python.org/dev/c-api/init.html?highlight=pyeval_settrace#c.PyEval_SetTrace

Victor

Le jeu. 26 mars 2020 à 22:47, Leandro Müller
<leandrogmul...@hotmail.com> a écrit :
>
> Hello.
> I need to remove the trace on thread, but I tried to run sys.settrace(None) 
> and return alert on console.
> I didn't find any soluction to remove by C, example PyEval_SetTrace(Py_None, 
> obj), but it not works.
>
> Are there any soluction to remove without alert or by C?
> C is better for me.
>
> Thanks.
>
> Att.
>
> Leandro Müller
>
> _______________________________________________
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at 
> https://mail.python.org/archives/list/python-dev@python.org/message/HJNC3UOXDBOYF6XJ3MFJX647WKCICK7P/
> Code of Conduct: http://python.org/psf/codeofconduct/



-- 
Night gathers, and now my watch begins. It shall not end until my death.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/ZXF3YXLZHG5JTLYOYDIPDLMDJ2Y3G4VM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to