top | item 24699079

(no title)

Grue3 | 5 years 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.

discuss

order

eesmith|5 years ago

Sure, 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.