Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Tabnanny errors when Migrating Python 2.4 code to 2.5

Reply
Thread Tools

Tabnanny errors when Migrating Python 2.4 code to 2.5

 
 
kyosohma@gmail.com
Guest
Posts: n/a
 
      01-04-2008
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 that works perfectly for
months in a 2.4 environment throws indentation errors in 2.5?

And why does 2.5 default to indenting 8 characters instead of 4 in
IDLE? That's just weird. When I did a select all and did a Tabify
region, it indented everything 8 characters then too.

I haven't changed the configuration at all. Any ideas?

Thanks,

Mike
 
Reply With Quote
 
 
 
 
John Machin
Guest
Posts: n/a
 
      01-04-2008
On Jan 5, 3:56 am, kyoso...@gmail.com 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 that works perfectly for
> months in a 2.4 environment throws indentation errors in 2.5?


No, not until you go to the bother of reproducing the problem with a
small file, tell us what platform you are on, how you are running this
code (IDLE, shell prompt, ...), how you installed Python 2.5
(2.5.1?), ...
 
Reply With Quote
 
 
 
 
kyosohma@gmail.com
Guest
Posts: n/a
 
      01-04-2008
On Jan 4, 2:06 pm, John Machin <sjmac...@lexicon.net> wrote:
> On Jan 5, 3:56 am, kyoso...@gmail.com 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 that works perfectly for
> > months in a 2.4 environment throws indentation errors in 2.5?

>
> No, not until you go to the bother of reproducing the problem with a
> small file, tell us what platform you are on, how you are running this
> code (IDLE, shell prompt, ...), how you installed Python 2.5
> (2.5.1?), ...



I'm using Windows XP, using IDLE (which was mentioned already) and I
downloaded the 2.5.1 exe/msi file from python.org to install it.

I have yet to find a simple one which exhibits the issue to post. It
seems to happen to my complex files, not the simple ones.

Sorry to bother you.

Mike
 
Reply With Quote
 
John Machin
Guest
Posts: n/a
 
      01-04-2008
On Jan 5, 8:05 am, kyoso...@gmail.com wrote:
> On Jan 4, 2:06 pm, John Machin <sjmac...@lexicon.net> wrote:
>
> > On Jan 5, 3:56 am, kyoso...@gmail.com 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 that works perfectly for
> > > months in a 2.4 environment throws indentation errors in 2.5?

>
> > No, not until you go to the bother of reproducing the problem with a
> > small file, tell us what platform you are on, how you are running this
> > code (IDLE, shell prompt, ...), how you installed Python 2.5
> > (2.5.1?), ...

>
> 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?

> and I
> downloaded the 2.5.1 exe/msi file from python.org to install it.


What you downloaded doesn't answer the question about how you
installed it. Do you still have your 2.4 installation?

>
> I have yet to find a simple one which exhibits the issue to post. It
> seems to happen to my complex files, not the simple ones.


So chop up a complex file ...
Have you inspected the failing files using a text editor that can
display tabs and spaces (e.g. PythonWin, TextPad)?

>
> Sorry to bother you.


You didn't bother me. You are bothering yourself by asking questions
without enough information to get reasonable answers.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Tabnanny? Anna M. Python 1 06-09-2005 12:36 AM
Re: Tabnanny? Douglas Soares de Andrade Python 0 06-08-2005 09:04 PM
Re: Tabnanny? Douglas Soares de Andrade Python 0 06-08-2005 08:45 PM
Tabnanny really useful? Franz Steinhaeusler Python 16 12-23-2004 10:30 AM
problem with tabnanny m3tr0@dei.unipd.it Python 0 09-10-2003 04:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57