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 ethan.furman
Recipients Dutcho, barry, eli.bendersky, ethan.furman, nitishch
Date 2018-04-05.16:32:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522945924.92.0.682650639539.issue33219@psf.upfronthosting.co.za>
In-reply-to
Content
issue33217 is tracking member-containment checks; modifying this one to track class-containment checks.

Given

  class Color(Enum):
     RED = 1

  class Fruit(Enum):
     APPLE = 1

then

  --> Fruit.APPLE in Color
  False
  --> Fruit.APPLE in Fruit
  True
  --> 1 in Fruit
  TypeError

The last is currently returning False instead of raising a TypeError.
History
Date User Action Args
2018-04-05 16:32:04ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, Dutcho, nitishch
2018-04-05 16:32:04ethan.furmansetmessageid: <1522945924.92.0.682650639539.issue33219@psf.upfronthosting.co.za>
2018-04-05 16:32:04ethan.furmanlinkissue33219 messages
2018-04-05 16:32:04ethan.furmancreate