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
90ca446a
Commit
90ca446a
authored
Jan 13, 2020
by
Yuri Escalianti
Committed by
Stefan Behnel
Jan 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2740 emit_code_comments - removed from options, updated documentation (GH-3236)
parent
7c20e319
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+4
-0
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+0
-5
docs/src/userguide/source_files_and_compilation.rst
docs/src/userguide/source_files_and_compilation.rst
+4
-1
No files found.
Cython/Compiler/ModuleNode.py
View file @
90ca446a
...
@@ -63,6 +63,10 @@ def generate_c_code_config(env, options):
...
@@ -63,6 +63,10 @@ def generate_c_code_config(env, options):
else
:
else
:
emit_linenums
=
options
.
emit_linenums
emit_linenums
=
options
.
emit_linenums
if
hasattr
(
options
,
"emit_code_comments"
):
print
(
'Warning: option emit_code_comments is deprecated. '
'Instead, use compiler directive emit_code_comments.'
)
return
Code
.
CCodeConfig
(
return
Code
.
CCodeConfig
(
emit_linenums
=
emit_linenums
,
emit_linenums
=
emit_linenums
,
emit_code_comments
=
env
.
directives
[
'emit_code_comments'
],
emit_code_comments
=
env
.
directives
[
'emit_code_comments'
],
...
...
Cython/Compiler/Options.py
View file @
90ca446a
...
@@ -52,11 +52,6 @@ docstrings = True
...
@@ -52,11 +52,6 @@ docstrings = True
#: Embed the source code position in the docstrings of functions and classes.
#: Embed the source code position in the docstrings of functions and classes.
embed_pos_in_docstring
=
False
embed_pos_in_docstring
=
False
#: Copy the original source code line by line into C code comments
#: in the generated code file to help with understanding the output.
#: This is also required for coverage analysis.
emit_code_comments
=
True
# undocumented
# undocumented
pre_import
=
None
pre_import
=
None
...
...
docs/src/userguide/source_files_and_compilation.rst
View file @
90ca446a
...
@@ -678,7 +678,6 @@ Here are the options that are available:
...
@@ -678,7 +678,6 @@ Here are the options that are available:
.. autodata:: Cython.Compiler.Options.docstrings
.. autodata:: Cython.Compiler.Options.docstrings
.. autodata:: Cython.Compiler.Options.embed_pos_in_docstring
.. autodata:: Cython.Compiler.Options.embed_pos_in_docstring
.. autodata:: Cython.Compiler.Options.emit_code_comments
.. pre_import
.. pre_import
.. autodata:: Cython.Compiler.Options.generate_cleanup_code
.. autodata:: Cython.Compiler.Options.generate_cleanup_code
.. autodata:: Cython.Compiler.Options.clear_to_none
.. autodata:: Cython.Compiler.Options.clear_to_none
...
@@ -866,6 +865,10 @@ Cython code. Here is the list of currently supported directives:
...
@@ -866,6 +865,10 @@ Cython code. Here is the list of currently supported directives:
annotations, setting to False gives greater compatibility with Python code.
annotations, setting to False gives greater compatibility with Python code.
Must be set globally.
Must be set globally.
``emit_code_comments`` (True / False)
Copy the original source code line by line into C code comments in the generated
code file to help with understanding the output.
This is also required for coverage analysis.
.. _configurable_optimisations:
.. _configurable_optimisations:
...
...
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