Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove __super attribute #167

Open
AlexanderWells-diamond opened this issue Jul 16, 2024 · 1 comment
Open

Remove __super attribute #167

AlexanderWells-diamond opened this issue Jul 16, 2024 · 1 comment

Comments

@AlexanderWells-diamond
Copy link
Collaborator

AlexanderWells-diamond commented Jul 16, 2024

pythonSoftIOC has code which adds __super as an attribute to classes, to avoid the old semantics in Python2 of having to specify super(A, self) to access a super method. In Python3 all we need is super(). It is likely we can remove this attribute setting and make use of the new, cleaner, syntax.

@Araneidae
Copy link
Collaborator

The original motivating implementation can be found in iocbuilder:support.py. If calling super() simply now works on all supported versions of Python then this code can simply be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants