From 0938e8f5de7d0bfbe62c0d492df276746a41e059 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 12 Jan 2016 11:18:20 -0800 Subject: [PATCH] Add flush keyword arg to print() (even though 3.2 does not support it). --- builtins/3/builtins.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtins/3/builtins.pyi b/builtins/3/builtins.pyi index a4c749ced..d52916414 100644 --- a/builtins/3/builtins.pyi +++ b/builtins/3/builtins.pyi @@ -670,7 +670,8 @@ def oct(i: int) -> str: ... # TODO __index__ def open(file: Union[str, bytes, int], mode: str = 'r', buffering: int = -1, encoding: str = None, errors: str = None, newline: str = None, closefd: bool = True) -> IO[Any]: ... def ord(c: Union[str, bytes, bytearray]) -> int: ... -def print(*values: Any, sep: str = ' ', end: str = '\n', file: IO[str] = None) -> None: ... +# TODO: in Python 3.2, print() does not support flush +def print(*values: Any, sep: str = ' ', end: str = '\n', file: IO[str] = None, flush: bool = False) -> None: ... @overload def pow(x: int, y: int) -> Any: ... # The return type can be int or float, depending on y @overload