]> granicus.if.org Git - python/commitdiff
Add missing doc from r79533
authorÉric Araujo <merwok@netwok.org>
Thu, 16 Dec 2010 06:25:57 +0000 (06:25 +0000)
committerÉric Araujo <merwok@netwok.org>
Thu, 16 Dec 2010 06:25:57 +0000 (06:25 +0000)
Doc/library/py_compile.rst

index 40ca58806e87891c658b7a021522a73e7bee9dcf..ca86143eab46c554dc343085b9bdef0176e2d83f 100644 (file)
@@ -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