Commit 4c420b44 authored by Stefan Behnel's avatar Stefan Behnel

Clarify documentation on "language_level" setting for included files.

Closes #2229.
parent 4737b53a
...@@ -628,9 +628,9 @@ Cython code. Here is the list of currently supported directives: ...@@ -628,9 +628,9 @@ Cython code. Here is the list of currently supported directives:
compilation. Default is compatibility with Python 2. To enable compilation. Default is compatibility with Python 2. To enable
Python 3 source code semantics, set this to 3 at the start of a Python 3 source code semantics, set this to 3 at the start of a
module or pass the "-3" command line option to the compiler. module or pass the "-3" command line option to the compiler.
Note that cimported and included source files inherit this Note that cimported files inherit this setting from the module
setting from the module being compiled, unless they explicitly being compiled, unless they explicitly set their own language level.
set their own language level. Included source files always inherit this setting.
``c_string_type`` (bytes / str / unicode) ``c_string_type`` (bytes / str / unicode)
Globally set the type of an implicit coercion from char* or std::string. Globally set the type of an implicit coercion from char* or std::string.
......
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