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.

Author gozdal
Recipients Andre Merzky, gozdal, mcepl, minrk, miss-islington, neologix, pitrou, sxsns243, takluyver, vstinner
Date 2019-09-26.10:28:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569493693.95.0.884691977461.issue23395@roundup.psfhosted.org>
In-reply-to
Content
A program which failed under Python 3.6 with

TypeError: 'int' object is not callable

still fails under Python 3.7.4 with same exception:

import signal
import os
import sys
import time

import multiprocessing

def fail():
    def handler(*args):
        pass

    while True:
        signal.signal(signal.SIGUSR1, signal.SIG_IGN)
        signal.signal(signal.SIGUSR1, handler)

proc = multiprocessing.Process(target=fail)
proc.start()
time.sleep(1)
pid = proc.pid

i = 0
try:
    while proc.is_alive():
        print("\r", end='')
        print(i, end='')
        i += 1
        os.kill(pid, signal.SIGUSR1)
        time.sleep(0.001)
finally:
    proc.join()
History
Date User Action Args
2019-09-26 10:28:14gozdalsetrecipients: + gozdal, pitrou, vstinner, mcepl, neologix, takluyver, minrk, Andre Merzky, sxsns243, miss-islington
2019-09-26 10:28:13gozdalsetmessageid: <1569493693.95.0.884691977461.issue23395@roundup.psfhosted.org>
2019-09-26 10:28:13gozdallinkissue23395 messages
2019-09-26 10:28:13gozdalcreate