I'm slowly implementing some of your ideas for my own project (friendly-traceback). I noticed that you had a comment about labelled TODO_ENCLOSING which I understood to mean nonlocal scopes.
Perhaps this could be of some use to you in relation to that comment.
I do recognize that my code is not as tight/efficient as yours, as I am trying to graft something like DidYouMean-Python into a project that was not designed for it initially.
Hello,
Thanks for your suggestion! It does seem like the kind of things I should have implemented! It would definitely help me implement that missing feature.
Hi,
I'm slowly implementing some of your ideas for my own project (friendly-traceback). I noticed that you had a comment about labelled
TODO_ENCLOSING
which I understood to mean nonlocal scopes.I have implemented something that does that in my own project:
get_variables_in_frame_by_scope
ininfo_variables.py
currently found at https://github.com/aroberge/friendly-traceback/blob/master/friendly_traceback/info_variables.py#L16Perhaps this could be of some use to you in relation to that comment.
I do recognize that my code is not as tight/efficient as yours, as I am trying to graft something like DidYouMean-Python into a project that was not designed for it initially.