Sentinel objects
This instance of
PyTypeObjectrepresents the Pythonsentineltype. This is the same object assentinel.3.15
Return true if o is a
sentinelobject or a subtype. Thesentineltype does not currently allow subclasses, so this check is exact. Future Python versions may choose to allow subtyping. This function always succeeds.3.15
Return true if o is a
sentinelobject, but not a subtype. Thesentineltype does not currently allow subclasses. Future Python versions may choose to allow subtyping. This function always succeeds.3.15
Return a new
sentinelobject with~sentinel.__name__set to name and~sentinel.__module__set to module_name. name must not beNULL. If module_name isNULL,~sentinel.__module__is set toNone. If repr isNULL,repr()returns~sentinel.__name__. ReturnNULLwith an exception set on failure.For pickling to work, module_name must be the name of an importable module, and the sentinel must be accessible from that module under a path matching name. Pickle treats name as a global variable name in module_name (see
object.__reduce__).3.15
谢谢你的反馈!