Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Appending an asterisk to the end of each line Date: Wed, 6 Jul 2016 09:38:47 +1000 Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de vCzPvg+ML3DmyQENpNg+Xwh6vI09PWqurljcuZGsAJIA== 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; 'run,': 0.07; 'cc:addr :python-list': 0.09; 'icon': 0.09; 'typed': 0.09; 'python': 0.10; 'python.': 0.11; 'exception': 0.13; 'output': 0.13; 'wed,': 0.15; "hasn't": 0.15; '.py': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'run"': 0.16; 'trivially': 0.16; 'wrote:': 0.16; 'debugging': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'extension': 0.20; 'am,': 0.23; 'help.': 0.23; 'tried': 0.24; '(this': 0.24; 'header:In-Reply- To:1': 0.24; 'script': 0.25; 'command': 0.26; 'figure': 0.27; 'switch': 0.27; 'message-id:@mail.gmail.com': 0.27; 'dos': 0.27; 'start,': 0.27; 'values': 0.28; 'actual': 0.28; '(my': 0.29; 'staying': 0.29; 'subject:end': 0.29; 'terminating': 0.29; 'windows,': 0.29; 'work.': 0.30; 'code': 0.30; 'another': 0.32; 'run': 0.33; 'recommended': 0.34; 'gives': 0.35; 'received:google.com': 0.35; 'next': 0.35; 'newer': 0.35; 'something': 0.35; 'asking': 0.35; 'step': 0.36; 'subject:: ': 0.37; 'operating': 0.37; 'associated': 0.38; 'version': 0.38; 'means': 0.39; 'subject:the': 0.39; 'your': 0.60; 'show': 0.62; 'jul': 0.72; 'calls,': 0.84; 'chrisa': 0.84; 'disappears': 0.84; 'drive.': 0.84; 'promptly': 0.84; 'seymore4head': 0.84; 'subject:Appending': 0.84; 'suspicion': 0.84; 'to:none': 0.91; 'fun!': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=JaRUun6n3xA4KLYxIawd/8EpdtViifvVHkmgkTB4ByQ=; b=V22+gDq+NvqDjol5mS/I5gfQj8I2W2Wpa/aqen8stPEamCKlOqpX+2RbHPYano+Fcn H7otqBZ6m2tNlX3veidIV8q88r7igzoRuEC4muuBkjt5xrZJm7VCMbmmYqV9yb59ykLy eKew7Q/8rkKp2rUK2aKSzrepT9Fyi/GVON2IkdE/3uxowGSIbw5z1BkxhJ4lnQy+JbSC JfZGx8C7u6Fa39ZxaI017k/GsjiWX4N9oyvdsLgocRGQH9r3ODUzM1wEFtsGElU5h02K FGTwaq5m4iKQnM0zmr7lsuey4GubnRxue86H2CVxhqsKhyA8FpVGiFDOyqcnEwHH4kV5 Rs9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=JaRUun6n3xA4KLYxIawd/8EpdtViifvVHkmgkTB4ByQ=; b=VaUBfUxIXyLELS4t429AnumH4MpZpB7mYKW75+WXspx4ZF03A9Q01t/SSzP3OXnQQv 3bO9+qoCBGQdPbs3CTaVQiVsj5xPN2yh4CV6NhqQ/arcWIl17eH5k94PK4NmJp+kvupP Te5KdV22c0AJ+cD87Dysn9kPws0JY0clB1V1TRb5cDd2tw2t1eSy7bzD2Ye4WTIPRE/t 8uG7ZtgEcnZ0AX7eXTCIiAWkRHHoYEOZ/EWS6NEeKjcrcX42HLTvVUZzgOAaNBzlFXSc IGjjBHD+fnp4GED3YnNbfaL+VDv5PbGi6V+JCueHgbidBfXlSwbgXOCPOC1nIHlPe/l7 hfUw== X-Gm-Message-State: ALyK8tIg3PmlDGFeI5bgvDsZbAw0/BPDSap98h9TaMh+cjWecE+10RlQfYHyJK2vw2kE1A/BUzvniM/C1qju8g== X-Received: by 10.194.139.50 with SMTP id qv18mr14073824wjb.47.1467761928131; Tue, 05 Jul 2016 16:38:48 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:111155 On Wed, Jul 6, 2016 at 9:04 AM, Seymore4Head wrote: > I am using XP and launching the program from another drive/folder than > the boot drive. > > The program has .py extension and the icon shows it is associated with > Python. > > I tried "start run" and then typed python and it did show the dos box > with c:\python34/python.exe and the python shell. Okay. Step 1: Get a better operating system than Windows XP. Either upgrade to a newer version of Windows, or (my recommended option) switch to something like Debian Linux. Step 2, whether or not you do step 1: Become familiar with the command line. If you're staying with Windows, that means Start, Run, cmd.exe. Run your program from the terminal, and (this is the most important part) *copy and paste* its output into your next email asking for help. My suspicion is that your script is terminating with an exception somewhere, and you're not seeing it because the Windows association system gives you a Python that comes up and then disappears promptly when the program terminates. Step 3: If the above hasn't trivially solved your problem, now it's time for actual debugging work. Pepper your code with print() calls, showing the values of various things, until you figure out what's going on. Have fun! ChrisA