[Python-ideas] proper naming of Enum members

Michael Selik michael.selik at gmail.com
Mon Jul 18 18:53:18 EDT 2016

On Mon, Jul 18, 2016 at 10:17 AM Ethan Furman <ethan at stoneleaf.us> wrote:

> There are currently a few locations in the stdlib, such as http and
> socket, that are now using
> Enums to replace constants; those names are all upper-case -- those aren't
> the names I am
> speaking of.
> The names I am speaking of are those in brand-new enumerations where we
> have full control.

Even if there's a better design as judged in isolation, it still might be
best to stay consistent with socket module. To paraphrase "Jakob's Law":
programmers spend most of their time using *other* libraries (such as
socket, logging, etc.). So it's generally a good idea not to invent new
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160718/9d218e04/attachment.html>

More information about the Python-ideas mailing list