[Python-ideas] Re: Ability to specify function for auto-test in Enum and pass the given value as an argument to _generate_next_value_

2019-10-28 Thread Steve Jorgensen
Steve Jorgensen wrote: > I repeatedly make proposals without examples. Sorry about that, and I'm going > to stop > doing that. > Upon trying to compose an example, I realize that what I'm asking for is not > actually > the best pattern for what I'd like to see, so when I have composed a better

[Python-ideas] Re: Ability to specify function for auto-test in Enum and pass the given value as an argument to _generate_next_value_

2019-10-27 Thread Steve Jorgensen
I repeatedly make proposals without examples. Sorry about that, and I'm going to stop doing that. Upon trying to compose an example, I realize that what I'm asking for is not actually the best pattern for what I'd like to see, so when I have composed a better pattern and sample implementation,

[Python-ideas] Re: Ability to specify function for auto-test in Enum and pass the given value as an argument to _generate_next_value_

2019-10-27 Thread Dominik Vilsmeier
Steve Jorgensen wrote: > After messing around with Enum for a while, there's one small thing that > I'd like to see improved. It seems limiting to me that the only way to trigger > _generate_next_value is to pass auto(). > What if, for a particular Enum, I would like to be able to use > () as a

[Python-ideas] Re: Ability to specify function for auto-test in Enum and pass the given value as an argument to _generate_next_value_

2019-10-26 Thread Anders Hovmöller
A short example would help. I read all that and I'm still not sure what you meant. > On 26 Oct 2019, at 13:13, Steve Jorgensen wrote: > > After messing around with `Enum` for a while, there's one small thing that > I'd like to see improved. It seems limiting to me that the only way to >