MCPcopy Index your code
hub / github.com/python/cpython / _SentinelObject

Class _SentinelObject

Lib/unittest/mock.py:314–323  ·  view source on GitHub ↗

A unique, named, sentinel object.

Source from the content-addressed store, hash-verified

312
313
314class _SentinelObject(object):
315 "A unique, named, sentinel object."
316 def __init__(self, name):
317 self.name = name
318
319 def __repr__(self):
320 return 'sentinel.%s' % self.name
321
322 def __reduce__(self):
323 return 'sentinel.%s' % self.name
324
325
326class _Sentinel(object):

Callers 1

__getattr__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…