A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-July/145727.html below:

[Python-Dev] PEP487: Simpler customization of class creation

[Python-Dev] PEP487: Simpler customization of class creation [Python-Dev] PEP487: Simpler customization of class creationEthan Furman ethan at stoneleaf.us
Fri Jul 29 13:23:50 EDT 2016
On 07/29/2016 08:01 AM, Martin Teichmann wrote:

> ... Also, while researching other
> people's code when I wrote PEP 487, I couldn't find any such code
> elsewhere, yet I found a lot of code where people took the wildest
> measure to prevent a metaclass in doing its job on the first class it
> is used for. One example is enum.EnumMeta, which contains code not to
> make enum.Enum an enum ...

Actually, enum.Enum is an enum.  The guards are there because part of creating a new
Enum class is searching for the previous Enum classes, and of course the very first
time through there is no previous Enum class.

My apologies if I have misunderstood what you were trying to say.

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4