summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sys.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 6f1aaff..94e4eb9 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -513,6 +513,13 @@ always available.
could be useful to restore the actual files to known working file objects in
case they have been overwritten with a broken object.
+ .. note::
+
+ Under some conditions ``stdin``, ``stdout`` and ``stderr`` as well as the
+ original values ``__stdin__``, ``__stdout__`` and ``__stderr__`` can be
+ None. It is usually the case for Windows GUI apps that aren't connected to
+ a console and Python apps started with :program:`pythonw`.
+
.. data:: tracebacklimit
@@ -571,3 +578,4 @@ always available.
Module :mod:`site`
This describes how to use .pth files to extend ``sys.path``.
+