Re: [Tutor] Need a solution.

2009-06-13 Thread Alan Gauld
"David" 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 feedback, i came up with t

[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 http://

Re: [Tutor] Need a solution.

2009-06-13 Thread spir
Le Sat, 13 Jun 2009 09:20:36 +0100, "Alan Gauld" 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 that. While this i

Re: [Tutor] Best Python Editor

2009-06-13 Thread John Fouhy
2009/6/13 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? Vim is a general purpose programmer's editor with python support, rather than

Re: [Tutor] Best Python Editor

2009-06-13 Thread Dave Angel
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 This is such a common question on the python forums it ought to be in

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 progra

Re: [Tutor] Need a solution.

2009-06-13 Thread Alan Gauld
"spir" 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 most case, I guess

Re: [Tutor] Best Python Editor

2009-06-13 Thread Alan Gauld
"Eddie" wrote 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 great editor, especially if you use multiple OS, but it has a steep learning curve.

Re: [Tutor] Best Python Editor

2009-06-13 Thread Alan Gauld
"Tom Green" 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" 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. ___ Tutor

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 , 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 variables) are br

Re: [Tutor] Need a solution.

2009-06-13 Thread David
Alan Gauld wrote: "David" 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 feedback

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

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, wrote: >>> The current release of Pyscripter is not stable. Drop back one release and >>> you'll find a very

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 : > Hi All, > > I have been using komodo from last two yrs. > > Its really very good open source editor. > > we can use this

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, an

Re: [Tutor] Best Python Editor

2009-06-13 Thread Alan Gauld
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 http://mmm-experts.com/Downloads.aspx?ProductId

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 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 > believe. There is al

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 :!python % > > and every time you hit it will run your current script. > > Thanks for that. It's even better than typing :!python % because it doesn't s

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 messing