MCPcopy Create free account
hub / github.com/pallets/flask / setdefault

Function setdefault

tests/test_basic.py:528–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526
527 @app.route("/setdefault")
528 def setdefault():
529 return flask.session.setdefault("test", "default")
530
531 @app.route("/clear")
532 def clear():

Callers

nothing calls this directly

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected