summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-12-16 06:25:57 +0000
committerÉric Araujo <merwok@netwok.org>2010-12-16 06:25:57 +0000
commitf7d8173941184f0774c5b218284377d696bb2903 (patch)
treeef3b379f16d027fc716b6d3b61939a6e34b4df82
parentc11ba768da100a7d7eb64cf457910a7f1655d559 (diff)
downloadcpython-git-f7d8173941184f0774c5b218284377d696bb2903.tar.gz
Add missing doc from r79533
-rw-r--r--Doc/library/py_compile.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/py_compile.rst b/Doc/library/py_compile.rst
index 40ca58806e..ca86143eab 100644
--- a/Doc/library/py_compile.rst
+++ b/Doc/library/py_compile.rst
@@ -40,6 +40,11 @@ byte-code cache files in the directory containing the source code.
line, if *args* is not specified) are compiled and the resulting bytecode is
cached in the normal manner. This function does not search a directory
structure to locate source files; it only compiles files named explicitly.
+ If ``'-'`` is the only parameter in args, the list of files is taken from
+ standard input.
+
+ .. versionchanged:: 2.7
+ Added support for ``'-'``.
When this module is run as a script, the :func:`main` is used to compile all the
files named on the command line. The exit status is nonzero if one of the files