Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'skip:[ 20': 0.04; 'python3': 0.07; 'sys': 0.07; 'cc:addr:python-list': 0.11; 'cmd': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'interpreter,': 0.16; 'run:': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'command': 0.22; 'feb': 0.22; 'example': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'skip:p 30': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'skip:# 10': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'loss': 0.38; 'pm,': 0.38; 'explain': 0.39; 'does': 0.39; 'subject:" ': 0.39; 'back': 0.62; 'nagy': 0.84; 'to:none': 0.92; 'this!': 0.93; 'serious': 0.97 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:content-transfer-encoding; bh=eCoDUCJT+l2we1WPe4mN6IckQvYFqWNUsCqHPRMIdIE=; b=P+3QXtDH5R7PoF4QdhTk2TG/ihAwUY5Rx3aREd35bg62gOZpMUQOY2cbHargjMG5vV Ex2IMoRGpQd64e4zxEHXLPrH77wSL7vjkQYO7zfGEVAq6jLBKK/01dwQo8yRjSj9aGjU 2eFuBjxC6ADQoH40Htm4exk6I/l7BiBkJnf3Z+Xwm3rHUQJxsEXRcXwsy79dZbC4xXVc t7nFPN1yghRJ0wYLAwIWkMquwr+cCxnlqWYcmym+qK1Igs2N5MPM9jiZelB7N/0uA0gf Dqm57VQH6A5NsPzhgg3i0m5OHQ166TTHymKaNVv0N18xGXymNMs6B3CuI/xmrtkohR1E 7odw== MIME-Version: 1.0 X-Received: by 10.68.108.194 with SMTP id hm2mr15028207pbb.22.1392464164313; Sat, 15 Feb 2014 03:36:04 -0800 (PST) In-Reply-To: <52FF4E9F.7070209@shopzeus.com> References: <52FCB228.5040301@shopzeus.com> <52FCB389.3070402@timgolden.me.uk> <52FF4E9F.7070209@shopzeus.com> Date: Sat, 15 Feb 2014 22:36:04 +1100 Subject: Re: Install python 2 and 3 in the "wrong" order From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392464172 news.xs4all.nl 2958 [2001:888:2000:d::a6]:38759 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66419 On Sat, Feb 15, 2014 at 10:25 PM, Nagy L=C3=A1szl=C3=B3 Zsolt wrote: >> From a cmd window: >> >> ftype python.file=3D"C:\Windows\py.exe" "%1" %* >> >> ftype python.noconfile=3D"C:\Windows\pyw.exe" "%1" %* > > There is a serious problem with this! Example code test.py: > > #!/usr/bin/env python3 > import sys > print(sys.argv) > > Test run: > > C:\Temp>test.py 1 2 3 > ['C:\\Temp\\test.py'] > Just because I have a distrust of Windows's command interpreter, what happens when you type: ftype python.file ? Does it echo back what you thought it had, or has %* been eaten? If the %* is missing, that would explain the loss of arguments. ChrisA