Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111155

Re: Appending an asterisk to the end of each line

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Appending an asterisk to the end of each line
Date 2016-07-06 09:38 +1000
Message-ID <mailman.115.1467761936.2295.python-list@python.org> (permalink)
References (3 earlier) <s3donb9552u0v4rv63gdqvisq44otam9l9@4ax.com> <CAPM-O+wHuiX5YZ_syXah2zEZLyc5wbKTVxzWCAn4KyEfjiSp=A@mail.gmail.com> <mailman.111.1467758454.2295.python-list@python.org> <freonb9ohgk9ghdtvlk0vnnfgi4i2mgrkj@4ax.com> <CAPTjJmo=UqQjCUYs6LqkouCUsXbw-1evC+ffy01a0SogevKjXA@mail.gmail.com>

Show all headers | View raw


On Wed, Jul 6, 2016 at 9:04 AM, Seymore4Head
<Seymore4Head@hotmail.invalid> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 18:05 -0400
  Re: Appending an asterisk to the end of each line Joel Goldstick <joel.goldstick@gmail.com> - 2016-07-05 18:27 -0400
    Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 18:29 -0400
      Re: Appending an asterisk to the end of each line Joel Goldstick <joel.goldstick@gmail.com> - 2016-07-05 18:40 -0400
        Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 19:04 -0400
          Re: Appending an asterisk to the end of each line Chris Angelico <rosuav@gmail.com> - 2016-07-06 09:38 +1000
            Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 19:49 -0400
  Re: Appending an asterisk to the end of each line MRAB <python@mrabarnett.plus.com> - 2016-07-06 00:03 +0100
    Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 19:15 -0400
  Re: Appending an asterisk to the end of each line Joel Goldstick <joel.goldstick@gmail.com> - 2016-07-05 19:15 -0400
    Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 19:29 -0400
      Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 19:45 -0400
        Re: Appending an asterisk to the end of each line MRAB <python@mrabarnett.plus.com> - 2016-07-06 01:05 +0100
          Re: Appending an asterisk to the end of each line Seymore4Head <Seymore4Head@Hotmail.invalid> - 2016-07-05 20:05 -0400
            Re: Appending an asterisk to the end of each line MRAB <python@mrabarnett.plus.com> - 2016-07-06 03:15 +0100
            Re: Appending an asterisk to the end of each line Steven D'Aprano <steve@pearwood.info> - 2016-07-06 12:35 +1000
  Re: Appending an asterisk to the end of each line Larry Hudson <orgnut@yahoo.com> - 2016-07-05 21:37 -0700
    Re: Appending an asterisk to the end of each line cs@zip.com.au - 2016-07-06 15:35 +1000

csiph-web