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 Camion
Recipients Camion, eric.smith, serhiy.storchaka, steven.daprano
Date 2017-12-10.06:25:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512887159.07.0.213398074469.issue32259@psf.upfronthosting.co.za>
In-reply-to
Content
By the way, I guess if the problem arises like that, it's because it might be hard to distinguish both situations at the interpreter level, but if it was possible, it would be the best solution to have a different error message (even if I understand we should be very careful with the idea of changing the exception type, even in this case).

I mean : Eric shown an equivalent error, but both are only equivalent at the present discrimination level of the interpreter & language grammar.  I understand that distinguishing both those semantically different situation might be opening the Pandora box and it might be a bad idea... or not.

The point is that, if ever both those situations were in some way distinguishable, then... well... we certainly have no idea of how much code confronted with this specific situation AND treated it with exception handling, BUT, we might make the assumption that a frequent confrontation with this case would then already have been raised before, and consequently, it might be relevant, at least to keep it in mind for a future evolution (4.0) of the language.
History
Date User Action Args
2017-12-10 06:25:59Camionsetrecipients: + Camion, eric.smith, steven.daprano, serhiy.storchaka
2017-12-10 06:25:59Camionsetmessageid: <1512887159.07.0.213398074469.issue32259@psf.upfronthosting.co.za>
2017-12-10 06:25:59Camionlinkissue32259 messages
2017-12-10 06:25:58Camioncreate