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~
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