Commit 1b0999f9 authored by Boxiang Sun's avatar Boxiang Sun

Remove pdb

parent e88a3f0a
...@@ -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,
......
...@@ -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)
......
...@@ -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 = []
......
...@@ -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:
......
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