self.operand2.result())
-# Note: This class is temporary "shut down" into an ineffective mode temp
+# Note: This class is temporarily "shut down" into an ineffective temp
# allocation mode.
#
-# More sophisticated temp reuse was going on before,
-# one could have a look at adding this again after /all/ classes
-# are converted to the new temp scheme. (The temp juggling cannot work
-# otherwise).
+# More sophisticated temp reuse was going on before, one could have a
+# look at adding this again after /all/ classes are converted to the
+# new temp scheme. (The temp juggling cannot work otherwise).
class BoolBinopNode(ExprNode):
# Short-circuiting boolean operation.
#
elif len(pos_args) != 1:
self._error_wrong_arg_count('bool', node, pos_args, '0 or 1')
return node
- return pos_args[0].coerce_to_boolean(
- self.current_env()).coerce_to_pyobject(self.current_env())
+ else:
+ return pos_args[0].coerce_to_boolean(
+ self.current_env()).coerce_to_pyobject(self.current_env())
### builtin functions
elif (type1 is c_bint_type or type2 is c_bint_type) and (type1.is_numeric and type2.is_numeric):
# special case: if one of the results is a bint and the other
# is another C integer, we must prevent returning a numeric
- # type so that we do not loose the ability to coerce to a
+ # type so that we do not lose the ability to coerce to a
# Python bool if we have to.
return py_object_type
span_type = _spanning_type(type1, type2)
return py_object_type
else:
result_type = PyrexTypes.spanning_type(type1, type2)
- if result_type in (PyrexTypes.c_double_type, PyrexTypes.c_float_type, Builtin.float_type):
+ if result_type in (PyrexTypes.c_double_type, PyrexTypes.c_float_type,
+ Builtin.float_type):
# Python's float type is just a C double, so it's safe to
# use the C type instead
return PyrexTypes.c_double_type