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
Accedi per aggiungere un commento
Altri post in questo gruppo

Article URL: https://github.com/habedi/hann
Comments URL: https://news.ycombinator.com/i

Article URL: https://github.com/facebookresearch/vggt
Comments URL: https://ne
Article URL: https://utcc.utoronto.ca/~cks/space/blog/sysadmin/RunMoreExtraNetworkFiber
Comments URL

Article URL: https://beej.us/guide/bgc/pdf/bgc_a4_c_1.pdf
Comments URL: ht
Article URL: https://danilafe.com/blog/chapel_x_macros/
Comments URL: https: