Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #2715

Re: TypeError: iterable argument required

From Νικόλαος Κούρας <nikos.kouras@gmail.com>
Newsgroups comp.lang.python
Subject Re: TypeError: iterable argument required
Date 2011-04-06 12:21 -0700
Organization http://groups.google.com
Message-ID <0ad45930-e3aa-4ad9-a085-49a2d7ddaa1f@s3g2000vbf.googlegroups.com> (permalink)
References <c5d42146-03fd-431d-982e-9d221faf4c91@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


On 6 Απρ, 19:58, "eryksun ()" <eryk...@gmail.com> wrote:

> The expression ``x or y`` first evaluates *x*; if *x* is
> true, its value is returned; otherwise, *y* is evaluated
> and the resulting value is returned.

I doesnt matter if *y* is True or False before its value is returned?
*y*'s value returned no matter if its true or false?

If we were to describe it in english words how would we describe the
expression `x or y`?
x = True or y = True?

>Since 'mail is None' and None evaluates to False

What does the expression "None evaluates to false"  mean in simpler
words?
Every expression is evaluated at the end as True or False?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: TypeError: iterable argument required "eryksun ()" <eryksun@gmail.com> - 2011-04-06 09:58 -0700
  Re: TypeError: iterable argument required Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2011-04-06 12:21 -0700
    Re: TypeError: iterable argument required MRAB <python@mrabarnett.plus.com> - 2011-04-06 20:44 +0100

csiph-web