Then the following directories are added to ``sys.path``, in this order::
- /usr/local/lib/python2.3/site-packages/bar
- /usr/local/lib/python2.3/site-packages/foo
+ /usr/local/lib/python2.6/site-packages/bar
+ /usr/local/lib/python2.6/site-packages/foo
Note that :file:`bletch` is omitted because it doesn't exist; the :file:`bar`
directory precedes the :file:`foo` directory because :file:`bar.pth` comes
--- /dev/null
+Full Grammar specification
+==========================
+
+This is the full Python grammar, as it is read by the parser generator and used
+to parse Python source files:
+
+.. literalinclude:: ../../Grammar/Grammar
the module search path is carried out differently. The sequence of identifiers
up to the last dot is used to find a "package"; the final identifier is then
searched inside the package. A package is generally a subdirectory of a
-directory on ``sys.path`` that has a file :file:`__init__.py`. [XXX Can't be
-bothered to spell this out right now; see the URL
-http://www.python.org/doc/essays/packages.html for more details, also about how
-the module search works from inside a package.]
+directory on ``sys.path`` that has a file :file:`__init__.py`.
+
+..
+ [XXX Can't be
+ bothered to spell this out right now; see the URL
+ http://www.python.org/doc/essays/packages.html for more details, also about how
+ the module search works from inside a package.]
.. index:: builtin: __import__