MCPcopy Create free account
hub / github.com/bpython/bpython / __nonzero__

Method __nonzero__

bpython/repl.py:233–235  ·  view source on GitHub ↗

MatchesIterator is False when word hasn't been replaced yet

(self)

Source from the content-addressed store, hash-verified

231 self.end: int | None = None
232
233 def __nonzero__(self) -> bool:
234 """MatchesIterator is False when word hasn't been replaced yet"""
235 return self.index != -1
236
237 def __bool__(self) -> bool:
238 return self.index != -1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected