MCPcopy
hub / github.com/fluentpython/example-code-2e / __init__

Method __init__

21-async/mojifinder/bottle.py:2088–2093  ·  view source on GitHub ↗
(self, *a, **ka)

Source from the content-addressed store, hash-verified

2086 return self
2087
2088 def __init__(self, *a, **ka):
2089 self._meta = {}
2090 self._on_change = lambda name, value: None
2091 if a or ka:
2092 depr('Constructor does no longer accept parameters.') #0.12
2093 self.update(*a, **ka)
2094
2095 def load_config(self, filename):
2096 ''' Load values from an *.ini style config file.

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
deprFunction · 0.85

Tested by

no test coverage detected