Message393594
Alternatively, sentinels can simply be classes:
class Sentinel:
def __new__(cls, *args, **kwargs):
raise TypeError(f'{cls.__qualname__} cannot be instantiated')
class MISSING(Sentinel):
pass |
|
Date |
User |
Action |
Args |
2021-05-13 17:38:36 | taleinat | set | recipients:
+ taleinat, eric.smith, zach.ware, iritkatriel |
2021-05-13 17:38:36 | taleinat | set | messageid: <1620927516.94.0.816735589219.issue44123@roundup.psfhosted.org> |
2021-05-13 17:38:36 | taleinat | link | issue44123 messages |
2021-05-13 17:38:36 | taleinat | create | |
|