-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
QgsMessageLevel::None cannot be used in Python #42996
Comments
nyalldawson
added a commit
to nyalldawson/QGIS
that referenced
this issue
May 18, 2021
And also rename Qgis::MessageLevel::None to NoLevel. None is a reserved keyword in Python, so this value was previously inaccessible to PyQGIS scripts Fixes qgis#42996
nyalldawson
added a commit
to nyalldawson/QGIS
that referenced
this issue
May 19, 2021
And also rename Qgis::MessageLevel::None to NoLevel. None is a reserved keyword in Python, so this value was previously inaccessible to PyQGIS scripts Fixes qgis#42996
nyalldawson
added a commit
to nyalldawson/QGIS
that referenced
this issue
May 28, 2021
And also rename Qgis::MessageLevel::None to NoLevel. None is a reserved keyword in Python, so this value was previously inaccessible to PyQGIS scripts Fixes qgis#42996
nyalldawson
added a commit
to nyalldawson/QGIS
that referenced
this issue
May 29, 2021
keyword in Python, so this value was previously inaccessible to PyQGIS scripts Also change all references to Qgis::MessageLevel values to their fully qualified names, to ease a future transition to an enum class (when sip bugs are fixed) Fixes qgis#42996
nyalldawson
added a commit
that referenced
this issue
May 30, 2021
keyword in Python, so this value was previously inaccessible to PyQGIS scripts Also change all references to Qgis::MessageLevel values to their fully qualified names, to ease a future transition to an enum class (when sip bugs are fixed) Fixes #42996
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docs mention a
QgsMessageLevel::None
(C++) orQgsMessageLevel.None
(Python) value that cannot be accessed in Python.If Python devs attempt to use the
Qgis.None
, they'll get this error:The corresponding SIP file also mentions the value
None
.To enable this reserved name in Python, could we think about options like
Qgis._None
/Qgis.none
or something like that?The text was updated successfully, but these errors were encountered: