7 ms·
The fact that you can overwrite built-in functions is not a point in favor of the language. Imagine you do this in a library and everyone using print() in their
by Grue3 6y ago
The fact that you can overwrite built-in functions is not a point in favor of the language. Imagine you do this in a library and everyone using print() in their project would use a modified print instead. You could've just modified sys.stdout instead.
- eesmith 6y agoSure, but I never said I was doing this in library code. I mentioned I was using it to track down an unexpected print statement. And the other example was in module scope.