Commit bfa76156 authored by Stefan Behnel's avatar Stefan Behnel

Clarify that the "include" statement can only be used at the module level.

Closes #2127.
parent f3d3f82b
......@@ -545,12 +545,14 @@ statement, for example,::
include "spamstuff.pxi"
The contents of the named file are textually included at that point. The
The contents of the named file are textually included at that point. The
included file can contain any complete statements or declarations that are
valid in the context where the include statement appears, including other
include statements. The contents of the included file should begin at an
include statements. The contents of the included file should begin at an
indentation level of zero, and will be treated as though they were indented to
the level of the include statement that is including the file.
the level of the include statement that is including the file. The include
statement cannot, however, be used outside of the module scope, such as inside
of functions or class bodies.
.. note::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment