Pipe in the "return" statement
archardlias at googlemail.com
Mon Jul 25 17:06:42 CEST 2011
On Jul 25, 4:39 pm, John Gordon <gor... at panix.com> wrote:
> In <1c175da2-79f4-40ed-803f-217dc935d... at m8g2000yqo.googlegroups.com> Archard Lias <archardl... at googlemail.com> writes:
> > > > return <statement> | <statement>
> > > It's simply a bitwise OR.
> > Yes, but how does it get determined, which one actually gets returned?
> Neither value is returned on its own; the bitwise OR of both values is
> computed and that value is returned.
> It seems that you don't understand what the term "bitwise or" means.
> Perhaps a Google search might help.
> John Gordon A is for Amy, who fell down the stairs
> gor... at panix.com B is for Basil, assaulted by bears
> -- Edward Gorey, "The Gashlycrumb Tinies"
It figures, that you are right :P.
More information about the Python-list