summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/module_array_constructor.py
blob: a53589d22ae76cbd6188273f040cf172172764a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"""
categories: Modules,array
description: Overflow checking is not implemented
cause: MicroPython implements implicit truncation in order to reduce code size and execution time
workaround: If CPython compatibility is needed then mask the value explicitly
"""

import array

a = array.array("b", [257])
print(a)