消息 [193918]
When I run sys.stdin.readline() interactivelly (on Windows and Python 3.3.2) and hit Ctrl-C, sometimes it returns an empty string just before KeyboardInterrupt is raised. Sometimes it isn't even raised and instead after hitting Return some weird SyntaxtError: unknown decode error (on line 0) occurs. Seems like propagation of KeyboardInterrupt is somehow out of sync. sys.stdin.read(n) has the same issue. May be related to recently fixed http://bugs.python.org/issue17619 where was similar situation with input(). |
|
| 日期 |
用户 |
动作 |
参数 |
| 2013-07-30 09:13:12 | Drekin | 修改 | recipients:
+ Drekin |
| 2013-07-30 09:13:12 | Drekin | 修改 | messageid: <1375175592.24.0.539816782076.issue18597@psf.upfronthosting.co.za> |
| 2013-07-30 09:13:12 | Drekin | 链接 | issue18597 messages |
| 2013-07-30 09:13:11 | Drekin | 创建 | |
|