support dunder variables #122
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#122
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
(From M-Labs/nac3-spec#26)
Currently, dunder variables and methods (e.g.
self.__variable
) cannot be used in kernels as the compiler cannot find the attributes. I am not really sure how complex it would be to support that, but it could be a nice-to-have. Right now we sometimes need to make long variable/method names for base classes to make sure there is no name aliasing in sub-classes.https://docs.python.org/3/tutorial/classes.html#tut-private
Probably not too hard I guess.
sb10q referenced this issue2022-04-27 10:54:22 +08:00