Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
bab5cfb3
Commit
bab5cfb3
authored
Jan 10, 2014
by
Paul Sokolovsky
Browse files
Unsupported operand types for binary operator: dump both args' types.
parent
d6f27fe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
bab5cfb3
...
...
@@ -536,7 +536,9 @@ mp_obj_t rt_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
}
// TODO specify in error message what the operator is
nlr_jump
(
mp_obj_new_exception_msg_varg
(
MP_QSTR_TypeError
,
"unsupported operand type for binary operator: '%s'"
,
mp_obj_get_type_str
(
lhs
)));
nlr_jump
(
mp_obj_new_exception_msg_varg
(
MP_QSTR_TypeError
,
"unsupported operand types for binary operator: '%s', '%s'"
,
mp_obj_get_type_str
(
lhs
),
mp_obj_get_type_str
(
rhs
)));
}
mp_obj_t
rt_compare_op
(
int
op
,
mp_obj_t
lhs
,
mp_obj_t
rhs
)
{
...
...
Write
Preview
Supports
Markdown
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