[Python-ideas] PEP 355 (overloading boolean operations) and chained comparisons
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Oct 20 00:35:32 CEST 2011
Paul Moore wrote:
> An interesting point is that while the proposal is about overloading
> the logical operators, many of the arguments in favour are referring
> to chained comparisons.
Not really -- the matter of chained comparisons was
only brought up recently. There's much more behind
it than that.
> If the rich comparison mechanisms were somehow
> extended to cover chained comparisons, would that satisfy people's
> requirements without needing logical operator overloading?
It wouldn't satisfy any of the use cases I had in
mind when I wrote the PEP.
--
Greg
More information about the Python-ideas
mailing list