MCPcopy Create free account
hub / github.com/ipython/ipython / Sentinel

Class Sentinel

IPython/utils/sentinel.py:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4# Distributed under the terms of the Modified BSD License.
5
6class Sentinel(object):
7
8 def __init__(self, name, module, docstring=None):
9 self.name = name
10 self.module = module
11 if docstring:
12 self.__doc__ = docstring
13
14
15 def __repr__(self):
16 return str(self.module)+'.'+self.name
17

Callers 1

formatters.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected