Message361630
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'
``` |
|
Date |
User |
Action |
Args |
2020-02-08 14:27:40 | shihai1991 | set | recipients:
+ shihai1991 |
2020-02-08 14:27:40 | shihai1991 | set | messageid: <1581172060.12.0.48939566603.issue39585@roundup.psfhosted.org> |
2020-02-08 14:27:40 | shihai1991 | link | issue39585 messages |
2020-02-08 14:27:40 | shihai1991 | create | |
|