[docs] [issue26964] Incorrect documentation for `-u`-flag

Olav Morken report at bugs.python.org
Thu May 5 13:06:37 EDT 2016


New submission from Olav Morken:

The documentation for the `-u`-flag (https://docs.python.org/3/using/cmdline.html#cmdoption-u) contains:

> The text I/O layer will still be line-buffered if writing to the console, or block-buffered if redirected to a non-interactive file.

This does not appear to be the case -- instead it is always line-buffered:

https://hg.python.org/cpython/file/v3.5.1/Python/pylifecycle.c#l1041

Attached is a trivial patch that simply removes everything after "line-buffered".

----------
assignee: docs at python
components: Documentation
files: fix-doc-unbuffered.patch
keywords: patch
messages: 264910
nosy: docs at python, olavmrk
priority: normal
severity: normal
status: open
title: Incorrect documentation for `-u`-flag
Added file: http://bugs.python.org/file42736/fix-doc-unbuffered.patch

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


More information about the docs mailing list