[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue is solved. Thanks Irit for taking the time to investigate the issue and do the hard part of developing a test. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 49b5e20fa8c091f9158ccd26f9a12fc1e91cfc93 by Jason R. Coombs in branch '3.9': [3.9] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27400)

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-28 Thread miss-islington
miss-islington added the comment: New changeset 684eb5cb8016546f1f8652dae8febd5c6571193e by Jason R. Coombs in branch '3.10': [3.10] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27399)

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25933 pull_request: https://github.com/python/cpython/pull/27400 ___ Python tracker ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25932 pull_request: https://github.com/python/cpython/pull/27399 ___ Python tracker ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7 by Jason R. Coombs in branch 'main': bpo-44461: Check early that a pdb target is valid for execution. (#27227) https://github.com/python/cpython/commit/ee03bad25e83b00ba5fc2a0265b48c6286e6b3f7

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: -25553 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25768 pull_request: https://github.com/python/cpython/pull/27227 ___ Python tracker ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-03 Thread Irit Katriel
Irit Katriel added the comment: I've close PR26937 since we're not going for that. The test from it might still be useful, so I'm copying it here: def test_package_without_a_main(self): pkg_name = 't_pkg' module_name = 't_main' os_helper.rmtree(pkg_name)

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-07-02 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25553 pull_request: https://github.com/python/cpython/pull/26992 ___ Python tracker ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-30 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Irit. Reviewing now... -- assignee: -> jaraco ___ Python tracker ___ ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-28 Thread Irit Katriel
Irit Katriel added the comment: The cleanup issue was in the except: clause of the main loop: if the user does quit() during the pdb.interaction() call upon an unhandled exception ("the post mortem debugger"), then this quit request is ignored and the program just restarts. The attached

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-28 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +25506 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26937 ___ Python tracker ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-28 Thread Irit Katriel
Irit Katriel added the comment: However, if we just try to initialize self.botframe to None in __init__, then 'quit' doesn't work anymore, so something else needs to be done about cleanup when import fails at that stage. -- versions: +Python 3.11

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-28 Thread Irit Katriel
Irit Katriel added the comment: The difference between Jason's two test cases is which stage of Pdb._runmodule() fails. In the case of `python -m pdb -m importlib` runpy._get_module_details(module_name) raises an exception because importlib is a package and it looks for its __main__, so

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-19 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: -3.10regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: I was _unable_ to replicate the issue with a foo.py containing only `raise ValueError`, even with `python -m pdb -m foo`. -- ___ Python tracker

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: I can replicate the issue with this command: `python -m pdb -m importlib` (since `importlib` isn't executable, it triggers an error in runpy). -- ___ Python tracker

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: I encountered the same error on Python 3.9. -- versions: +Python 3.9 ___ Python tracker ___ ___

[issue44461] 'Pdb' object has no attribute 'botframe'

2021-06-19 Thread Jason R. Coombs
New submission from Jason R. Coombs : While doing some debugging on issue44459 using Python 3.10b3, I was using Pdb and after troubleshooting an exception and hitting 'q' to quit, I saw the following: ``` (Pdb) q Traceback (most recent call last): File