MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / push

Method push

21-async/mojifinder/bottle.py:2225–2230  ·  view source on GitHub ↗

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

(self, value=None)

Source from the content-addressed store, hash-verified

2223 return self[-1]
2224
2225 def push(self, value=None):
2226 """ Add a new :class:`Bottle` instance to the stack """
2227 if not isinstance(value, Bottle):
2228 value = Bottle()
2229 self.append(value)
2230 return value
2231
2232
2233class WSGIFileWrapper(object):

Callers 2

load_appFunction · 0.80
bottle.pyFile · 0.80

Calls 2

BottleClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected