Simon Willison on Nostr: Lazy refactoring using my symbex and llm tools to have GPT-4 do the work for me: ``` ...
Lazy refactoring using my symbex and llm tools to have GPT-4 do the work for me:
```
symbex test_homepage -f tests/test_api.py | \
llm -m 4 --system 'Change all of the == some integer tests in this code to isinstance(thing, int) instead'
```
This saved me about 15 seconds of effort this morning!
https://github.com/simonw/datasette/issues/2092#issuecomment-1613381990
```
symbex test_homepage -f tests/test_api.py | \
llm -m 4 --system 'Change all of the == some integer tests in this code to isinstance(thing, int) instead'
```
This saved me about 15 seconds of effort this morning!
https://github.com/simonw/datasette/issues/2092#issuecomment-1613381990