Re: [Tutor] First Python Test

2013-02-02 Thread David Rock
* Alan Gauld [2013-02-02 17:49]: > On 02/02/13 12:57, Shall, Sydney wrote: > > Dear Aurelien, > > Would you please explain how one installs GNU Emacs on a MAC using OS X > > v10.6. > > Last time I looked it was already installed. Just type emacs at a > Terminal prompt. Verified on 10.6.8 -- D

Re: [Tutor] First Python Test

2013-02-02 Thread Shall, Sydney
Thanks for both your comments, Alan. I am wiser now. Sydney On 02/02/2013 17:50, Alan Gauld wrote: On 02/02/13 15:27, Shall, Sydney wrote: OK. So Bluefish is the Free open-source GNU editor and it is suitable for Python. No thats emacs. Bluefish is an open source web editor(HTML, CSS etc).

Re: [Tutor] First Python Test

2013-02-02 Thread Alan Gauld
On 02/02/13 15:27, Shall, Sydney wrote: OK. So Bluefish is the Free open-source GNU editor and it is suitable for Python. No thats emacs. Bluefish is an open source web editor(HTML, CSS etc). It may support Python but its not an ideal IDE. -- Alan G Author of the Learn to Program web site

Re: [Tutor] First Python Test

2013-02-02 Thread Alan Gauld
On 02/02/13 12:57, Shall, Sydney wrote: Dear Aurelien, Would you please explain how one installs GNU Emacs on a MAC using OS X v10.6. Last time I looked it was already installed. Just type emacs at a Terminal prompt. You can also get a Cocoa version that run in a separate Window, try Google

Re: [Tutor] First Python Test

2013-02-02 Thread Shall, Sydney
You are correct, of course. OK. So Bluefish is the Free open-source GNU editor and it is suitable for Python. We will have a complete menagerie soon. Thanks. Sydney On 02/02/2013 13:23, Aurélien DESBRIÈRES wrote: Join #emacs on irc.freenode.net and ask them. I do not bring any support for no

Re: [Tutor] Read from large text file, parse, find string, print string + line number to second text file.

2013-02-02 Thread Nick W
I'd suggest having the newfile open after outfile is defined also a close statement on newfile - or use it with 'with' such as: ... and replace the last line like so: with open(outfile, 'w') as newfile: main(mystring, infile, newfile) (and looking muchly improved, well done) Nick On Fri, Fe

Re: [Tutor] First Python Test

2013-02-02 Thread Aurélien DESBRIÈRES
Join #emacs on irc.freenode.net and ask them. I do not bring any support for non free Operating System nor BrainWashing ones ;-) "Shall, Sydney" writes: > Dear Aurelien, > Would you please explain how one installs GNU Emacs on a MAC using OS > X v10.6. > I cannot find a binary package. The GNU

Re: [Tutor] First Python Test

2013-02-02 Thread Shall, Sydney
Dear Aurelien, Would you please explain how one installs GNU Emacs on a MAC using OS X v10.6. I cannot find a binary package. The GNU site seems to me to have only source code packages. Mille fois merci. Sydney On 02/02/2013 09:54, Aurélien DESBRIÈRES wrote: hmm ... you should use GNU Emacs,

Re: [Tutor] First Python Test

2013-02-02 Thread Shall, Sydney
Text Wrangler is a free, cut-down version of BB-Edit, I think. Sydney On 02/02/2013 09:31, Jamie Griffin wrote: * Simon Yan [2013-02-02 01:11:12 +0800]: I would recommend start off from a simple text editor that has basic syntax highlighting features. There are a number of options out there

Re: [Tutor] First Python Test

2013-02-02 Thread Shall, Sydney
Two free good text editors for the MAC are; 1. Komodo 2. Text Wrangler. hth Sydney On 01/02/2013 17:11, Simon Yan wrote: On Fri, Feb 1, 2013 at 9:18 PM, Dustin Guerri > wrote: Thanks for replying, Simon. I have no particular reason to use Xcode - wh

Re: [Tutor] First Python Test

2013-02-02 Thread Aurélien DESBRIÈRES
hmm ... you should use GNU Emacs, it's Free in price and license! Extensible Text Editor with a cool Python-mode ;-) Jamie Griffin writes: > * Simon Yan [2013-02-02 01:11:12 +0800]: > >> I would recommend start off from a simple text editor that has basic syntax >> highlighting features. Ther

Re: [Tutor] First Python Test

2013-02-02 Thread Jamie Griffin
* Simon Yan [2013-02-02 01:11:12 +0800]: > I would recommend start off from a simple text editor that has basic syntax > highlighting features. There are a number of options out there. > TextMate is a good choice, a little pricy. > VIM, if you are a terminal guy > Even Python IDLE is a good choic

Re: [Tutor] Help

2013-02-02 Thread Alan Gauld
On 02/02/13 01:47, Jack Little wrote: def simpstart(): global ammo1 global ammo2 global ammo3 global health global tech_parts global exp global radio_parts ammo1=10 ammo2=0 ammo3=0 health=100 tech_parts=0 exp=0 radio_parts=0 This function is completely

Re: [Tutor] Read from large text file, parse, find string, print string + line number to second text file.

2013-02-02 Thread Alan Gauld
On 02/02/13 04:57, Scurvy Scott wrote: It may just be an email thing but... def main(mystring, infile, outfile): with open('infile', 'r') as inF: for index, line in enumerate(inF): if myString in line: newfile.write("s