This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年09月27日 08:40 by xdegaye, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg227666 - (view) | Author: Xavier de Gaye (xdegaye) * (Python triager) | Date: 2014年09月27日 08:40 | |
With the following script: import time def foo(): import pdb; pdb.set_trace() while 1: time.sleep(.5) foo() Hitting ^C after continue gives: $ ./python foo.py > foo.py(5)foo() -> while 1: (Pdb) continue ^C Program interrupted. (Use 'cont' to resume). --Call-- > Lib/signal.py(51)signal() -> @_wraps(_signal.signal) (Pdb) This is fixed with the following change: diff --git a/Lib/pdb.py b/Lib/pdb.py --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -186,9 +186,9 @@ raise KeyboardInterrupt self.message("\nProgram interrupted. (Use 'cont' to resume).") self.set_step() - self.set_trace(frame) # restore previous signal handler signal.signal(signal.SIGINT, self._previous_sigint_handler) + self.set_trace(frame) def reset(self): bdb.Bdb.reset(self) |
|||
| msg278535 - (view) | Author: Xavier de Gaye (xdegaye) * (Python triager) | Date: 2016年10月12日 18:26 | |
Fixed in issue 20766. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:08 | admin | set | github: 66692 |
| 2016年10月12日 18:26:51 | xdegaye | set | status: open -> closed resolution: out of date messages: + msg278535 stage: resolved |
| 2014年09月27日 08:40:39 | xdegaye | create | |