@@ -660,18 +660,16 @@ \section{The \keyword{import} statement \label{import}}
660660\indexii {filename}{extension}
661661\indexiii {module}{search}{path}
662662
663- If a built-in module is found, its built-in initialization code is
664- executed and step (1) is finished. If no matching file is found,
665- \exception {ImportError} is raised. If a file is found, it is parsed,
663+ If a built-in module is found,\indexii {module}{initialization} its
664+ built-in initialization code is executed and step (1) is finished. If
665+ no matching file is found,
666+ \exception {ImportError}\exindex {ImportError} is raised.
667+ \index {code block}If a file is found, it is parsed,
666668yielding an executable code block. If a syntax error occurs,
667- \exception {SyntaxError} is raised. Otherwise, an empty module of the given
668- name is created and inserted in the module table, and then the code
669- block is executed in the context of this module. Exceptions during
670- this execution terminate step (1).
671- \indexii {module}{initialization}
672- \exindex {SyntaxError}
673- \exindex {ImportError}
674- \index {code block}
669+ \exception {SyntaxError}\exindex {SyntaxError} is raised. Otherwise, an
670+ empty module of the given name is created and inserted in the module
671+ table, and then the code block is executed in the context of this
672+ module. Exceptions during this execution terminate step (1).
675673
676674When step (1) finishes without raising an exception, step (2) can
677675begin.
0 commit comments