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

Raymond Hettinger raymond.hettinger at verizon.net
Tue Sep 20 12:40:35 CEST 2005


> > 2) When going back and forth between languages, it is easy to forget
> > that only Python returns something other than a boolean.
> 
> As others point out, this isn't true.

In C, C++, C#, Java, and JavaScript, what do you get when you print the
result of 3 || 10?



Raymond



More information about the Python-Dev mailing list