Message161465
I took a quick look at this. It's not just OS X, the following also fails on FreeBSD 8.2:
$ python2.7 -c 'import readline'
$
$ python2.7 -c 'import readline' &
$
[1] + Stopped (tty output) python2.7 -c ?import readline
It seems to be hanging on a read from stdin, as adding a redirect of stdin to /dev/null prevents the hang:
$ python2.7 -c 'import readline' </dev/null &
[1] 36178
$
[1]+ Done python2.7 -c 'import readline' < /dev/null
But, on Debian and Ubuntu, neither case hangs. Also, on OS X, the same hang behavior is observed when linked with either GNU readline or BSD libedit. I'm not sure what the significant difference here is: possibly a BSDism vs Linuxism? |
|
Date |
User |
Action |
Args |
2012-05-23 21:52:48 | ned.deily | set | recipients:
+ ned.deily, ronaldoussoren, olivier-mattelaer |
2012-05-23 21:52:48 | ned.deily | set | messageid: <1337809968.42.0.248323599509.issue14892@psf.upfronthosting.co.za> |
2012-05-23 21:52:47 | ned.deily | link | issue14892 messages |
2012-05-23 21:52:47 | ned.deily | create | |
|