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
Melden Sie sich an, um einen Kommentar hinzuzufügen
Andere Beiträge in dieser Gruppe
Article URL: https://rakhim.exotext.com/they-made-computers-behave-like-annoying-salesmen
Comments
Article URL: https://docs.fiveonefour.com/moose
Comments URL: https://news.ycombinat
Article URL: https://www.danvk.org/2025/04/23/boggle-solved.html
Article URL: https://kevingal.com/blog/cl-livecoding.html
Comments URL: ht

Article URL: https://github.com/robinsloan/spring-83
Comments URL: https://news