In many discussions I have heard about Ruby in which people have expressed their reservations about the language, the issue of monkey patching comes up as one of their primary c
Actually in Python it's a bit harder to modify basic types.
For example imagine, that you redefine integer.
Ruby:
class Fixnum def *(n) 5 end end
Now 2*2 yields 5.
Python:
>>> class int(int): def __mul__(self, x): return 5 >>> 2*2 4 >>> int(2)*int(2) 5