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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.03; 'subject:IDLE': 0.04; 'subject:Python': 0.05; '22,': 0.09; 'calculating': 0.09; 'extension.': 0.09; 'highlighting': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Getting': 0.09; 'terry': 0.09; 'def': 0.10; 'properly': 0.15; '24,': 0.16; '37,': 0.16; '64,': 0.16; '66,': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'subject:started': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'installed': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'wrote': 0.26; 'header:X-Complaints-To:1': 0.28; 'file': 0.32; 'idle': 0.33; 'to:addr:python-list': 0.33; 'lists.': 0.35; 'pm,': 0.35; 'there': 0.35; 'received:org': 0.36; 'subject:with': 0.36; 'editor': 0.37; 'does': 0.37; 'two': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'mean': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'short': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'received:fios.verizon.net': 0.84; 'working,': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Getting started with IDLE and Python - no highlighting and no execution
Date Sun, 05 Aug 2012 21:32:36 -0400
References <d07282d6-1666-4230-bf46-c0942ef9a390@r7g2000yqr.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
In-Reply-To <d07282d6-1666-4230-bf46-c0942ef9a390@r7g2000yqr.googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2997.1344216783.4697.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1344216783 news.xs4all.nl 6914 [2001:888:2000:d::a6]:48036
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26601

Show key headers only | 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