all AI news
snoop
Jan. 31, 2024, 6:19 p.m. |
Simon Willison's Weblog simonwillison.net
Neat Python debugging utility by Alex Hall: snoop lets you "import snoop" and then add "@snoop" as a decorator to any function, which causes that function's source code to be output directly to the console with details of any variable state changes that occur while it's running.
I didn't know you could make a Python module callable like that - turns out it's running "sys.modules['snoop'] = snoop" in the __init__.py module!
alex code debugging function import python running state utility
More from simonwillison.net / Simon Willison's Weblog
I'm writing a new vector search SQLite Extension
1 day, 5 hours ago |
simonwillison.net
Printing music with CSS Grid
1 day, 18 hours ago |
simonwillison.net
We can have a different web
2 days, 6 hours ago |
simonwillison.net
Introducing the Claude Team plan and iOS app
2 days, 16 hours ago |
simonwillison.net
Jobs in AI, ML, Big Data
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne