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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
1b0999f9
Commit
1b0999f9
authored
Dec 17, 2018
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pdb
parent
e88a3f0a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
9 deletions
+0
-9
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+0
-4
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+0
-3
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+0
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+0
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
1b0999f9
...
@@ -1034,7 +1034,6 @@ class ExprNode(Node):
...
@@ -1034,7 +1034,6 @@ class ExprNode(Node):
def
coerce_to_temp
(
self
,
env
):
def
coerce_to_temp
(
self
,
env
):
# Ensure that the result is in a temporary.
# Ensure that the result is in a temporary.
import
pdb
;
pdb
.
set_trace
()
if
self
.
result_in_temp
():
if
self
.
result_in_temp
():
return
self
return
self
else
:
else
:
...
@@ -5853,7 +5852,6 @@ class SimpleCallNode(CallNode):
...
@@ -5853,7 +5852,6 @@ class SimpleCallNode(CallNode):
code
.
mark_pos
(
self
.
pos
)
code
.
mark_pos
(
self
.
pos
)
assert
self
.
is_temp
assert
self
.
is_temp
import
pdb
;
pdb
.
set_trace
()
self
.
allocate_temp_result
(
code
)
self
.
allocate_temp_result
(
code
)
if
arg
is
None
:
if
arg
is
None
:
...
@@ -8777,7 +8775,6 @@ class DictNode(ExprNode):
...
@@ -8777,7 +8775,6 @@ class DictNode(ExprNode):
# Custom method used here because key-value
# Custom method used here because key-value
# pairs are evaluated and used one at a time.
# pairs are evaluated and used one at a time.
code
.
mark_pos
(
self
.
pos
)
code
.
mark_pos
(
self
.
pos
)
import
pdb
;
pdb
.
set_trace
()
self
.
allocate_temp_result
(
code
)
self
.
allocate_temp_result
(
code
)
if
hasattr
(
self
.
type
,
'nogil'
)
and
self
.
type
.
nogil
:
if
hasattr
(
self
.
type
,
'nogil'
)
and
self
.
type
.
nogil
:
...
@@ -8840,7 +8837,6 @@ class DictNode(ExprNode):
...
@@ -8840,7 +8837,6 @@ class DictNode(ExprNode):
if
self
.
exclude_null_values
:
if
self
.
exclude_null_values
:
code
.
putln
(
'}'
)
code
.
putln
(
'}'
)
elif
self
.
type
.
nogil
:
elif
self
.
type
.
nogil
:
import
pdb
;
pdb
.
set_trace
()
code
.
putln
(
"%s->%s = %s;"
%
(
code
.
putln
(
"%s->%s = %s;"
%
(
self
.
result
(),
self
.
result
(),
item
.
key
.
value
,
item
.
key
.
value
,
...
...
Cython/Compiler/Nodes.py
View file @
1b0999f9
...
@@ -5171,7 +5171,6 @@ class AssignmentNode(StatNode):
...
@@ -5171,7 +5171,6 @@ class AssignmentNode(StatNode):
def
generate_execution_code
(
self
,
code
):
def
generate_execution_code
(
self
,
code
):
code
.
mark_pos
(
self
.
pos
)
code
.
mark_pos
(
self
.
pos
)
import
pdb
;
pdb
.
set_trace
()
self
.
generate_rhs_evaluation_code
(
code
)
self
.
generate_rhs_evaluation_code
(
code
)
self
.
generate_assignment_code
(
code
)
self
.
generate_assignment_code
(
code
)
...
@@ -5279,7 +5278,6 @@ class SingleAssignmentNode(AssignmentNode):
...
@@ -5279,7 +5278,6 @@ class SingleAssignmentNode(AssignmentNode):
def
analyse_types
(
self
,
env
,
use_temp
=
0
):
def
analyse_types
(
self
,
env
,
use_temp
=
0
):
from
.
import
ExprNodes
from
.
import
ExprNodes
import
pdb
;
pdb
.
set_trace
()
self
.
rhs
=
self
.
rhs
.
analyse_types
(
env
)
self
.
rhs
=
self
.
rhs
.
analyse_types
(
env
)
unrolled_assignment
=
self
.
unroll_rhs
(
env
)
unrolled_assignment
=
self
.
unroll_rhs
(
env
)
...
@@ -5524,7 +5522,6 @@ class CascadedAssignmentNode(AssignmentNode):
...
@@ -5524,7 +5522,6 @@ class CascadedAssignmentNode(AssignmentNode):
else
:
else
:
rhs
=
rhs
.
coerce_to
(
lhs_types
.
pop
(),
env
)
rhs
=
rhs
.
coerce_to
(
lhs_types
.
pop
(),
env
)
import
pdb
;
pdb
.
set_trace
()
if
not
rhs
.
is_name
and
not
rhs
.
is_literal
and
(
if
not
rhs
.
is_name
and
not
rhs
.
is_literal
and
(
use_temp
or
rhs
.
is_attribute
or
rhs
.
type
.
is_pyobject
):
use_temp
or
rhs
.
is_attribute
or
rhs
.
type
.
is_pyobject
):
rhs
=
rhs
.
coerce_to_temp
(
env
)
rhs
=
rhs
.
coerce_to_temp
(
env
)
...
...
Cython/Compiler/Parsing.py
View file @
1b0999f9
...
@@ -520,7 +520,6 @@ def p_call_build_packed_args(pos, positional_args, keyword_args):
...
@@ -520,7 +520,6 @@ def p_call_build_packed_args(pos, positional_args, keyword_args):
]
]
# TODO: implement a faster way to join tuples than creating each one and adding them
# TODO: implement a faster way to join tuples than creating each one and adding them
arg_tuple
=
reduce
(
partial
(
ExprNodes
.
binop_node
,
pos
,
'+'
),
subtuples
)
arg_tuple
=
reduce
(
partial
(
ExprNodes
.
binop_node
,
pos
,
'+'
),
subtuples
)
import
pdb
;
pdb
.
set_trace
()
if
keyword_args
:
if
keyword_args
:
kwargs
=
[]
kwargs
=
[]
dict_items
=
[]
dict_items
=
[]
...
...
Cython/Compiler/PyrexTypes.py
View file @
1b0999f9
...
@@ -1349,7 +1349,6 @@ class CythonExtensionType(CythonObjectType):
...
@@ -1349,7 +1349,6 @@ class CythonExtensionType(CythonObjectType):
def
declaration_code
(
self
,
entity_code
,
def
declaration_code
(
self
,
entity_code
,
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
,
deref
=
0
):
for_display
=
0
,
dll_linkage
=
None
,
pyrex
=
0
,
deref
=
0
):
import
pdb
;
pdb
.
set_trace
()
if
pyrex
or
for_display
:
if
pyrex
or
for_display
:
base_code
=
self
.
name
base_code
=
self
.
name
else
:
else
:
...
...
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