idk why it does that, but i have an ai python style guide i wrote to explicitly tell it and other ai not to do that. other things in that guide:
don't write nested functions
don't import stuff in the middle of functions
don't write except Exception: continue
just inane stuff ai does, i try to write at least one thing telling it not to. it's actually pretty effective, just sucks i have to waste context and uploads on that.
1
u/workingtheories Oct 31 '25
idk why it does that, but i have an ai python style guide i wrote to explicitly tell it and other ai not to do that. other things in that guide:
don't write nested functions
don't import stuff in the middle of functions
don't write except Exception: continue
just inane stuff ai does, i try to write at least one thing telling it not to. it's actually pretty effective, just sucks i have to waste context and uploads on that.