[Python-Dev] "and" and "or" operators in Py3.0

LD 'Gus' Landis ldlandis at gmail.com
Tue Sep 20 17:45:00 CEST 2005


Would this change break x < y < z ? Hope not.
+1 on x?y:z
-1 on && || replacing and/or
 unless and/or kept with current semantics and
 && || introduced Raymond's boolean idea, but then
-1 too many unrelated but different spellings 
On 9/19/05, Guido van Rossum <guido at python.org> wrote:
> On 9/19/05, Raymond Hettinger <raymond.hettinger at verizon.net> wrote:
> > I propose that in Py3.0, the "and" and "or" operators be simplified to
> > always return a Boolean value instead of returning the last evaluated
> > argument.
>> While you're at it, maybe we should switch to && and || as well?
> That's another thing I always mistype when switching between
> languages...
>> Also, this proposal needs to be considered together with the addition
> of a proper conditional operator, like x?y:z.
>> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/ldlandis%40gmail.com
>
-- 
LD Landis - N0YRQ - from the St Paul side of Minneapolis


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /