You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CircuitPython lacks support for object.__set_name__, a dunder method added in 3.6 which allows descriptors to know the name they were assigned to in their owning class. This makes descriptor implementations have needless redundancy:
There is work going on upstream in MicroPython to add __set_name__. When this is merged into MicroPython, we'll merge it into CircuitPython in one of our periodic merges from upstream. micropython#15501 micropython#15503
CircuitPython lacks support for
object.__set_name__
, a dunder method added in 3.6 which allows descriptors to know the name they were assigned to in their owning class. This makes descriptor implementations have needless redundancy:My use-case for this is a utility descriptor which wraps a property of its owning class and invokes an updater method when it's set:
The text was updated successfully, but these errors were encountered: