localscope is a small Python package that disassembles functions to check if they access global variables they shouldn't. I wrote this a few years ago to detect scope bugs which are common in Jupyter notebooks. It's recently come in handy writing jax code (https://github.com/jax-ml/jax) because it requires pure functions. Thought I'd share.
Comments URL: https://news.ycombinator.com/item?id=43390823
Points: 9
# Comments: 1
Created
4mo
|
Mar 17, 2025, 5:50:23 PM
Login to add comment
Other posts in this group


Article URL: https://git.madhouse-project.org/iocaine/iocaine
Article URL: https://ccrma.stanford.edu/~jos/filters/
Comments URL: https://ne
Article URL: https://aaib.gov.in/What%27s%20New%20Assets/Preliminary%20Report%20VT-ANB.pdf
Commen