Re: [PATCH v3 02/12] dts: add the aenum dependency

2024-08-27 Thread Nicholas Pratte
On Wed, Aug 21, 2024 at 10:53 AM Juraj Linkeš wrote: > > Regular Python enumerations create only one instance for members with > the same value, such as: > class MyEnum(Enum): > foo = 1 > bar = 1 > > MyEnum.foo and MyEnum.bar are aliases that return the same instance. > > DTS needs to retu

Re: [PATCH v3 02/12] dts: add the aenum dependency

2024-08-27 Thread Dean Marx
On Wed, Aug 21, 2024 at 10:53 AM Juraj Linkeš wrote: > Regular Python enumerations create only one instance for members with > the same value, such as: > class MyEnum(Enum): > foo = 1 > bar = 1 > > MyEnum.foo and MyEnum.bar are aliases that return the same instance. > > DTS needs to retur

Re: [PATCH v3 02/12] dts: add the aenum dependency

2024-08-26 Thread Jeremy Spewock
On Wed, Aug 21, 2024 at 10:53 AM Juraj Linkeš wrote: > > Regular Python enumerations create only one instance for members with > the same value, such as: > class MyEnum(Enum): > foo = 1 > bar = 1 > > MyEnum.foo and MyEnum.bar are aliases that return the same instance. I didn't know this w

[PATCH v3 02/12] dts: add the aenum dependency

2024-08-21 Thread Juraj Linkeš
Regular Python enumerations create only one instance for members with the same value, such as: class MyEnum(Enum): foo = 1 bar = 1 MyEnum.foo and MyEnum.bar are aliases that return the same instance. DTS needs to return different instances in the above scenario so that we can map capabili