News for hackers. Stuff that matters.
Re:Show HN: Forbidden Fruit – Patch built-in Python objects by hcarvalhoalves on Wednesday April 03, 2013 @03:19PM (#5488384)
What's the use case?
Re:Show HN: Forbidden Fruit – Patch built-in Python objects by clarete on Wednesday April 03, 2013 @03:23PM (#5488406)
I have two main use cases in my mind right now.

1) Making it easier to write tools for testing python code, like sure[0] and freezegun[1]

2) Prototyping new features for python without touching the C code.

[0] http://github.com/gabrielfalcao/sure -- where forbiddenfruit started) [1] http://github.com/spulec/freezegun

Re:Show HN: Forbidden Fruit – Patch built-in Python objects by philipbjorge on Wednesday April 03, 2013 @03:27PM (#5488429)
It's a dirty hack - therefore, fun.
Re:Show HN: Forbidden Fruit – Patch built-in Python objects by prezjordan on Wednesday April 03, 2013 @06:12PM (#5489563)
Probably for the same reason why reopening Ruby classes is used so much. "hello, world".capitalize looks nicer than capitalize("hello, world"), and it's more convenient for method chaining.