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


Groups > comp.lang.python > #26596

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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mrabarnett@mrabarnett.plus.com>
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; 'interpreter': 0.04; 'subject:IDLE': 0.04; 'subject:Python': 0.05; 'mrab': 0.05; 'expressions': 0.07; '22,': 0.09; 'calculating': 0.09; 'highlighting': 0.09; 'pressing': 0.09; 'script,': 0.09; 'subject:Getting': 0.09; 'def': 0.10; '24,': 0.16; '37,': 0.16; '64,': 0.16; '66,': 0.16; 'does;': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'guessing': 0.16; 'idle.': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'subject: \n ': 0.16; 'subject:started': 0.16; 'wrote:': 0.17; 'shell': 0.18; '>>>': 0.18; 'written': 0.20; 'runs': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'looks': 0.26; 'wrote': 0.26; "doesn't": 0.28; 'received:192.168.1.3': 0.29; 'restart': 0.29; "i'm": 0.29; 'received:84': 0.32; 'print': 0.32; 'idle': 0.33; 'right?': 0.33; 'to:addr:python-list': 0.33; 'there': 0.35; 'but': 0.36; "didn't": 0.36; 'subject:with': 0.36; 'editor': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'little': 0.39; 'received:192.168': 0.40; "you've": 0.61; 'skip:= 30': 0.64; 'actually,': 0.84; 'start.': 0.84
X-CM-Score 0.00
X-CNFS-Analysis v=2.0 cv=IekFqBWa c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=DKcI9XZsuF4A:10 a=9KNvwgKiU5UA:10 a=ihvODaAuJD4A:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=ZA8okfeWfzbhAgz31GkA:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117
X-AUTH mrabarnett:2500
Date Mon, 06 Aug 2012 02:01:47 +0100
From Matthew Barnett <mrabarnett@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Getting started with IDLE and Python - no highlighting and no execution
References <d07282d6-1666-4230-bf46-c0942ef9a390@r7g2000yqr.googlegroups.com> <jvn1vr$ln6$1@dont-email.me> <501F16B4.8020306@mrabarnett.plus.com>
In-Reply-To <501F16B4.8020306@mrabarnett.plus.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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.2993.1344214905.4697.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1344214905 news.xs4all.nl 6933 [2001:888:2000:d::a6]:54046
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26596

Show key headers only | View raw


On 06/08/2012 01:58, MRAB wrote:
> On 06/08/2012 01:09, Rotwang wrote:
>> On 06/08/2012 00:46, 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 and when I ran it F5, I got the
>>> following in the shell window.
>>>
>>>
>>>   >>> ================================ RESTART
>>> ================================
>>>>>>
>>>>>>
>>>
>>>
>>> Any ideas?
>>
>> I don't know what editor you're using or how it works, but I'm guessing
>> that pressing f5 runs what you've written as a script, right? In that
>> case the interpreter doesn't automatically print the result of
>> expressions in the same way that the interactive interpreter does; you
>> didn't tell it to print anything, so it didn't.
>>
> It looks like it's IDLE.

Actually, he does say that it's IDLE at the start.
[snip]

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