DidYouMean-Python icon indicating copy to clipboard operation
DidYouMean-Python copied to clipboard

About TODO_ENCLOSING

Open aroberge opened this issue 5 years ago • 1 comments

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 in info_variables.py currently found at https://github.com/aroberge/friendly-traceback/blob/master/friendly_traceback/info_variables.py#L16

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.

aroberge avatar Nov 02 '20 00:11 aroberge

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.

SylvainDe avatar Nov 02 '20 08:11 SylvainDe