On 26/02/2021 04:30, Ethan Furman wrote:
>> Do you have a specific problem you're trying to solve?
>
> No, I just came across the concept in my browsing and
> was wondering if there was a name for it.
If we stick with boolean values (like radio buttons
and checkboxes) then I think the name is
Op 24/02/21 om 17:12 schreef Ethan Furman:
I'm looking for a name for a group of options that, when one is
specified, all of them must be specified.
It seems you are looking at an equivalence.
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Feb 26, 2021 at 3:32 PM Ethan Furman wrote:
>
> On 2/25/21 7:06 PM, Joe Pfeiffer wrote:
> > Ethan Furman writes:
>
> >> Like I said, at this moment I don't have a good example, only an awareness
> >> that such a thing could exist and I don't know the name for it (if it has
> >> one).
> >
On 2/25/21 7:06 PM, Joe Pfeiffer wrote:
Ethan Furman writes:
Like I said, at this moment I don't have a good example, only an awareness that
such a thing could exist and I don't know the name for it (if it has one).
So far I have seen that there are even fewer good use-cases than I might hav
Ethan Furman writes:
> On 2/24/21 1:54 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
>> Ethan Furman wrote:
>
>>> I didn't say it was a good example. ;-) Hopefully it gets the idea across.
>> Ditto. ;-)
>> IMO, the whole idea of "my program has two options, and the user has
>> to
>> specify bo
Ethan Furman writes:
> I'm looking for a name for a group of options that, when one is specified,
> all of them must be specified.
I don't fully understand the question (yes, I read the part I snipped).
Why is this not just a single option? Or is it hierarchical or
something so option 1 impli
just a category that could be doable.
-Original Message-
From: Python-list On
Behalf Of Chris Angelico
Sent: Thursday, February 25, 2021 1:14 AM
To: Python
Subject: Re: name for a mutually inclusive relationship
On Thu, Feb 25, 2021 at 4:06 PM Avi Gross via Python-list
wrote:
>
> Is
On Thu, Feb 25, 2021 at 4:06 PM Avi Gross via Python-list
wrote:
>
> Is there a more general idea here? How about asking for a control that
> internally manages N items and requires exactly M of them before the entry
> is accepted when you click? The case being discussed sort of wants N out of
> N
On 2021-02-24 6:12 PM, Ethan Furman wrote:
I'm looking for a name for a group of options that, when one is
specified, all of them must be specified.
For contrast,
- radio buttons: a group of options where only one can be specified
(mutually exclusive)
- check boxes: a group of options that
On
Behalf Of Ethan Furman
Sent: Wednesday, February 24, 2021 5:14 PM
To: python-list@python.org
Subject: Re: name for a mutually inclusive relationship
On 2/24/21 1:54 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
> Ethan Furman wrote:
>> I didn't say it was a good example. ;-) Hop
On 2021-02-24 08:12, Ethan Furman wrote:
> I'm looking for a name for a group of options that, when one is
> specified, all of them must be specified.
[snip]
> - ???: a group of options where, if one is specified, all must be
> specified (mutually inclusive)
[snip]
> Is there a name out there alrea
On 2/24/21 1:54 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
Ethan Furman wrote:
I didn't say it was a good example. ;-) Hopefully it gets the idea across.
Ditto. ;-)
IMO, the whole idea of "my program has two options, and the user has to
specify both or neither," isn't a question of wh
On 2021-02-24 at 13:31:42 -0800,
Ethan Furman wrote:
> On 2/24/21 1:23 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
>
> > > entangled (none or all):
> > >
> > > image size override: height width
> >
> > IMO, that's *one* option (-s 640x480 or -s 640,480), not two. In
> > argparse/optp
On 2/24/21 1:23 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
entangled (none or all):
image size override: height width
IMO, that's *one* option (-s 640x480 or -s 640,480), not two. In
argparse/optparse terms, a required argument with a custom type.
(OTOH, in a GUI, it'd be two sepa
On 2021-02-24 at 13:05:05 -0800,
Ethan Furman wrote:
> entangled (none or all):
>
>image size override: height width
IMO, that's *one* option (-s 640x480 or -s 640,480), not two. In
argparse/optparse terms, a required argument with a custom type.
(OTOH, in a GUI, it'd be two separate m
On 2/24/21 12:40 PM, Alan Gauld via Python-list wrote:
On 24/02/2021 16:12, Ethan Furman wrote:
I'm looking for a name for a group of options that, when one is specified, all
of them must be specified.
For contrast,
- radio buttons: a group of options where only one can be specified (mutually
On 2/24/21 8:28 AM, 2qdxy4rzwzuui...@potatochowder.com wrote:
Entangled?
Hey, I like that one! ;-)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 24/02/2021 16:12, Ethan Furman wrote:
> I'm looking for a name for a group of options that, when one is specified,
> all of them must be specified.
>
> For contrast,
>
> - radio buttons: a group of options where only one can be specified (mutually
> exclusive)
> - check boxes: a group of o
Hi !
In case you didn't though about that, in argparse,
MutuallyExclusiveGroup is used for the mutually exclusive logic. You may
use the same nomenclature, which happens to be IMHO much clearer than
the one you came up with.
In GUIs, i guess that such an option would be implemented by a chec
On 2021-02-24 at 08:12:58 -0800,
Ethan Furman wrote:
> I'm looking for a name for a group of options that, when one is specified,
> all of them must be specified.
>
> For contrast,
>
> - radio buttons: a group of options where only one can be specified (mutually
> exclusive)
> - check boxes:
I'm looking for a name for a group of options that, when one is specified, all
of them must be specified.
For contrast,
- radio buttons: a group of options where only one can be specified (mutually
exclusive)
- check boxes: a group of options that are independent of each other (any
number o
21 matches
Mail list logo