Closed Wilfred closed 6 years ago
It say "Callbacks that take an event argument:" - I could repeat that I guess ... propose better wording?
Hunter is not designed to trace individual functions, rather it's an advanced toolkit for users to write their own tracers.
This produces the exception:
The correct usage is probably
hunter.trace(function=fibs)
(which executesfibs
but does not print any tracing information orhunter.trace(function='fibs')
(which traces as I'd expect).I thought I could pass a function because these docs: https://python-hunter.readthedocs.io/en/latest/introduction.html#the-trace-function suggest that I can pass any function. I am probably misunderstanding that paragraph.