[Python-Dev] enum instances (original) (raw)
Larry Hastings larry at hastings.org
Tue Apr 30 05:45:52 CEST 2013
- Previous message: [Python-Dev] enum instances
- Next message: [Python-Dev] Regression fix releases coming
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/29/2013 07:42 PM, Nikolaus Rath wrote:
State is a class, it just inherits from enum. Thus:
type(State) == type(enum) == type(EnumMetaclass) issubclass(State, enum) == True
HTH, -Nikolaus
If you'd tried it, you'd have found that that isn't true. enum has a metaclass, EnumMetaclass. Thus type(enum) == EnumMetaClass.
That didn't help,
//arry/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130429/a32b36ff/attachment-0001.html>
- Previous message: [Python-Dev] enum instances
- Next message: [Python-Dev] Regression fix releases coming
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]