This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aroberge
Recipients Carl.Friedrich.Bolz, aroberge, pablogsal, terry.reedy
Date 2021-11-12.23:00:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636758053.53.0.49707852723.issue45781@roundup.psfhosted.org>
In-reply-to
Content
What version are you using?  As far as I can test, it has become a syntax error since 3.10. Here is the result with the latest 3.11 alpha

> python
Python 3.11.0a2 (tags/v3.11.0a2:e2b4e4b, Nov  5 2021, 20:00:05) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> del __debug__
  File "<stdin>", line 1
SyntaxError: cannot delete __debug__
>>> exit()

> python
Python 3.11.0a2 (tags/v3.11.0a2:e2b4e4b, Nov  5 2021, 20:00:05) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> def f():
...    del __debug__
...
  File "<stdin>", line 2
SyntaxError: cannot delete __debug__
History
Date User Action Args
2021-11-12 23:00:53arobergesetrecipients: + aroberge, terry.reedy, Carl.Friedrich.Bolz, pablogsal
2021-11-12 23:00:53arobergesetmessageid: <1636758053.53.0.49707852723.issue45781@roundup.psfhosted.org>
2021-11-12 23:00:53arobergelinkissue45781 messages
2021-11-12 23:00:53arobergecreate