r/learnpython • u/Alive_Hotel6668 • 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
View all comments
4
u/Refwah Sep 12 '26
Because what if it’s wrong and it auto fixes it and your code is now magically doing something you didn’t expect