MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / Spam

Class Spam

src/9/defining_decorators_as_classes/example2.py:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 return x + y
19
20class Spam:
21 @profiled
22 def bar(self, x):
23 print(self, x)
24
25if __name__ == '__main__':
26 print(add(2,3))

Callers 1

example2.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected