4 ms·
Even a simple message in an exception statement, "you are running Python 3; could this be Python 2 code?"
by russfink 6y ago
Even a simple message in an exception statement, "you are running Python 3; could this be Python 2 code?"
- joshuamorton 6y agoI claim that this would have negative EV. Most exceptions aren't due to version mismatch. You could add a line for a very specific set of syntax errors, but those aren't very useful. Also having your new version suggest using the old version is counterproductive.
- Drdrdrq 6y agoMaybe... But there are two correct solutions (using an old version or upgrading the code) and such message would communicate clearly the need to decide between them.