27 Apr
2023
27 Apr
'23
1:45 p.m.
In examples in the web very often we see unfinished or partial code, where the ellipsis "..." is used in place of missing instructions. Idea: make ellipsis used in that context throw an exception, reminding the user that this code is work in progress. The exception could be called ToDoError, or WorkInProgressError, or simply EllipsisError, and could be derived from NotImplementedError. ``` def my_fun(): ... # todo my_fun()
WorkInProgressError: Implementation of `my_fun` is not finished.
``` This change could break some code, as for now ellipsis in the middle of code is silently ignored, but I don't think anybody seriously relies on that behavior. haael