Hello good morning.
I've decided to open a discussion of a topic that I consider should be part of
dataclasses, but not sure how suggestions work and many threads recommend to
check python dev first so-.
Anyways, at the moment that I write this message in python3.10.1, It happens
that when mak
On 12/13/2021 1:43 AM, Vioshim wrote:
Hello good morning.
I've decided to open a discussion of a topic that I consider should be part of
dataclasses, but not sure how suggestions work and many threads recommend to
check python dev first so-.
Anyways, at the moment that I write this message in
I'm also confused about what you are trying to achieve here. Note that:
assert Entries.ENTRY1.value.a == 1
should work.
But my main thought is that dataclasses are really just a way to
auto-generate classes without having to write a bunch of boilerplate. So
you example above is equivalent to:
c
On Mon, Dec 13, 2021 at 06:43:27AM -, Vioshim wrote:
> Anyways, at the moment that I write this message in python3.10.1, It
> happens that when making a class with the dataclasses module, this
> class can't actually be used in Multiple inheritance for Enum
> purposes, this is mostly to avo
On 12/12/21 10:43 PM, Vioshim wrote:
> Anyways, at the moment that I write this message in python3.10.1, It happens that when making a class with the
dataclasses module, this class can't actually be used in Multiple inheritance for Enum purposes, this is mostly to avoid
code repetition by havin
On 12/13/21 3:34 PM, Steven D'Aprano wrote:
> I think this may be what you are looking for:
[...]
Beat me to it. :-)
--
~Ethan~
___
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://