Odd error

Terry Reedy tjreedy at udel.edu
Sat Mar 17 14:46:37 EDT 2007


<Joshua.R.English at gmail.com> wrote in message 
news:1174156377.840487.302740 at l75g2000hse.googlegroups.com...
|I installed it using the regular download form python.org.  I went
| back and did a lot of testing with the file, commenting out most of
| it, seeing what would actually run, and it seems I had a normal
| semantic error:
|
| self.data(one).append(item)
|
| and data is in fact a dictionary, not a callable object.  What gets me
| is the massive red herring this error is.  I wasn't doing anything
| with ntpath in the script.  The script selectively extracts
| information from an XML file, that's all.

When you run a script from IDLE, it saves it to disk, and in the process of 
saving, IDLE looks at the path.  I don't think your script ever ran.  At 
least that is what I gathered from the traceback.  I agree with JM: the 
traceback and error message do not match, so this is indeed an 'odd' error.

Terry Jan Reedy






More information about the Python-list mailing list