[issue44554] pdb.main is unnecessarily complicated

2021-07-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44554] pdb.main is unnecessarily complicated

2021-07-18 Thread miss-islington
miss-islington added the comment: New changeset 2c2055884420f22afb4d2045bbdab7aa1394cb63 by Jason R. Coombs in branch 'main': bpo-44554: refactor pdb targets (and internal tweaks) (GH-26992) https://github.com/python/cpython/commit/2c2055884420f22afb4d2045bbdab7aa1394cb63 -- nosy: +

[issue44554] pdb.main is unnecessarily complicated

2021-07-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Additional problems I noticed while working on the refactor: - There is a lot of overlap in behavior between the implementations of _run_script and _run_module (initializing private variables, setting mainpyfile, resetting the __main__ namespace). - There

[issue44554] pdb.main is unnecessarily complicated

2021-07-02 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +25561 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26992 ___ Python tracker ___

[issue44554] pdb.main is unnecessarily complicated

2021-07-02 Thread Jason R. Coombs
New submission from Jason R. Coombs : While investigating issue44461, I observed some complexities to the current pdb.main implementation, some of which likely contributed to the bug being present. - variables are initialized to defaults (https://github.com/python/cpython/blob/ec8759b060eff8