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 John Hagen, barry, eli.bendersky, ethan.furman
Date 2016-07-09.17:11:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468084317.77.0.951331055676.issue26988@psf.upfronthosting.co.za>
In-reply-to
Content
The problem with testing the type of object a name refers to outside the class is it then becomes more difficult to make that an Enum member:

class AddressType(Enum):
    pobox
    mailbox  # third-party po box
    property

Having to assign a value to `property` pretty much negates the value of the magic.

I'll go with `_ignore_`.
History
Date User Action Args
2016-07-09 17:11:57ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, John Hagen
2016-07-09 17:11:57ethan.furmansetmessageid: <1468084317.77.0.951331055676.issue26988@psf.upfronthosting.co.za>
2016-07-09 17:11:57ethan.furmanlinkissue26988 messages
2016-07-09 17:11:57ethan.furmancreate