Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:text': 0.05; 'subject:Python': 0.06; 'installed.': 0.07; 'responding': 0.07; 'subject:file': 0.07; 'subject:script': 0.09; 'python': 0.11; 'windows': 0.15; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'script,': 0.16; 'tjg': 0.16; 'wrote:': 0.18; 'written': 0.21; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'versions': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'unix': 0.29; 'especially': 0.30; 'lines': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'sense': 0.34; 'but': 0.35; 'subject:data': 0.36; "didn't": 0.36; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'such': 0.63; 'introduction': 0.68; 'funny': 0.74; 'from:addr:mail': 0.83 Date: Thu, 11 Dec 2014 06:07:47 +0000 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Python script isn't producing text in data file References: <6da205c3-f6b9-411a-b880-0b0386ea09ac@googlegroups.com> <2e1114f0-2f7e-4397-9160-941bdfba01af@googlegroups.com> <6ed2a699-51ee-4e7b-9ae0-d2082fa4dc08@googlegroups.com> <54892910$0$2817$c3e8da3$76491128@news.astraweb.com> In-Reply-To: <54892910$0$2817$c3e8da3$76491128@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418278131 news.xs4all.nl 2894 [2001:888:2000:d::a6]:42154 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3534 X-Received-Body-CRC: 2362355673 Xref: csiph.com comp.lang.python:82345 On 11/12/2014 05:18, Steven D'Aprano wrote: > (I think it is funny that the script has a Unix "hash-bang" line at > the top of the script, but is written such that it will only work on > Windows.) I didn't look at the code, but responding only to your comment... Since the introduction of the PEP397 py.exe launcher in Python 3.4, it's made sense to put hash-bang lines into Python files on Windows especially if you have multiple versions installed. TJG