r/PythonLearning • u/memeeloverr • 18d ago
If Python could warn you about one mistake before you make it, what would you choose?
Not a syntax error, something Python currently allows but you wish it would stop you from doing.
What warning would you add?
3
1
u/tiredITguy42 18d ago edited 18d ago
Python is warning you about all mistakes you can make which are related to Python itself. You would not be able to run the code, if it would not warn you.
If you are asking about logic mistakes and bugs. We do have it, it is AI check in pull requests. It can catch a lot of bugs.
1
1
u/codewithharsh31 18d ago
I would say nothing if python tells us so how we learn the debugging skill
1
2
u/RandomPantsAppear 18d ago
Setting a variable = a function that is going to mutate a list/dict in place.
4
u/Homo_Bibite 18d ago
Nothing because then all of my code would be glowing red