-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-123756: Only allow restart in command line mode #123757
gh-123756: Only allow restart in command line mode #123757
Conversation
Hi @iritkatriel , could you take a quick look at the proposal and the implementation and see if this makes sense? I will add the tests and the documentation after your pre-approval. |
Okay I defined a new Do you think code wise this is the way to go? I'll work on the docs and tests if the feature is good to go. |
Misc/NEWS.d/next/Library/2024-09-06-01-35-11.gh-issue-123756.Ozbhke.rst
Outdated
Show resolved
Hide resolved
Hi @iritkatriel , I updated the docs and tests, also renamed the enum class. Could you review it? Thanks! |
Hey @iritkatriel , I made some changes after the discussion on discord. Now the name of the argument is A few questions - do you think we should add run-time checker for the value? If we do, will it affect devs that build their debugger based on pdb? Should we have a separate method to check it so it can be overwritten? We can also do a setting kind of thing. The related question - should we type hint this? It's not common to type hint arguments in I think one thing we need to factor in is that - this argument is basically exclusively used by debugger developers. The debugger users should never need to use this. So maybe we can cut some corners (not making it super safe to use). For the documentation, for |
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
The doc change makes sense. I also added the whatsnew entry. |
An
allow_restart
argument is added topdb.Pdb
to enablerun/restart
command when needed (for stdlib, only in command line mode).