Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7a70a3ae
Commit
7a70a3ae
authored
Apr 08, 2014
by
Paul Sokolovsky
Browse files
bytes: Support buffer protocol.
parent
b9cf3d37
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objstr.c
View file @
7a70a3ae
...
...
@@ -1352,6 +1352,7 @@ const mp_obj_type_t mp_type_bytes = {
.
make_new
=
bytes_make_new
,
.
binary_op
=
str_binary_op
,
.
getiter
=
mp_obj_new_bytes_iterator
,
.
buffer_p
=
{
.
get_buffer
=
str_get_buffer
},
.
locals_dict
=
(
mp_obj_t
)
&
str_locals_dict
,
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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