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

Method __init__

IPython/core/tests/test_oinspect.py:154–159  ·  view source on GitHub ↗
(self, max_fibbing_twig, lies_told=0)

Source from the content-addressed store, hash-verified

152 as the failure mode is to eat all your RAM. This gives up after 10k levels.
153 """
154 def __init__(self, max_fibbing_twig, lies_told=0):
155 if lies_told > 10000:
156 raise RuntimeError('Nose too long, honesty is the best policy')
157 self.max_fibbing_twig = max_fibbing_twig
158 self.lies_told = lies_told
159 max_fibbing_twig[0] = max(max_fibbing_twig[0], lies_told)
160
161 def __getattr__(self, item):
162 return SerialLiar(self.max_fibbing_twig, self.lies_told + 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected