This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients josh.r, matrixise, ronaldoussoren, serhiy.storchaka, steve.dower
Date 2019-03-25.10:13:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
A discussion on the use of enum and deprecation warnings might be useful, although there is a significant risk on bike shedding.

I agree that formally deprecating READONLY can lead to uglier code in extension that use the value and need to support anything beyond the bleeding edge (although the complication isn't that bad: just add a conditional definition of PY_READONLY).  I'm personally not to worried about this, and generally prefer being more aggressive with adding deprecation warnings.


W.r.t. C++ and enums: that should be ok, especially when using anonymous enums that are basically only used to name constants.  

Bitmask with enums can be more problematic when using named enums that are also used for variable definitions because C++ compilers are allowed to use the minimal variable size that can represent all defined values (that's also a problem for the ABI), but it is also possible to use scoped enums to specify the size of values.
History
Date User Action Args
2019-03-25 10:13:46ronaldoussorensetrecipients: + ronaldoussoren, serhiy.storchaka, steve.dower, matrixise, josh.r
2019-03-25 10:13:46ronaldoussorensetmessageid: <[email protected]>
2019-03-25 10:13:46ronaldoussorenlinkissue36347 messages
2019-03-25 10:13:46ronaldoussorencreate