MCPcopy Create free account
hub / github.com/SolSaviour/INFO1112-Materials / push

Method push

Week 6/server.py:2600–2605  ·  view source on GitHub ↗

Add a new :class:`Bottle` instance to the stack

(self, value=None)

Source from the content-addressed store, hash-verified

2598 return self.default
2599
2600 def push(self, value=None):
2601 """ Add a new :class:`Bottle` instance to the stack """
2602 if not isinstance(value, Bottle):
2603 value = Bottle()
2604 self.append(value)
2605 return value
2606 new_app = push
2607
2608 @property

Callers 3

defaultMethod · 0.95
__enter__Method · 0.80
load_appFunction · 0.80

Calls 2

BottleClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected