Ted Meyer added the comment:
Sorry everyone, it appears I made a mistake pasting the code in here.
There was a type where I was trying to print local_val instead of local_var.
the code should be this:
import signal
def sig_hdlr(signum, frame):
raise ValueError()
def faulty
Changes by Ted Meyer :
--
type: -> crash
___
Python tracker
<http://bugs.python.org/issue29096>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Ted Meyer:
Using this simple snippit of code:
import signal
import signal
def sig_hdlr(signum, frame):
raise ValueError()
def faulty():
local_var = ""
signal.signal(signal.SIGALRM, sig_hdlr)
signal.alarm(1)
try: