[issue45630] Dump CodeObject API for debugging

2021-12-09 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: Recently, we have used this function to troubleshoot problems with online applications. We have implemented the PEP659(Specializing) to the 3.6 version which is used by online services, and this function allows us to dump the current function's

[issue45630] Dump CodeObject API for debugging

2021-11-05 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: I hope that this function can be used in the _PyEval_EvalFrameDefault(or other customized eval_frame), for example, after calling the _Py_Quicken to confirm whether the instruction is modified correctly https://github.com/python/cpython/pull/2

[issue45630] Dump CodeObject API for debugging

2021-11-05 Thread Guido van Rossum
Guido van Rossum added the comment: Why not propose a slight extension to the dis module? -- ___ Python tracker ___ ___ Python-bugs

[issue45630] Dump CodeObject API for debugging

2021-11-05 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45630] Dump CodeObject API for debugging

2021-10-28 Thread penguin_wwy
penguin_wwy <940375...@qq.com> added the comment: This interface can dump code at any time, not just at compile time. Can observe the comparison before and after dynamic optimization(eg. specialize and super instr), and can also observe the instructions actually executed. Another situation is

[issue45630] Dump CodeObject API for debugging

2021-10-28 Thread Mark Shannon
Mark Shannon added the comment: What is the motivation for this? I see it could be useful when modifying the compiler, but there is already code for dumping the CFG in the compiler. https://github.com/python/cpython/blob/main/Python/compile.c#L7565 -- nosy: +Mark.Shannon ___

[issue45630] Dump CodeObject API for debugging

2021-10-27 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +27507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29243 ___ Python tracker __

[issue45630] Dump CodeObject API for debugging

2021-10-27 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: What the title says. -- components: Interpreter Core messages: 405106 nosy: penguin_wwy priority: normal severity: normal status: open title: Dump CodeObject API for debugging type: enhancement versions: Python 3.11 __