New submission from brotherBox:

This is the first bug that I file, so please bear with me here. I was advised 
to file this after running into a strange situation with asyncio 3.4.3. Adding 
signal handlers for any other signal but SIGINT throws strange exceptions. The 
attached source code produces the following traceback:

Exception ignored in: <bound method BaseEventLoop.__del__ of 
<_UnixSelectorEventLoop running=False closed=True debug=False>>
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/base_events.py", line 501, in __del__
  File "/usr/lib/python3.5/asyncio/unix_events.py", line 58, in close
  File "/usr/lib/python3.5/asyncio/unix_events.py", line 139, in 
remove_signal_handler
  File "/usr/lib/python3.5/signal.py", line 47, in signal
TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable 
object

I asked in #python on freenode and was asked to file this bug.

Thank you for your consideration

----------
components: asyncio
files: signal_bug.py
messages: 280182
nosy: brotherBox, gvanrossum, yselivanov
priority: normal
severity: normal
status: open
title: Failure to add
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file45378/signal_bug.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28628>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to