Re: [Python-Dev] PEP 557: Data Classes

2017年9月11日 15:42:04 -0700

On Sep 11, 2017, at 15:16, Ethan Furman <[email protected]> wrote:
>> 
>> enum Compare(enum.Enum):
>> none = 1
>> unordered = 2
>> ordered = 3
> 
> I like the enum idea (suprise! ;) but I would suggest "equal" or "equivalent" 
> instead of "unordered"; better to say what they are rather than what they are 
> not.
The language reference calls them "equality" comparisons, so maybe that’s the 
term we should use.
-Barry

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to