summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/uasyncio_micropython.py
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2020-06-10 10:46:38 +1000
committerDamien George <damien.p.george@gmail.com>2020-06-10 22:03:39 +1000
commit95cbe6b65ec84793f0f5ac2fd89c1375969a3bea (patch)
treed204f4f326596d904cdb30efab5ead7695f1a012 /tests/extmod/uasyncio_micropython.py
parent28370c04509a6255cd3d6b9424443a5b57bb7467 (diff)
downloadmicropython-95cbe6b65ec84793f0f5ac2fd89c1375969a3bea.tar.gz
micropython-95cbe6b65ec84793f0f5ac2fd89c1375969a3bea.zip
py/objtype: Use mp_obj_dict_copy() for creating obj.__dict__ attribute.
The resulting dict is now marked as read-only (is_fixed=1) to enforce the fact that changes to this dict will not be reflected in the class instance. This commit reduces code size by about 20 bytes, and should be more efficient because it creates a direct copy of the dict rather than reinserting all elements.
Diffstat (limited to 'tests/extmod/uasyncio_micropython.py')
0 files changed, 0 insertions, 0 deletions