← index #342Issue #467
Off-topic · high · value 1.535
QUERY · ISSUE

[Feature Request] types.SimpleNamespace

openby kkimdevopened 2019-05-28updated 2019-05-28

Currently types.SimpleNamespace implementation is missing

  • https://github.com/micropython/micropython-lib/blob/f20d89c6aad9443a696561ca2a01f7ef0c8fb302/types/types.py#L16
  • https://docs.python.org/3/library/types.html#types.SimpleNamespace
CANDIDATE · ISSUE

Missing standard types

closedby lurchopened 2014-04-11updated 2014-05-24

Looking at https://docs.python.org/3/library/stdtypes.html it seems that micropython is missing the frozenset, memoryview and NotImplemented types (but I dunno how definitive that list is).

Got no idea if it matters or not, but in CPython3.3 type(range) returns <class 'type'> whereas in uPy it returns <class 'function'>.

(And it seems the numbers module doesn't exist yet, but I guess that's a library issue rather than a core issue?)

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied