Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:134': 0.05; 'doesnt': 0.16; 'subject:exception': 0.16; 'subject:expression': 0.16; 'working.': 0.19; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'lets': 0.24; 'please?': 0.24; 'environment': 0.24; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'yours,': 0.36; 'too': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'different': 0.65; 'pardon': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAIEtRFKGuA9G/2dsb2JhbABbhzq6MIJ6gTmDGgEFIw8BRREJAhoCBRYLAgIJAwIBAgFFEwgCiAKPB5tWiTOJE4Epji8WglKBNgOXfYYei1qDJg Date: Thu, 26 Sep 2013 14:53:39 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Handling 3 operands in an expression without raising an exception References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380200021 news.xs4all.nl 15910 [2001:888:2000:d::a6]:50816 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54819 Op 26-09-13 14:39, Νίκος schreef: > Yes, you are right, in my shell it fails too givign the same error > message as yours, while on the other had in the websste is working. > > Can you explain this please? > why doesnt it fail to both enviroments? Your site and your shell are two different environments. The state of the website environment lets your code succeed while the state of the shell environment, doesn't. -- Antoon Pardon