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 shihai1991
Recipients shihai1991
Date 2020-02-08.14:27:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581172060.12.0.48939566603.issue39585@roundup.psfhosted.org>
In-reply-to
Content
a pend item could be removed (https://github.com/python/cpython/blob/master/Python/_warnings.c#L493).

two reasons:
1) every warning have `__name__` and it must not NULL(`The tp_name slot must be set;` from pep0253)
2) the `__name__` of Warning class(including children class) can not be removed.

```
>>> del UserWarning.__name__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type 'UserWarning'
```
History
Date User Action Args
2020-02-08 14:27:40shihai1991setrecipients: + shihai1991
2020-02-08 14:27:40shihai1991setmessageid: <1581172060.12.0.48939566603.issue39585@roundup.psfhosted.org>
2020-02-08 14:27:40shihai1991linkissue39585 messages
2020-02-08 14:27:40shihai1991create