summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/subclass_native_call.py
diff options
context:
space:
mode:
authorIyassou Shimels <s.iyassou@gmail.com>2020-09-23 22:45:22 +0300
committerDamien George <damien@micropython.org>2020-09-24 11:04:58 +1000
commitca017841d65b5f9da5eb4e6e3ca66b009bc54fc4 (patch)
tree835c229fc89db716449a19b2f3537e077a37d97d /tests/basics/subclass_native_call.py
parentbada8c923195622aee80faf7acf003bc7852459d (diff)
downloadmicropython-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