durusmail: qp: all or both
all or both
2006-02-24
2006-02-25
2006-02-26
2006-02-26
2006-02-27
all or both
David Binger
2006-02-26
On Feb 26, 2006, at 11:22 AM, mario ruggier wrote:


>
> That aside ;-) I guess you do not like the recommendation of adding
> a trailing underscore for clashing names? I.e. to get all_ and
> any_ ? I do not care too much for how that looks either, but it
> probably will confuse me less.

I guess you should use "from qp.lib.spec import both as all_",
or whatever.

I think that the number of arguments actually is 2 in every
case in our code, and these operators rarely appear anyway.
Use (None, str) instead of both(None, str).

>
> Other ideas for alternatives:
> all: allof, every, each, allornothing ;)
> any: anyof, one, atleastone, oneormore


reply