Commit 9f9458c7 authored by Robert Bradshaw's avatar Robert Bradshaw

merge

parents 2e864668 63402a50
......@@ -28,7 +28,7 @@ builtin_function_table = [
#('hex', "", "", ""),
#('id', "", "", ""),
#('input', "", "", ""),
('intern', "s", "O", "__Pyx_InternFromString"),
#('intern', "s", "O", "__Pyx_InternFromString"), # Doesn't work for Python str objects with null characters.
('isinstance', "OO", "b", "PyObject_IsInstance"),
('issubclass', "OO", "b", "PyObject_IsSubclass"),
('iter', "O", "O", "PyObject_GetIter"),
......
......@@ -685,7 +685,7 @@ class OptimizeBuiltinCalls(Visitor.VisitorTransform):
return function_handler(node, arg_tuple, kwargs)
else:
return function_handler(node, arg_tuple)
elif isinstance(function, ExprNodes.AttributeNode):
elif function.is_attribute:
arg_list = arg_tuple.args
self_arg = function.obj
obj_type = self_arg.type
......
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