The interrupt.py example is broken on python3.5, because of changes that were made to signal handling in python as described by PEP 0475. As explained in zeromq/pyzmq#746, pyzmq now retries calls to ...
Given that an interrupt can occur at any time between machine code instructions, the original line of Python code may be only partially executed. Consequently a Python object such as a set, list or ...