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.

Author cool-RR
Recipients cool-RR, josh.r, rhettinger
Date 2014-07-03.22:30:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404426647.81.0.620919899401.issue21911@psf.upfronthosting.co.za>
In-reply-to
Content
Josh... The reason I gave all these examples of where Python gives detailed error messages, is not so you'd explain the obvious reason, which is that it makes it easier to debug, figure out what's wrong with your program, and fix it. The reason I gave these examples is that I'm baffled by this attitude that I see all the time on python-dev, where people are asking me questions when the answers are obvious to all of us.

I suggested adding more information to the "IndexError: tuple index out of range", like "IndexError: tuple only has 4 elements, can't access element number 7." It should be obvious to any programming novice why this is helpful: Because it makes it much easier to figure out what your program is doing wrong, so you could fix it. (I feel silly having to spell it out in company of so many experienced developers who all understand this basic fact.)

I'm very frustrated that a core Python developer would ask me "Why?  Is there any known use case?" on such a no-brainer suggestion.

Now, if you want to make the performance argument, that's acceptable. But it's very, very frustrating that people on python-dev, who are very experienced developers, need to be explained the virtue of very simple and obvious features. (This happens many times, not just on this ticket.) I'm baffled as to why they do this.
History
Date User Action Args
2014-07-03 22:30:47cool-RRsetrecipients: + cool-RR, rhettinger, josh.r
2014-07-03 22:30:47cool-RRsetmessageid: <1404426647.81.0.620919899401.issue21911@psf.upfronthosting.co.za>
2014-07-03 22:30:47cool-RRlinkissue21911 messages
2014-07-03 22:30:47cool-RRcreate