MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __bool__

Method __bool__

data_structures/stacks/stack.py:19–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self.limit = limit
18
19 def __bool__(self):
20 return bool(self.stack)
21
22 def __str__(self):
23 return str(self.stack)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected