Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.071 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'string': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'cheers': 0.12; '&&': 0.16; 'mkdir': 0.16; 'year)': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'command': 0.22; '>>>': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; '>>>': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'shown': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'went': 0.31; 'that.': 0.31; 'this.': 0.32; 'languages': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'returning': 0.36; 'doing': 0.36; 'anything': 0.39; 'url:12': 0.39; 'read': 0.60; 'first': 0.61; 'times': 0.62; "you've": 0.63; 'kind': 0.63; 'here': 0.66; 'evaluate': 0.72; '"not': 0.84; 'subject:gets': 0.84; 'to:addr:support': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JmxOuEvOWx26dXWMrc3a7pOwLdWT2MzTb38zMUYORls=; b=ff50u5b05rJdiNyZzntC3+vMfcrToI62ov+BcY9QKLSsmyFv6wvqjX6vfIrnO25mLC y89Se2MLwNRRa2IP7JrvyqS6/fhvQrEQuS8UQsVyQV12fK7oAkHQNC1sQUIPxSs+pZKW UEJha+/Lov5eOwjWm85JL/a9Z5qhE/R9oBaRfl38f3MmczODtNNPHfUkoEI5Z7/Q6UYH /MEu/E7ETA3Y2Tu1tvhvpd2SwAuI/Zn2C8ruj8HmivrtdGM6w+mPzUmjL+YhTWHlWw3V xBGTYx7YzSoiympm2kX4K4OoNnjDW/ZyZWrSb+4yoiaIm9/617BNeS5hpzYYRtDICGhw Fkhw== MIME-Version: 1.0 X-Received: by 10.49.107.2 with SMTP id gy2mr1288422qeb.21.1371198933502; Fri, 14 Jun 2013 01:35:33 -0700 (PDT) In-Reply-To: References: <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> <51b926a3$0$29997$c3e8da3$5496439d@news.astraweb.com> <51ba6e92$0$29997$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 14 Jun 2013 09:35:33 +0100 Subject: Re: A certainl part of an if() structure never gets executed. From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: =?ISO-8859-7?B?zenq/Ovh7/Igyu/98eHy?= Content-Type: multipart/alternative; boundary=047d7bdc13ce5918a904df192117 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 57 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371198941 news.xs4all.nl 15996 [2001:888:2000:d::a6]:43360 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48087 --047d7bdc13ce5918a904df192117 Content-Type: text/plain; charset=ISO-8859-1 On 14 Jun 2013 09:09, "Nick the Gr33k" wrote: > >>> print(name and month and year) > ijkl > > Seems here is returning the last string out of 3 strings, but have no clue why Python doing this. > You have been told this above. All languages kind of do that. Ever seen this command on a shell? mkdir directory && cd directory The shell evaluated the first and if that was truthy it went on to evaluate the second and return that. Now. You've been told countless times that you won't get anything from "not in (a and b and c)", nor from "not in (a or b or c)". Also you have been shown this link and I feel you really need to read it. http://slash7.com/2006/12/22/vampires/ Cheers --047d7bdc13ce5918a904df192117 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On 14 Jun 2013 09:09, "Nick the Gr33k" <support@superhost.gr> wrote:
> >>> print(name and month and year)
> ijkl
>
> Seems here is returning the last string out of 3 strings, but have no = clue why Python doing this.
>

You have been told this above.

All languages kind of do that. Ever seen this command on a s= hell?

mkdir directory && cd directory

The shell evaluated the first and if that was truthy it went= on to evaluate the second and return that.

Now. You've been told countless times that you won't= get anything from "not in (a and b and c)", nor from "not i= n (a or b or c)".

Also you have been shown this link and I feel you really nee= d to read it.=A0

http://s= lash7.com/2006/12/22/vampires/

Cheers

--047d7bdc13ce5918a904df192117--