Matz on Python OO
On his journal, Matz has illustrated some differences between Ruby classes and Python classes, running some examples through the Python interpreter. He largely dwells on the syntax for retrieving a method list for an integer type. I think he’s awfully proud of Ruby’s elegance in this matter, which is cool with me.
>>> (1).__class__.__dict__.keys() ['__int__', '__ror__', '__rtruediv__', ... ]
>> 1.methods => ["%", "between?", "method", "send", ... ]This just a few days after he mentioned using the encoding pragma from Python’s PEP 263 in a future release of Ruby.