Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b318c0

Browse files
committed
Merged revisions 65378-65379,65430 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r65378 | georg.brandl | 2008-08-01 22:04:43 +0200 (Fri, 01 Aug 2008) | 4 lines Add the grammar to the reference manual, since the new docs don't have the feature of putting all the small EBNF snippets together into one big file. ........ r65379 | georg.brandl | 2008-08-01 22:13:29 +0200 (Fri, 01 Aug 2008) | 2 lines This should really be a comment. ........ r65430 | georg.brandl | 2008-08-03 11:21:18 +0200 (Sun, 03 Aug 2008) | 2 lines #3495: use current version. ........
1 parent cca483a commit 5b318c0

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

Doc/library/site.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ and :file:`bar.pth` contains::
6161

6262
Then the following directories are added to ``sys.path``, in this order::
6363

64-
/usr/local/lib/python2.3/site-packages/bar
65-
/usr/local/lib/python2.3/site-packages/foo
64+
/usr/local/lib/python2.6/site-packages/bar
65+
/usr/local/lib/python2.6/site-packages/foo
6666

6767
Note that :file:`bletch` is omitted because it doesn't exist; the :file:`bar`
6868
directory precedes the :file:`foo` directory because :file:`bar.pth` comes

Doc/reference/grammar.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Full Grammar specification
2+
==========================
3+
4+
This is the full Python grammar, as it is read by the parser generator and used
5+
to parse Python source files:
6+
7+
.. literalinclude:: ../../Grammar/Grammar

Doc/reference/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ interfaces available to C/C++ programmers in detail.
2727
simple_stmts.rst
2828
compound_stmts.rst
2929
toplevel_components.rst
30-
30+
grammar.rst

Doc/reference/simple_stmts.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -727,10 +727,13 @@ raise a :exc:`SyntaxError`.
727727
the module search path is carried out differently. The sequence of identifiers
728728
up to the last dot is used to find a "package"; the final identifier is then
729729
searched inside the package. A package is generally a subdirectory of a
730-
directory on ``sys.path`` that has a file :file:`__init__.py`. [XXX Can't be
731-
bothered to spell this out right now; see the URL
732-
http://www.python.org/doc/essays/packages.html for more details, also about how
733-
the module search works from inside a package.]
730+
directory on ``sys.path`` that has a file :file:`__init__.py`.
731+
732+
..
733+
[XXX Can't be
734+
bothered to spell this out right now; see the URL
735+
http://www.python.org/doc/essays/packages.html for more details, also about how
736+
the module search works from inside a package.]
734737
735738
.. index:: builtin: __import__
736739

0 commit comments

Comments
 (0)