commit | 7a70a3ae9a1052d7669a9c90ca23e820fd4f5d5e | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Tue Apr 08 17:30:47 2014 +0300 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Tue Apr 08 19:08:34 2014 +0300 |
tree | a475852ae029e45cc73508388b8b3354f18c3b3b | |
parent | b9cf3d3730f8350d9756f6cfb32b1240dccf0981 [diff] [blame] |
bytes: Support buffer protocol.
diff --git a/py/objstr.c b/py/objstr.c index d2d672b..5e9f0c7 100644 --- a/py/objstr.c +++ b/py/objstr.c
@@ -1352,6 +1352,7 @@ .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, };