This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
24c513cbc3
micropython
/
tests
/
extmod
/
uctypes_sizeof.py.exp
8 wiersze
30 B
Plaintext
Czysty
Zwykły widok
Historia
Unescape
Escape
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 00:43:53 +00:00
2
2
4
TypeError
extmod: Add test which demonstrates LITTLE_ENDIAN packing failure
2015-12-09 16:47:31 +00:00
6
extmod: Fix uctypes size calculation for bitfields
2016-01-03 18:38:36 +00:00
1
tests/extmod: Add some uctypes tests to improve coverage of that module.
2017-12-19 05:48:41 +00:00
TypeError