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


Groups > comp.lang.python > #26601

Re: Getting started with IDLE and Python - no highlighting and no execution

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Getting started with IDLE and Python - no highlighting and no execution
Date 2012-08-05 21:32 -0400
References <d07282d6-1666-4230-bf46-c0942ef9a390@r7g2000yqr.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2997.1344216783.4697.python-list@python.org> (permalink)

Show all headers | View raw


On 8/5/2012 7:46 PM, PeterSo wrote:
> I am just starting to learn Python, and I like to use the editor
> instead of the interactive shell. So I wrote the following little
> program in IDLE
>
> # calculating the mean
>
> data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 78, 22, 25, 11]
>
> def mean(data):
> 	return sum(data)/len(data)
>
> mean(data1)
>
>
> There is no syntax highlighting

If properly installed and working, IDLE does syntax highliting if and 
only if you name the file with a .py, .pyw, .pyo extension. I have a 
'play around' directory with a tem.py file that is always in the recent 
files lists. I use it for short shippets that are two long to directly 
type into the shell.

-- 
Terry Jan Reedy

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


Thread

Getting started with IDLE and Python - no highlighting and no execution PeterSo <ojlise@gmail.com> - 2012-08-05 16:46 -0700
  Re: Getting started with IDLE and Python - no highlighting and no execution Rotwang <sg552@hotmail.co.uk> - 2012-08-06 01:09 +0100
    Re: Getting started with IDLE and Python - no highlighting and no execution MRAB <python@mrabarnett.plus.com> - 2012-08-06 01:58 +0100
    Re: Getting started with IDLE and Python - no highlighting and no execution Matthew Barnett <mrabarnett@mrabarnett.plus.com> - 2012-08-06 02:01 +0100
      Re: Getting started with IDLE and Python - no highlighting and no execution Rotwang <sg552@hotmail.co.uk> - 2012-08-06 02:13 +0100
    Re: Getting started with IDLE and Python - no highlighting and no execution PeterSo <ojlise@gmail.com> - 2012-08-05 19:17 -0700
  Re: Getting started with IDLE and Python - no highlighting and no execution Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-06 01:52 +0100
  Re: Getting started with IDLE and Python - no highlighting and no execution Terry Reedy <tjreedy@udel.edu> - 2012-08-05 21:32 -0400
  Re: Getting started with IDLE and Python - no highlighting and no execution soloflyr@gmail.com - 2012-08-09 06:36 -0700

csiph-web