2 ms·
> This is because Python makes it excessively easy to analyze call stack. Wrong. Pytest uses AST rewriting to inject debugging information, introspection has n
by masklinn 9y ago
> This is because Python makes it excessively easy to analyze call stack.
Wrong. Pytest uses AST rewriting to inject debugging information, introspection has not been the default mechanism for years[0], and was removed entirely in pytest 3.0 (released mid-2016).
> It may be the case for many other VM-based runtimes, like Ruby or JVM, but it's hardly feasible in Go.
Wrong again, see above, as long as you can statically inspect a function body and rewrite an assertion statement you can do what pytest does.
[0] I think rewriting was made the default as soon as it landed back in 2011 but am not actually certain