[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Non-renamed "None" enum values
From:       Bryce Beagle <bryce.beagle () gmail ! com>
Date:       2020-09-24 5:24:02
Message-ID: CAKKt4mb7p3+_7yZacCwzHEbyk5htrX0rX2i+PmHOvf5kEg25Fg () mail ! gmail ! com
[Download RAW message or body]

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

[Attachment #3 (text/html)]

<div dir="ltr">Hi, it looks like <b>QActionGroup.ExclusionPolicy.None</b> and  \
<b>QOcspRevocationReason.None</b> did not receive the same treatment as other \
&quot;None&quot; values in the library, i.e. they haven&#39;t been renamed to \
<b>None_</b>.  <br><div><br></div><div>&gt;&gt;&gt;  from PyQt5.QtWidgets import \
QActionGroup</div><div>&gt;&gt;&gt; \
QActionGroup.ExclusionPolicy.None_<br>&gt;&gt;&gt; AttributeError: \
None_<br><br></div><div>but this works<br><br>&gt;&gt;&gt; \
getattr(QActionGroup.ExclusionPolicy, &quot;None&quot;)<br>&gt;&gt;&gt; \
&lt;ExclusionPolicy.None: \
0&gt;<br></div><div><br></div><div><br></div><div>Thanks,</div><div>Bryce</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic