micropython/extmod
Paul Sokolovsky 2559e13957 moductypes: Make sure we can apply .sizeof() to all aggregate types.
Before, sizeof() could be applied to a structure field only if that field
was itself a structure. Now it can be applied to PTR and ARRAY fields too.
It's not possible to apply it to scalar fields though, because as soon as
scalar field (int or float) is dereferenced, its value is converted into
Python int/float value, and all original type info is lost. Moreover, we
allow sizeof of type definitions too, and there int is used to represent
(scalar) types. So, we have ambiguity what int may be - either dereferenced
scalar structure field, or encoded scalar type. So, rather throw an error
if user tries to apply sizeof() to int.
2014-10-30 03:50:23 +02:00
..
re1.5 modure: Update to re1.5 v0.6.1, fixed and extended character class support. 2014-10-17 22:25:18 +03:00
uzlib moduzlib: Import uzlib v1.1. 2014-10-13 00:09:43 +03:00
moductypes.c moductypes: Make sure we can apply .sizeof() to all aggregate types. 2014-10-30 03:50:23 +02:00
moduheapq.c extmod: Add uheapq module. 2014-10-22 23:20:15 +01:00
modujson.c extmod, ujson: Add test and comment for loads. 2014-09-21 23:43:03 +01:00
modure.c modure: Update to re1.5 v0.6, support for char sets/classes ([a-c]). 2014-10-15 04:44:07 +03:00
moduzlib.c moduzlib: Fix fn prototype and some code style; use it in stmhal port. 2014-10-12 23:35:38 +01:00