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
e6da0df6
Commit
e6da0df6
authored
Jan 20, 2014
by
Paul Sokolovsky
Browse files
mp_obj_get_type_str(): Handle MP_OBJ_QSTR.
parent
d991da72
Changes
1
Show whitespace changes
Inline
Side-by-side
py/obj.c
View file @
e6da0df6
...
...
@@ -28,6 +28,8 @@ mp_obj_t mp_obj_get_type(mp_obj_t o_in) {
const
char
*
mp_obj_get_type_str
(
mp_obj_t
o_in
)
{
if
(
MP_OBJ_IS_SMALL_INT
(
o_in
))
{
return
"int"
;
}
else
if
(
MP_OBJ_IS_QSTR
(
o_in
))
{
return
"str"
;
}
else
{
mp_obj_base_t
*
o
=
o_in
;
return
o
->
type
->
name
;
...
...
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