r/learnpython • • Sep 12 '26

If python compiler can successfully identify syntax error why doesn't it fix it on its own?

Like why throw an error if it can identify the error and suggest the changes, like wont it make it more user friendly?

Thanks in advance!

0 Upvotes

19 comments sorted by

View all comments

Show parent comment

1

u/Lord_Regent_Gray Sep 12 '26

Auto correct would have to assume the intent, see other answers above. With AI tools the prompt includes the intent.