This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: thisid not intialized in script
Type: Stage:
Components: Demos and Tools Versions: Python 2.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, nbajpai, rhettinger, tim.peters
Priority: normal Keywords:

Created on 2004-11-24 23:13 by nbajpai, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg23309 - (view) Author: Niraj Bajpai (nbajpai) Date: 2004-11-24 23:13
Hi there,

I am using python version 2.3.4.

For some cases when using with -c and -e 
option as follows, the variable "thisid" does not gets 
initialized before it hits line #310 ( current, firstkw, 
lastkw, topid = indent, thiskw, thiskw, thisid), this is 
traced all the way back to line #268 (for my case it fell 
in this else clause ... didn't try to look the exact 
scenario causing this) ... adding 

thisid = '' help fix the code for my scenario. 

If this fix is good for all scenario, please roll this over to 
main line code.

msg23310 - (view) Author: Niraj Bajpai (nbajpai) Date: 2004-11-25 02:50
Logged In: YES 

I am running on solaris-8 and command I used is as follows: -c -e <file_name>

This is for some special cases (I do not know, haven't digged 
into) and does not happen for all the mis-formatted files.
msg23311 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2004-12-19 22:12
Logged In: YES 

Tim, cvs ann says this is your code.
msg23312 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-12-19 22:32
Logged In: YES 

ann says that because rev 1.10 mechanically converted the 
whole file from tab indents to 4-space indents.  I've never 
looked at this code, and never even used it.  I care about, but not (it's Guido's baby, BTW).  
Unassigned myself.
msg23313 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-26 20:23
Logged In: YES 

Fixed in CVS Tools/scripts/ r1.13, r1.12.12.1.
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41227
2004-11-24 23:13:56nbajpaicreate