New top story on Hacker News: Show HN: Localscope–Limit scope of Python functions for reproducible execution

Show HN: Localscope–Limit scope of Python functions for reproducible execution
17 by tillahoffmann | 6 comments on Hacker News.
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://ift.tt/v8izpqg ) because it requires pure functions. Thought I'd share.

Comments

Popular posts from this blog