From 4c420b44e3ee50cf7fbb2bcaba080e94dcde8a3b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 5 May 2018 10:03:24 +0200 Subject: [PATCH] Clarify documentation on "language_level" setting for included files. Closes #2229. --- docs/src/reference/compilation.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/reference/compilation.rst b/docs/src/reference/compilation.rst index 2c6986f01..5721cc449 100644 --- a/docs/src/reference/compilation.rst +++ b/docs/src/reference/compilation.rst @@ -628,9 +628,9 @@ Cython code. Here is the list of currently supported directives: compilation. Default is compatibility with Python 2. To enable 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. - Note that cimported and included source files inherit this - setting from the module being compiled, unless they explicitly - set their own language level. + Note that cimported files inherit this setting from the module + being compiled, unless they explicitly set their own language level. + Included source files always inherit this setting. ``c_string_type`` (bytes / str / unicode) Globally set the type of an implicit coercion from char* or std::string. -- 2.25.1