Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.05; 'string.': 0.05; 'subject:Python': 0.05; 'python': 0.10; 'scripts': 0.10; 'gui': 0.15; '.py': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'subject:using': 0.16; 'usage,': 0.16; 'input': 0.20; 'saying': 0.20; 'settings.': 0.22; 'url:home': 0.22; 'environment': 0.26; 'normally': 0.27; 'window': 0.27; 'header:X-Complaints-To:1': 0.28; 'script': 0.28; 'run': 0.29; 'adjust': 0.33; 'data,': 0.33; 'open': 0.34; 'screen': 0.35; 'should': 0.35; 'to:addr:python-list': 0.35; 'version': 0.35; 'charset:us-ascii': 0.36; 'text': 0.36; 'next': 0.37; 'subject:: ': 0.37; "didn't": 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.39; 'anything': 0.39; 'header:Received:5': 0.39; 'evaluate': 0.63; 'hence': 0.66; 'attempts': 0.72; 'dennis': 0.91; 'graphical': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Executing Python Scripts on Mac using Python Launcher Date: Tue, 26 Jun 2012 15:51:41 -0400 Organization: > Bestiaria Support Staff < References: <8b352333-23b5-4cfb-843d-29ffe1ef0905@googlegroups.com> <347d6190-1bfc-4117-85ff-4abaa0966710@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-16-22.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340740315 news.xs4all.nl 6885 [2001:888:2000:d::a6]:46831 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24480 On Tue, 26 Jun 2012 10:19:45 -0700 (PDT), David Thomas declaimed the following in gmane.comp.python.general: > http://www.freeimagehosting.net/ilbqt That's an interesting configuration... "pythonw.exe" is a version of the Python interpreter designed to NOT OPEN a console -- so you've got a configuration saying "open a console to run a no-console interpreter". Normally pythonw.exe is used with scripts having .pyw extension; these are scripts that use tkinter, wxPython, or other GUI system to create a graphical environment and don't want a console (terminal) window cluttering the screen when they don't use text I/O. Console based programs (.py) should be run using python.exe; adjust your settings. > http://www.freeimagehosting.net/r5ars And this is to be expected... In Python 2.x, "input()" attempts to evaluate the input data, and you didn't supply anything -- hence EOF. For your usage, you want "raw_input()", which just grabs the next line of text and returns it as a string. As for how to run if you've opened a console (shell [bash]) window, the way to run a script is to type python .py -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/