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 serhiy.storchaka
Recipients ezio.melotti, gvanrossum, mrabarnett, pitrou, serhiy.storchaka
Date 2014-09-18.16:14:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411056889.22.0.204567318009.issue22434@psf.upfronthosting.co.za>
In-reply-to
Content
Answering Guido's question about the Enum class. No, it is not appropriate here. It has too cumbersome repr (<OPCODES.IN_IGNORE: 16> instead of IN_IGNORE). Enum function syntax can't by used because it enumerates values from 1. We need three Enum subclasses for three groups of constants, and fourth class for MAXREPEAT, and fifth base abstract class. To fit the Enum class to our need we need more boilerplate code than to implement minimal needed functionality from scratch. And I'm not sure that this will not create circular dependency.
History
Date User Action Args
2014-09-18 16:14:49serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, pitrou, ezio.melotti, mrabarnett
2014-09-18 16:14:49serhiy.storchakasetmessageid: <1411056889.22.0.204567318009.issue22434@psf.upfronthosting.co.za>
2014-09-18 16:14:49serhiy.storchakalinkissue22434 messages
2014-09-18 16:14:48serhiy.storchakacreate