Non-renamed "None" enum values

Bryce Beagle bryce.beagle at gmail.com
Thu Sep 24 06:24:02 BST 2020


Hi, it looks like *QActionGroup.ExclusionPolicy.None* and
*QOcspRevocationReason.None* did not receive the same treatment as other
"None" values in the library, i.e. they haven't been renamed to *None_*.

>>> from PyQt5.QtWidgets import QActionGroup
>>> QActionGroup.ExclusionPolicy.None_
>>> AttributeError: None_

but this works

>>> getattr(QActionGroup.ExclusionPolicy, "None")
>>> <ExclusionPolicy.None: 0>


Thanks,
Bryce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200923/5feb4ca5/attachment.htm>


More information about the PyQt mailing list