[Python-Dev] Set PyEval_SetTrace to method from class

2020-04-04 Thread Leandro Müller
, I've been thinking to run Trace with a new instance class C. Any suggestions? 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] Debug C++

2020-03-30 Thread Leandro Müller
Hi Are there any away to debug C module during python debug? 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

[Python-Dev] Re: sys.trace without alert or remove trace by C

2020-03-27 Thread Leandro Müller
Hello Victor. Thank you. The tips help me a lot. I think the tip needs to stay inside on document to reduce time to seach soluction. Thanks. Att. Leandro Müller De: Victor Stinner Enviado: Thursday, March 26, 2020 7:08:42 PM Para: Leandro Müller Cc: python-dev

[Python-Dev] Clean memory on C trace

2020-03-27 Thread Leandro Müller
) { user_console = get_variable_char(obj, 0); PyEval_SetTrace(trace_trampoline, obj); return Py_None; } [cid:607bbc5e-5dd8-4a8b-ad96-dc31dce274a9] Att. Leandro Müller ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email

[Python-Dev] C trace after start runtime

2020-03-27 Thread Leandro Müller
Hello. I need to start C trace the thread after to start, its to reduce of the time of the process. I had a lot performance changes sys.trace to C trace, but I need to reduce more time. Are there any soluction to set trace during thead runtime? Att. Leandro Müller

[Python-Dev] sys.trace without alert or remove trace by C

2020-03-26 Thread Leandro Müller
. 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

[Python-Dev] Re: Jump on C by PyEval_SetTrace Python 3.7.7 - SOLUTION

2020-03-23 Thread Leandro Müller
p++; line += (signed char)*p; if (line == fline) break; p++; } return addr; } Att. Leandro Müller ________ De: Leandro Müller Enviado: segunda-feira, 23 de março de 2020 13:45 Para: Victor Stinner Cc: python-dev@python.org As

[Python-Dev] Re: Jump on C by PyEval_SetTrace Python 3.7.7

2020-03-23 Thread Leandro Müller
Hi. When I changed frame->f_lasti change de code to back, it's work but the line in front code occurs dump, the runtime over. Example: I jump to 8 line and after I jump to line 10, it occurs dump. On python trace pdb the jump works good by the frame-f_lineno. Att. Leandro Mül

[Python-Dev] Jump on C by PyEval_SetTrace Python 3.7.7

2020-03-22 Thread Leandro Müller
Hi everyone. I'm trying to make a simple jump on C funcion trace by frame->f_lineno. Example is simple, but not working. if (frame->f_lineno == 12){ frame->f_lineno = 8; } attached files C and python to run test. the line 12 I need to jump to line 8. Att. Leandro Müller import