diff options
author | Iyassou Shimels <s.iyassou@gmail.com> | 2020-09-23 22:45:22 +0300 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-09-24 11:04:58 +1000 |
commit | ca017841d65b5f9da5eb4e6e3ca66b009bc54fc4 (patch) | |
tree | 835c229fc89db716449a19b2f3537e077a37d97d /tests/basics/subclass_native_call.py | |
parent | bada8c923195622aee80faf7acf003bc7852459d (diff) | |
download | micropython-ca017841d65b5f9da5eb4e6e3ca66b009bc54fc4.tar.gz micropython-ca017841d65b5f9da5eb4e6e3ca66b009bc54fc4.zip |
py/objstr: Make bytes(bytes_obj) return bytes_obj.
Calling the bytes constructor on a bytes object returns the original bytes
object. This saves allocating a new instance, and matches CPython.
Signed-off-by: Iyassou Shimels <s.iyassou@gmail.com>
Diffstat (limited to 'tests/basics/subclass_native_call.py')
0 files changed, 0 insertions, 0 deletions