[Python-Dev] "and" and "or" operators in Py3.0
Michael Hudson
mwh at python.net
Tue Sep 20 10:02:41 CEST 2005
More information about the Python-Dev mailing list
Tue Sep 20 10:02:41 CEST 2005
- Previous message: [Python-Dev] "and" and "or" operators in Py3.0
- Next message: [Python-Dev] "and" and "or" operators in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum <guido at python.org> writes: > 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... You're joking, surely? > Also, this proposal needs to be considered together with the addition > of a proper conditional operator, like x?y:z. I think this discussion has been had before, you know. Cheers, mwh -- > Look I don't know. Thankyou everyone for arguing me round in > circles. No need for thanks, ma'am; that's what we're here for. -- LNR & Michael M Mason, cam.misc
- Previous message: [Python-Dev] "and" and "or" operators in Py3.0
- Next message: [Python-Dev] "and" and "or" operators in Py3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list