Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
sys.stdout在bpython中没有属性flush_Python_Python 3.x_Sys_Bpython - Fatal编程技术网

sys.stdout在bpython中没有属性flush

sys.stdout在bpython中没有属性flush,python,python-3.x,sys,bpython,Python,Python 3.x,Sys,Bpython,我正在使用bpython进行交互式Python会话,由于我更新了我的系统,我遇到了以下问题: 在bpython3中: >>> import sys >>> sys.stdout.flush Traceback (most recent call last): File "<input>", line 1, in <module> AttributeError: 'FakeStream' object has no attribute

我正在使用bpython进行交互式Python会话,由于我更新了我的系统,我遇到了以下问题:

在bpython3中:

>>> import sys
>>> sys.stdout.flush
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'FakeStream' object has no attribute 'flush'

这是一个在版本中修复的错误


使用
pip3安装-U bpython升级应该更新到最新的稳定版本,其中包括修复程序。

这是一个在版本中修复的错误


使用
pip3安装-U bpython
升级应该更新到最新的稳定版本,其中包括修复程序。

是否使用
sys.\uuuuu stdout\uuuuu.flush
工作?这确实在
bpython3
中有效,@padraiccunningham似乎是一个在0.13版
pip3安装-U bpython
中修复的错误,非常感谢。它解决了这个问题。为完整起见,修复此错误的提交:@J.F.Sebastian,当然,done.does
sys.\uu stdout\uuuu.flush
有效吗?这确实在
bpython3
中有效,@padraickunningham似乎是一个在0.13版
pip3安装中修复的错误,谢谢。它解决了这个问题。为了完整性,修复此错误的提交:@J.F.Sebastian,当然,完成。
>>> import sys
>>> sys.stdout.flush
<built-in method flush of _io.TextIOWrapper object at 0x7fab6b7fb708>
$ bpython3 --version
bpython version 0.12 on top of Python 3.4.2
(C) 2008-2012 Bob Farrell, Andreas Stuehrk et al. See AUTHORS for detail.

$ python3 --version
Python 3.4.2