(self, max_fibbing_twig, lies_told=0)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected