[issue28458] from __future__ import print_function does not emulate the flush param from py3k

2016-10-17 Thread Berker Peksag

Berker Peksag added the comment:

That's because the flush argument was added in Python 3.3 (after print() was 
backported to 2.7 via a future import)

Thanks for the report.

--
nosy: +berker.peksag
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28458] from __future__ import print_function does not emulate the flush param from py3k

2016-10-17 Thread Attila-Mihaly Balazs

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com