Re: Tabnanny errors when Migrating Python 2.4 code to 2.5

2008-01-05 Thread Mike Driscoll
I'm using Windows XP, using IDLE (which was mentioned already) in the context of editing/displaying code, not executing it. Does the problem occur before or after you edit a file with IDLE? Actually, neither. I'm not editing the code. I open it in IDLE in 2.5 and attempt to run it through the

Re: Tabnanny errors when Migrating Python 2.4 code to 2.5

2008-01-04 Thread John Machin
On Jan 5, 3:56 am, [EMAIL PROTECTED] wrote: Hi, When Python 2.5 first came out, I eagerly downloaded it and immediately had issues with getting it to run my 2.4 code. So I just stuck to 2.4. However, I decided this week that I really should try to get 2.5 to work. Does anyone know why code

Re: Tabnanny errors when Migrating Python 2.4 code to 2.5

2008-01-04 Thread kyosohma
On Jan 4, 2:06 pm, John Machin [EMAIL PROTECTED] wrote: On Jan 5, 3:56 am, [EMAIL PROTECTED] wrote: Hi, When Python 2.5 first came out, I eagerly downloaded it and immediately had issues with getting it to run my 2.4 code. So I just stuck to 2.4. However, I decided this week that I

Re: Tabnanny errors when Migrating Python 2.4 code to 2.5

2008-01-04 Thread John Machin
On Jan 5, 8:05 am, [EMAIL PROTECTED] wrote: On Jan 4, 2:06 pm, John Machin [EMAIL PROTECTED] wrote: On Jan 5, 3:56 am, [EMAIL PROTECTED] wrote: Hi, When Python 2.5 first came out, I eagerly downloaded it and immediately had issues with getting it to run my 2.4 code. So I just

Re: Tabnanny?

2005-06-08 Thread Douglas Soares de Andrade
Hi Anna ! Please post your code, so we can take a look to see what is happening. See ya ! Em Quarta 08 Junho 2005 23:36, Anna M. escreveu: Hello, i am very new to this. Only heard of python a week ago and have never posted before anywhere. But I am trying to rewrite a program that I made

RE: Tabnanny?

2005-06-08 Thread Anna M.
Thank you so much and so it goes . . . from random import randint def idxLargest(list, n): idxMx = 0 for i in range(1, n, 1): if list[i] list[idxMx]: idxMx = i return idxMx def radixSort(data): sorting = [data] tmp = [] for i in range(10):

Re: Tabnanny?

2005-06-08 Thread Douglas Soares de Andrade
Hi Anna !     idx = idxLargest(data, len(data) In this line we have a missing ), for me, this was the problem. Anyway, Check this line too: passes = len(max) + 1 It is giving me an error. See ya ! -- Douglas Soares de Andrade http://douglasandrade.cjb.net - dsa at unilestemg.br

Re: Tabnanny really useful?

2004-12-21 Thread Franz Steinhaeusler
On Mon, 20 Dec 2004 13:00:39 -0600, John Roth [EMAIL PROTECTED] wrote: Tabnanny is intended to check whether indentation has mixed tabs and spaces. Files with mixed tabs and spaces _can_ compile just fine if the editor that produced them agrees with the compiler about the number of spaces that a

Re: Tabnanny really useful?

2004-12-21 Thread Fredrik Lundh
Franz Steinhaeusler wrote: Thanks for your explanation. I tried an found: def a(): -print -.print where point is a space. tabnanny here complains and python compile it just fine. really? that's a syntax error (you cannot change indentation nillywilly inside a block), and the Python

Re: Tabnanny really useful?

2004-12-21 Thread Franz Steinhaeusler
On Tue, 21 Dec 2004 10:24:40 +0100, Fredrik Lundh [EMAIL PROTECTED] wrote: Franz Steinhaeusler wrote: Thanks for your explanation. I tried an found: def a(): -print -.print where point is a space. tabnanny here complains and python compile it just fine. really? that's a syntax error

Re: Tabnanny really useful?

2004-12-21 Thread Steve Holden
Franz Steinhaeusler wrote: On Tue, 21 Dec 2004 10:24:40 +0100, Fredrik Lundh [EMAIL PROTECTED] wrote: Franz Steinhaeusler wrote: Thanks for your explanation. I tried an found: def a(): -print -.print where point is a space. tabnanny here complains and python compile it just fine. really? that's

Re: Tabnanny really useful?

2004-12-21 Thread Franz Steinhaeusler
On Tue, 21 Dec 2004 08:36:31 -0500, Steve Holden [EMAIL PROTECTED] wrote: Franz Steinhaeusler wrote: [...] Oh sorry, I meant def a(): -print ..-print C:\Python23\Libtabnanny.py -v c:\franz.py 'c:\\franz.py': *** Line 3: trouble in tab city! *** offending line: ' \tprint\n' indent not

Re: Tabnanny really useful?

2004-12-21 Thread Steve Holden
Franz Steinhaeusler wrote: On Tue, 21 Dec 2004 08:36:31 -0500, Steve Holden [EMAIL PROTECTED] wrote: Franz Steinhaeusler wrote: [...] Oh sorry, I meant def a(): -print ..-print C:\Python23\Libtabnanny.py -v c:\franz.py 'c:\\franz.py': *** Line 3: trouble in tab city! *** offending line: '

Re: Tabnanny really useful?

2004-12-21 Thread Franz Steinhaeusler
On Tue, 21 Dec 2004 09:34:47 -0500, Steve Holden [EMAIL PROTECTED] wrote: Hello Steve, I've used drpython, and liked it. thank you, I'm sure, our project Admin will be pleased to hear this :) I think it would be a good way for people to start to use the language, yes, this project is

Re: Tabnanny really useful?

2004-12-21 Thread John Roth
Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you think tabnanny is a useful piece of code now? I used it a lot when I first started using Python, and still run it over code from unknown sources (no pun intended) from time to time. I think it's a lot less useful

Re: Tabnanny really useful?

2004-12-21 Thread Steve Holden
John Roth wrote: [...] I know what I would like to see in an editor: First, it autodetects whether the module uses tabs consistently, spaces consistently or a mixture. If it uses tabs consistently, it then uses the current default. If it uses spaces consistently, it should also autodetect the

Re: Tabnanny really useful?

2004-12-21 Thread Franz Steinhaeusler
On Tue, 21 Dec 2004 09:06:12 -0600, John Roth [EMAIL PROTECTED] wrote: Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you think tabnanny is a useful piece of code now? I used it a lot when I first started using Python, and still run it over code from unknown

Re: Tabnanny really useful?

2004-12-21 Thread Yet Another Mike
I'm told Tabnanny was inspired by lint, the Unix utiltity to check C sources (and probably others). Lint was primarily useful in days long ago when CPUs were slow and a compile used a significant amount of resources. In a multiuser environment (we ran an Intel 286 in multiuser mode!!), the

Re: Tabnanny really useful?

2004-12-21 Thread Mike Meyer
Yet Another Mike [EMAIL PROTECTED] writes: I'm told Tabnanny was inspired by lint, the Unix utiltity to check C sources (and probably others). Lint was primarily useful in days long ago when CPUs were slow and a compile used a significant amount of resources. In a multiuser environment

Re: Tabnanny really useful?

2004-12-20 Thread John Roth
Franz Steinhaeusler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I looked at tabnanny to check a python source file. But I didn't find anything, tabnanny is able to find, what couldn't be found by compile command. Or have I missed something? Tabnanny is intended to check whether