-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
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
Proposal:
Following code produces not very clear error message (IMHO)
>>> all
<built-in function all>
>>> all in globals()
False
>>> del all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
del all
^^^
NameError: name 'all' is not defined
On my sight it well be better to tell that builtin cannot be deleted.
(fixed can be to cannot be)
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
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