-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Right now assert
generate errors that are hard to read, mostly because they lack context.
Example:
>>> assert 1 == 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
Pitch
Let's make them better:
>>> assert 1 == 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
assert 1 == 0
^^^^^^
AssertionError
This is a good starting point.
Later this can be enhanced to use more context.
Linked PRs
AlexWaygood and gpsheadkkarbowiak, sunmy2019, barneygale, Eclips4 and gpshead
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement