Author ethan.furman
Recipients barry, eli.bendersky, ethan.furman, zero.piraeus
Date 2017-02-16.12:29:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

- only allow one base Enum class
  (fails with All and IntFlag)

- only allow base Enum classes that are compatible
 (so not an Enum and a Flag)
 (would require multiple base classes for the same behavior: DocEnum,
  DocFlag, etc.)

- only allow one mixin
  (before/after that one mixin the inheritance is linear)
  (same issue as above)

- only allow one non-Enum mixin, critical Enum is last one in the bases,
  previous Enums in bases are mixins
  (all sunder/dunder methods come from critical Enum, all normal methods
  and attributes are in normal base order)

- be smarter about determining/saving the correct __new__ and base data type

The last one needs to happen, and some form of the next-to-last one (hopefully allowing for more than one non-Enum mixin).
Date User Action Args
2017-02-16 12:29:35ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, zero.piraeus
2017-02-16 12:29:34ethan.furmansetmessageid: <>
2017-02-16 12:29:34ethan.furmanlinkissue29577 messages
2017-02-16 12:29:34ethan.furmancreate