[New-bugs-announce] [issue28458] from __future__ import print_function does not emulate the flush param from py3k

Attila-Mihaly Balazs report at bugs.python.org
Mon Oct 17 03:56:45 EDT 2016


New submission from Attila-Mihaly Balazs:

Doing the following in Python 2.7.12 does not work:

from __future__ import print_function
print(1, flush=True)

It says: "'flush' is an invalid keyword argument for this function"

While the following is a perfectly valid python 3k statement:

print(1, flush=True)

----------
components: Library (Lib)
messages: 278797
nosy: Attila-Mihaly Balazs
priority: normal
severity: normal
status: open
title: from __future__ import print_function does not emulate the flush param from py3k
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28458>
_______________________________________


More information about the New-bugs-announce mailing list