[issue38904] "signal only works in main thread" in main thread

2019-12-17 Thread Richard Warfield
Richard Warfield added the comment: I think so, yes. On Wed, Dec 18, 2019 at 1:10 AM Eric Snow wrote: > > Eric Snow added the comment: > > So resolving issue39042 would be enough, particularly if we backported > th

[issue38904] "signal only works in main thread" in main thread

2019-12-15 Thread Richard Warfield
Richard Warfield added the comment: Thanks for looking into this. Changing the behavior of the "threading" module to be consistent with the runtime and "signal" module would be sufficient, at least for my particular case. If the "if threading.current_thread()

[issue38904] "signal only works in main thread" in main thread

2019-11-23 Thread Richard Warfield
Richard Warfield added the comment: I should mention, this behavior is new in 3.8.0. It did not occur in 3.7.x. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38904] "signal only works in main thread" in main thread

2019-11-23 Thread Richard Warfield
New submission from Richard Warfield : I have an application (https://github.com/litxio/ptghci) using embedded Python, which needs to set a signal handler (and use the prompt-toolkit library which itself sets signal handlers). My call to signal.signal is guarded by a check that we're running