Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
bfa76156
Commit
bfa76156
authored
Mar 04, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that the "include" statement can only be used at the module level.
Closes #2127.
parent
f3d3f82b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
docs/src/userguide/language_basics.rst
docs/src/userguide/language_basics.rst
+5
-3
No files found.
docs/src/userguide/language_basics.rst
View file @
bfa76156
...
...
@@ -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::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment