Irmen de Jong <irmen.nos...@xs4all.nl> writes: > Using Pypy 1.9.0. Importing readline. Using a background thread to get > input() from > stdin. It then crashes with: > > File "/usr/local/Cellar/pypy/1.9/lib_pypy/pyrepl/unix_console.py", line > 400, in restore > signal.signal(signal.SIGWINCH, self.old_sigwinch) > ValueError: signal() must be called from the main thread > > Anyone seen this before? What's going on?
Apparently, "input" is not apt to be called from a "background thread". I have no idea why "signal" should only be callable from the main thread. I do not think this makes much sense. Speak with the "Pypy" developers about this. -- http://mail.python.org/mailman/listinfo/python-list