• Michael W. Hudson's avatar
    Backport my recent raw_input() vs no threads build vs SIGINT argh: · 52cba65d
    Michael W. Hudson yazdı
    In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
    because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
    actually expanded to nothing under a no-threads build, so if you somehow
    NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
    stay NULLed when you return to Python.  Argh!
    52cba65d
myreadline.c 5.39 KB