Hacker News new | past | comments | ask | show | jobs | submit login

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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: