DiamondLightSource / pythonSoftIOC

Embed an EPICS IOC in a Python process
Apache License 2.0
34 stars 9 forks source link

Remove __super attribute #167

Open AlexanderWells-diamond opened 3 months ago

AlexanderWells-diamond commented 3 months ago

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 commented 3 months ago

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.