]> granicus.if.org Git - python/commitdiff
update simple explanation of parseFile()
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 14 Aug 2001 22:38:03 +0000 (22:38 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 14 Aug 2001 22:38:03 +0000 (22:38 +0000)
Tools/compiler/doc/compiler.tex

index 98ac5f27eca41c90a7926f813a295623beae75ec..ccc962c56e474570c8a5ffa8a35f7b787dd47257 100644 (file)
@@ -75,7 +75,7 @@ contains the tree.
 
 \begin{funcdesc}{parseFile}{path}
 Return an abstract syntax tree for the Python source code in the file
-specified by \var{path}.  It is equivalent to \code{parse(open(path))}.
+specified by \var{path}.  It is equivalent to \code{parse(open(path).read())}.
 \end{funcdesc}
 
 \begin{funcdesc}{walk}{ast, visitor, \optional{verbose=None}}