question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pull function scope features into file scope

See original GitHub issue

@mr-tz

add another scope program to encompass file and function (and lower) scopes

@mr-tz

Should we prioritize this feature? We have various instances from Ana’s work where this would be helpful. According to @mwilliams31 schannel is also likely implemented across multiple functions.

@williballenthin

works for me. shall we have @Ana06 tackle it? will require getting familiar with the matching logic, which is a good lesson (and maybe torture???).

@mr-tz

sounds good 😄 if it becomes too much torture, let us know, @Ana06

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mr-tzcommented, Jul 9, 2020

thanks Ana for investigating!

0reactions
williballenthincommented, Jul 8, 2020

suggesting to implement test_match_across_scopes_file_function was exactly what i had in mind. seems like we already have this feature 🤦.

i suggest we close out this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Scope & the LEGB Rule: Resolving Names in Your Code
The concept of scope rules how variables and names are looked up in your code. It determines the visibility of a variable within...
Read more >
Scope - Python Like You Mean It
The scope of a variable refers to the context in which that variable is visible/accessible to the Python interpreter. Until our work with...
Read more >
How to call a private (file scope) function from a class define in ...
In one file I define a class and a private function. I want to call this function within a method. What is the...
Read more >
Python Variable Scope with Local & Non-local Examples
Learn about Python variable scopes and the 'LEGB' rule. Follow our step-by-step tutorial and see how global and nonlocal keywords are used today!...
Read more >
An introduction to scope in JavaScript - freeCodeCamp
Function scope means that parameters and variables defined in a function are visible everywhere within the function, but are not visible ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found