aboutsummaryrefslogtreecommitdiff
path: root/py/objstr.h
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2019-05-20 10:35:31 +0200
committerDamien George <damien.p.george@gmail.com>2019-05-21 14:24:04 +1000
commitfb54736bdb5c01a4051a77c8b048502c6a41e044 (patch)
tree38520561d642d8ffc29d93759a437aa6ba67be3e /py/objstr.h
parentc769da1aaa28fb0eba9fabfba84c39cbc09e23da (diff)
py/objarray: Add decode method to bytearray.
Reuse the implementation for bytes since it works the same way regardless of the underlying type. This method gets added for CPython compatibility of bytearray, but to keep the code simple and small array.array now also has a working decode method, which is non-standard but doesn't hurt.
Diffstat (limited to 'py/objstr.h')
-rw-r--r--py/objstr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/objstr.h b/py/objstr.h
index a10d0df8b..15ed7a225 100644
--- a/py/objstr.h
+++ b/py/objstr.h
@@ -102,5 +102,6 @@ MP_DECLARE_CONST_FUN_OBJ_1(str_isalpha_obj);
MP_DECLARE_CONST_FUN_OBJ_1(str_isdigit_obj);
MP_DECLARE_CONST_FUN_OBJ_1(str_isupper_obj);
MP_DECLARE_CONST_FUN_OBJ_1(str_islower_obj);
+MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(bytes_decode_obj);
#endif // MICROPY_INCLUDED_PY_OBJSTR_H