Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.030 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'output': 0.05; '21,': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; '"hello': 0.16; '39,': 0.16; 'descriptor': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'lambda': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; 'file': 0.32; '(most': 0.33; 'received:google.com': 0.35; 'idle': 0.36; 'pm,': 0.38; 'recent': 0.39; 'bad': 0.39; 'environment.': 0.39; 'most': 0.60; 'subject:Hello': 0.72; 'captures': 0.84; 'graphical': 0.91; 'subject:World': 0.91; 'to:none': 0.92 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:cc :content-type; bh=zW1EAYbPcUvO+K+1WN9TK4Aaln9Ua7Xy+IL2K17N1EE=; b=nt/eXsW1ll0wvu7OMtVLOEsF97zbj4by4K/UTjuqdKwcJcygi9wTw5eVBF5M5/hV/M QcUp9fOso0JGbnwri1o4sBT06BIqQ7vWoBFySkoTkigO83IanJQtwDxYuzPhZzDzpooK H8IzXckWiMRD96i4yotfpyHaMD4BsisuPCoPRRChLPUs+hlY/7jQwZ/0pNarGbMrPjAM 6Wh14y6UUH7GG5P6G6DHDAQurwX799BeEC0QxDHNfC0xugUhXoBc/ZeflGh5jukFnjYg 0w0c+lNr3aY07OIK/JLmBYIhE2IPB+zzrC4Io26F/RarQ4fUNiK4NbqVBHTptgzadcby pCng== MIME-Version: 1.0 X-Received: by 10.50.61.238 with SMTP id t14mr10753986igr.34.1419139869250; Sat, 20 Dec 2014 21:31:09 -0800 (PST) In-Reply-To: References: <54957226$0$12975$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 21 Dec 2014 16:31:09 +1100 Subject: Re: Hello World From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1419139878 news.xs4all.nl 2853 [2001:888:2000:d::a6]:58817 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82709 On Sun, Dec 21, 2014 at 4:14 PM, CM wrote: > I ran it in IDLE with Python 2.7.8 and got: > > Traceback (most recent call last): > File "C:/Python27/helloworld.py", line 39, in > lambda _, __, ___, ____, _____, ______, _______, ________: _ > File "C:/Python27/helloworld.py", line 21, in > _))) + (_____ << ______) + (_ << ___) > OSError: [Errno 9] Bad file descriptor Yes, because - like most "Hello world" programs - it attempts to write to stdout. This interferes with IDLE and the way it captures output for the graphical environment. ChrisA