On 07/25/2011 10:16 AM, Archard Lias wrote:
On Jul 25, 2:03 pm, Ian Collins<ian-n...@hotmail.com> wrote:
On 07/26/11 12:00 AM, Archard Lias wrote:
Hi,
Still I dont get how I am supposed to understand the pipe and its task/
idea/influece on control flow, of:
return<statement> |<statement>
??
It's simply a bitwise OR.
--
Ian Collins
Yes, but how does it get determined, which one actually gets returned?
The return statement returns a single value from a function context.
The pipe operator takes 2 values and bitwise ORs* them together. That
result is then returned to the caller. The pipe character in this
instance is not the same as in a shell.
* This is not exactly true, but don't worry about it.
--
Bill
--
http://mail.python.org/mailman/listinfo/python-list