- Notifications
You must be signed in to change notification settings - Fork749
Closed
Milestone
Description
From#1179
In Python, it should be possible to refer to enum members:MyEnum.Member
, and to create arbitrary enum values fromint
explicitly like this:MyEnum(42)
. But by default a number and a value of some enum should not be freely convertible to each other. E.g. this should fail:
voidMethod(MyEnumvalue)=> ...;
Python:
Method(42);# <- this should be a TypeError
We can add a generic enum codec, that could be enabled on demand to restore old behavior.
Metadata
Metadata
Assignees
Labels
No labels