[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-10 Thread Alexander Ulyanov
Alexander Ulyanov added the comment: Perhaps it's a matter of preference. I found it convenient, since passing in a boolean expression allows me to get rid of extra if-blocks thus reducing lines of code and increasing debugging speed. I wanted to share my idea with the community

[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-08 Thread Alexander Ulyanov
Change by Alexander Ulyanov : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue38054> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-08 Thread Alexander Ulyanov
Change by Alexander Ulyanov : -- keywords: +patch pull_requests: +15384 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15731 ___ Python tracker <https://bugs.python.org/issu

[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-08 Thread Alexander Ulyanov
New submission from Alexander Ulyanov : Through out my experience with python debugger, I often found myself creating if-statements around set_trace() instructions. This patch introduces a key-word argument that allows to pass in a boolean or a condition that evaluates to boolean to control