Re: [Tutor] Need a solution.

2009-06-13 Thread Alan Gauld
David da...@abbottdavid.com wrote class GuessError(Exception): pass class GuessedNumber: def __init__(self,tries=None,limits=None):... def generate(self, limits=None):... def __cmp__(self, aNumber): if self.count = self.tries: raise GuessError Thanks always for the

[Tutor] Best Python Editor

2009-06-13 Thread Eddie
Hi guys, What would you regard as the best free Python editor to use on Windows for a new guy? Searching Google i see that there is quite a few out there and is VIM the best one to go with? Regards Eddie ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Need a solution.

2009-06-13 Thread spir
Le Sat, 13 Jun 2009 09:20:36 +0100, Alan Gauld alan.ga...@btinternet.com s'exprima ainsi: Any time you have a class that just has an __init__ it means its not doing anything. And that's a bad sign. Classes are there to *do* things not just store data. We can use a tuple or dictionary to do

Re: [Tutor] Best Python Editor

2009-06-13 Thread John Fouhy
2009/6/13 Eddie eddie9...@gmail.com: Hi guys, What would you regard as the best free Python editor to use on Windows for a new guy? Searching Google i see that there is quite a few out there and is VIM the best one to go with? Vim is a general purpose programmer's editor with python support,

Re: [Tutor] Best Python Editor

2009-06-13 Thread Dave Angel
Eddie eddie9...@gmail.com wrote: Hi guys, What would you regard as the best free Python editor to use on Windows for a new guy? Searching Google i see that there is quite a few out there and is VIM the best one to go with? Regards Eddie This is such a common question on the python forums

Re: [Tutor] Best Python Editor

2009-06-13 Thread Tom Green
For Windows check out PyScripter. Its IDE is similar to Borland Delphi and I find it very easy to use. Whatever works for you would be best for you. PyScripter is FREE and I would highly recommend it for people who are new to Python or people with programming experience that are used to

Re: [Tutor] Need a solution.

2009-06-13 Thread Alan Gauld
spir denis.s...@free.fr wrote Any time you have a class that just has an __init__ it means its not doing anything. And that's a bad sign. Classes are there to *do* things not just store data. We can use a tuple or dictionary to do that. While this is probably true for _single_ objects in

Re: [Tutor] Best Python Editor

2009-06-13 Thread Alan Gauld
Tom Green xchime...@gmail.com wrote For Windows check out PyScripter. I just did, Wow!, this looks like a superb IDE. Thanks for posting, its a new one for me although its been out for quite a while. And the P4D delphi plugin looks useful too. Thanks again, Alan G.

Re: [Tutor] Best Python Editor

2009-06-13 Thread Alan Gauld
Alan Gauld alan.ga...@btinternet.com wrote I just did, Wow!, this looks like a superb IDE. I spoke a wee bit too soon. The editor is nice but the debugger and some of the other tools windows (eg variables) are broken. Pity, lots of potential here. Alan G.

Re: [Tutor] Best Python Editor

2009-06-13 Thread python
Alan, I spoke a wee bit too soon. The editor is nice but the debugger and some of the other tools windows (eg variables) are broken. Pity, lots of potential here. The current release of Pyscripter is not stable. Drop back one release and you'll find a very solid product. Malcolm

Re: [Tutor] Best Python Editor

2009-06-13 Thread Ken Oliver
-Original Message- From: pyt...@bdurham.com Sent: Jun 13, 2009 10:16 AM To: Alan Gauld alan.ga...@btinternet.com, tutor@python.org Subject: Re: [Tutor] Best Python Editor Alan, I spoke a wee bit too soon. The editor is nice but the debugger and some of the other tools windows (eg

Re: [Tutor] Need a solution.

2009-06-13 Thread David
Alan Gauld wrote: David da...@abbottdavid.com wrote class GuessError(Exception): pass class GuessedNumber: def __init__(self,tries=None,limits=None):... def generate(self, limits=None):... def __cmp__(self, aNumber): if self.count = self.tries: raise GuessError Thanks

Re: [Tutor] Best Python Editor

2009-06-13 Thread python
The current release of Pyscripter is not stable. Drop back one release and you'll find a very solid product. Sounds interesting. What is the stable version and where can it be found? Ken, Here's the version we use: Version 1.7.2, Oct 2006 http://mmm-experts.com/Downloads.aspx?ProductId=4

Re: [Tutor] Need a solution.

2009-06-13 Thread ALAN GAULD
Ok, I think I am getting somewhere now :) A lot better, now add the comparison methods: class GuessedNumber: def __init__(self, count=0, attempts=None): self.attempts = attempts self.number = randrange(1,99) self.count = count def step(self):

Re: [Tutor] Best Python Editor

2009-06-13 Thread Ataulla S H
Hi All, I have been using komodo from last two yrs. Its really very good open source editor. we can use this editor to edit python, php, Ruby, html On Sat, Jun 13, 2009 at 9:52 PM, pyt...@bdurham.com wrote: The current release of Pyscripter is not stable. Drop back one release and

Re: [Tutor] Best Python Editor

2009-06-13 Thread Eddie
Thanks for the input guys. I think I'll give PyScripter (the previous version that was linked to) and Komodo a try and see which I like best. Eddie 2009/6/14 Ataulla S H atau...@gmail.com: Hi All, I have been using komodo from last two yrs. Its really very good open source editor. we

Re: [Tutor] Best Python Editor

2009-06-13 Thread Chris Fuller
On Saturday 13 June 2009 04:44, Eddie wrote: Hi guys, What would you regard as the best free Python editor to use on Windows for a new guy? Searching Google i see that there is quite a few out there and is VIM the best one to go with? Regards Eddie I've tried a lot of editors, and my

Re: [Tutor] Best Python Editor

2009-06-13 Thread Alan Gauld
pyt...@bdurham.com wrote The current release of Pyscripter is not stable. Drop back one release and you'll find a very solid product. Sounds interesting. What is the stable version and where can it be found? Here's the version we use: Version 1.7.2, Oct 2006

Re: [Tutor] Best Python Editor

2009-06-13 Thread Mike Hoy
Try out Vim. It may take you a week to get used to it. Best thing I ever did was finally get started on Vim. Once I got used to it I was very happy. Google around for Vim tutorials. There is a #VIM channel on freenode I believe. There is also a VIM mailing list that is very helpful. You won't need

Re: [Tutor] Best Python Editor

2009-06-13 Thread Wayne
On Sat, Jun 13, 2009 at 7:40 PM, Mike Hoy hoy...@gmail.com wrote: Try out Vim. It may take you a week to get used to it. Best thing I ever did was finally get started on Vim. Once I got used to it I was very happy. Google around for Vim tutorials. There is a #VIM channel on freenode I

Re: [Tutor] Best Python Editor

2009-06-13 Thread Mike Hoy
I really like using F5 to run my code, so you can put in your .vimrc so you don't have to type it, or just type it every time: map F5 :!python %Enter and every time you hit F5 it will run your current script. Thanks for that. It's even better than typing :!python % because it doesn't

Re: [Tutor] Best Python Editor

2009-06-13 Thread Eddie
I downloaded the previous version of PyScripter although couldn't get it to work and after googling it, I downloaded Python Portable 1.1 (Python 2.6.1 as most sites/books recommend this and not 3) which has PySCripter included and this then works fine.Ii also downloaded Komod0 5.1 and after