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
d0d88e68
Commit
d0d88e68
authored
Oct 29, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove sage-specific and unused incref-local-binop option
parent
5f30f6b0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
14 deletions
+0
-14
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+0
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+0
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+0
-2
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+0
-6
No files found.
Cython/Compiler/CmdLine.py
View file @
d0d88e68
...
...
@@ -27,8 +27,6 @@ Options:
-z, --pre-import <module> If specified, assume undeclared names in this
module. Emulates the behavior of putting
"from <module> import *" at the top of the file.
--incref-local-binop Force local an extra incref on local variables before
performing any binary operations.
--cleanup <level> Release interned objects on python exit, for memory debugging.
Level indicates aggressiveness, default 0 releases nothing.
-w, --working <directory> Sets the working directory for Cython (the directory modules
...
...
@@ -108,8 +106,6 @@ def parse_command_line(args):
Options
.
embed_pos_in_docstring
=
1
elif
option
in
(
"-z"
,
"--pre-import"
):
Options
.
pre_import
=
pop_arg
()
elif
option
==
"--incref-local-binop"
:
Options
.
incref_local_binop
=
1
elif
option
==
"--cleanup"
:
Options
.
generate_cleanup_code
=
int
(
pop_arg
())
elif
option
in
(
"-D"
,
"--no-docstrings"
):
...
...
Cython/Compiler/ExprNodes.py
View file @
d0d88e68
...
...
@@ -4488,8 +4488,6 @@ class BinopNode(ExprNode):
self
.
coerce_operands_to_pyobjects
(
env
)
self
.
type
=
py_object_type
self
.
is_temp
=
1
if
Options
.
incref_local_binop
and
self
.
operand1
.
type
.
is_pyobject
:
self
.
operand1
=
self
.
operand1
.
coerce_to_temp
(
env
)
else
:
self
.
analyse_c_operation
(
env
)
...
...
Cython/Compiler/Nodes.py
View file @
d0d88e68
...
...
@@ -3092,8 +3092,6 @@ class InPlaceAssignmentNode(AssignmentNode):
self
.
dup
=
self
.
create_dup_node
(
env
)
# re-assigns lhs to a shallow copy
self
.
rhs
.
analyse_types
(
env
)
self
.
lhs
.
analyse_target_types
(
env
)
if
Options
.
incref_local_binop
and
self
.
dup
.
type
.
is_pyobject
:
self
.
dup
=
self
.
dup
.
coerce_to_temp
(
env
)
import
ExprNodes
if
self
.
lhs
.
type
.
is_pyobject
:
self
.
rhs
=
self
.
rhs
.
coerce_to_pyobject
(
env
)
...
...
Cython/Compiler/Options.py
View file @
d0d88e68
...
...
@@ -10,12 +10,6 @@ gcc_branch_hints = 1
pre_import
=
None
docstrings
=
True
# This is a SAGE-specific option that will
# cause Cython to incref local variables before
# performing a binary operation on them, for
# safe detection of inplace operators.
incref_local_binop
=
0
# Decref global variables in this module on exit for garbage collection.
# 0: None, 1+: interned objects, 2+: cdef globals, 3+: types objects
# Mostly for reducing noise for Valgrind, only executes at process exit
...
...
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