R
Russ
- because error messages are not debugging tools (better use unit
Then what are they? Machine-generated poetry?
- because error messages are not debugging tools (better use unit
bee[LURGID].gabbleblotchits[PLURDLED]) == 0Then what are they? Machine-generated poetry?>>> me.__cmp__(gruntbuggly['freddled'].micturations,
Russ said:The message tells you where the error occurred, but it doesn't tell you
what the range and the offending index are.
bee[LURGID].gabbleblotchits[PLURDLED]) == 0- because error messages are not debugging tools (better use unit
Then what are they? Machine-generated poetry?me.__cmp__(gruntbuggly['freddled'].micturations,
Traceback (most recent call last):
File "<stdin>", line 1, in ?
VogonPoetryException: Bleem miserable venchit! Bleem forever
mestinglish asunder frapt!
John said:It should be extremely easy (rather than "not impossible") for
anybody with half a clue
Sheesh.
And despite your use of RHN (Reverse Hungarian Notation) you don't
know that someList is a list?
OKB said:I appreciate your taking the time to post this thoughtful and civil
reply not once but six times.
what should happen if by accident one uses a 50Mb string as an index?
Should it be displayed?
OKB (not okblacke) said:Can you give a real example from your code where the location of
such a human error (you cause a variable to bound to a value of
inappropriate type) would be difficult to find, plus an estimate of
how often you would make such an error?
Here is an example:
self.outFile.write(str(len(self.hits)) + ' in ' + searchInfo.recordName
+ '\t' + ']['.join((a. group() for a in self.hits)) + '\n')
This is from a text-searching tool I have written to search
linguistic corpora. This statement writes a summary line to the output
file indicating how many hits were found in that file. [...]
The problem in this line was that I'd forgotten to put str() around
the len(). [...]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.