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


Groups > comp.lang.python > #69601

Re: Two Questions about Python on Windows

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Two Questions about Python on Windows
Date 2014-04-03 14:34 -0400
References <lhk4el$91k$1@news.albasani.net>
Newsgroups comp.lang.python
Message-ID <mailman.8850.1396550097.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 4/3/2014 1:06 PM, Walter Hurry wrote:
> Normally my Python development is done on FreeBSD and Linux. I know that on *ix I simply have to make foo.py executable (the shebang line is present, of course) to make it runnable.
>
> For my son's school assignment, I have to help him with Python for Windows.
>
> As I understand it, on Windows a .py file is not executable, so I need to run 'python foo py', or use a .pyw file.

If he edits the file with Idle (see Start menu Python directory, F5 runs 
the file and uses the Idle shell for input and output. When the program 
finishes, one can interactively examine objects and call functions. F5 
Run is like running a program from a console with -I.

-- 
Terry Jan Reedy

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


Thread

Two Questions about Python on Windows Walter Hurry <walterhurry@gmail.com> - 2014-04-03 17:06 +0000
  Re: Two Questions about Python on Windows maxerickson@gmail.com - 2014-04-03 10:31 -0700
    Re: Two Questions about Python on Windows Tim Roberts <timr@probo.com> - 2014-04-05 14:57 -0700
  Re: Two Questions about Python on Windows Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-03 11:54 -0600
  Re: Two Questions about Python on Windows Terry Reedy <tjreedy@udel.edu> - 2014-04-03 14:34 -0400
  Re: Two Questions about Python on Windows Ethan Furman <ethan@stoneleaf.us> - 2014-04-03 11:00 -0700
  Re: Two Questions about Python on Windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-03 21:15 +0100
  Re: Two Questions about Python on Windows Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-03 16:41 -0600
  Re: Two Questions about Python on Windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-03 23:57 +0100

csiph-web