laike9m

Results 137 comments of laike9m

## Important: recaping the problem TL;DR: In most case, loops in Cyberbrain still work for Python 3.10. This only issue is with while + walrus operator (see https://github.com/laike9m/Cyberbrain/issues/139#issuecomment-1003817059). Fixing the...

There is a special case with walrus operator ```python from cyberbrain import trace @trace def run_while(): i = 0 while (i:= i+1) < 3: a = i run_while() ``` https://godbolt.org/z/sx1d8595e...

Tried to use the decrease of lineno to determine whether there's a jump back. Turns out this is not reliable either. A counter example would be: ```python >>> import argparse...

This issue shouldn't be too hard to fix. We need to modify the [`map_bytecode_offset_to_lineno`](https://github.com/laike9m/Cyberbrain/blob/master/cyberbrain/utils.py#:~:text=map_bytecode_offset_to_lineno) function. We can either record a start and end lineno, or use a range to represent...

For the specific case above, the lineno is correct for Python 3.8 and 3.9.

Can we conclude this bug as fixed? If not, what are the cases left to be fixed?

Could you clarify what "freeze" means, I assume you mean like what IDEs do?

I'm not against it, but does it mean we don't allow users to zoom in on a graph? If we can still keep all the capabilities then this feels like...

I see. You might want to put two screenshots in the main thread to show the issue.

Since every test method has a `check_golden_file`, is it possible to remove it from the method definition and enable it by default?