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 taleinat
Recipients eric.smith, iritkatriel, taleinat, zach.ware
Date 2021-05-13.17:38:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620927516.94.0.816735589219.issue44123@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-05-13 17:38:36taleinatsetrecipients: + taleinat, eric.smith, zach.ware, iritkatriel
2021-05-13 17:38:36taleinatsetmessageid: <1620927516.94.0.816735589219.issue44123@roundup.psfhosted.org>
2021-05-13 17:38:36taleinatlinkissue44123 messages
2021-05-13 17:38:36taleinatcreate