Signal Handlers can only be functions with DEBUG=True
When DEBUG=True, signal handlers can only be functions, rather than any callable object. This is because dispatch/dispatcher.py tries to ensure that signal handlers accept kwargs, using inspect.getargspec. Unfortunately, inspect.getargspec accepts only actual function objects, and not any callable. Thus, the check does more harm than good in cases where the signal handler is not an actual function. I suggest this check simply be removed.
Change History
(7)
milestone: |
→ 1.0 maybe
|
Triage Stage: |
Unreviewed → Design decision needed
|
milestone: |
1.0 maybe → 1.0
|
Component: |
Uncategorized → Core framework
|
Patch needs improvement: |
set
|
Triage Stage: |
Design decision needed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
I'd like to hear something from jacob or jdunck on this, since they've put the most thinking into this area lately. The goal of at least allowing such things to work is probably reasonable, however.