-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
During development, it would be convenient if the history was checked for syntax errors. This can be implemented with the built-in function compile. Here's a basic example for this function:
>>> compile("a = 1\n b=2", "history", "exec")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "history", line 2
b=2
IndentationError: unexpected indent
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels