chazmeyers.com/blog


My mind is gone.

Posted in Uncategorized by chazmeyers on the April 17th, 2007

Today I decided to finally start teaching myself Python. Out of curiosity, I tried the following:

Code (python)
  1.  
  2. >>> class NoneType:
  3. …     def __str__(self):
  4. …         return ""
  5. >>> None
  6. >>> str(None)
  7. ‘None’
  8.  

Is it sick that I find these results disappointing? Has Ruby corrupted my mind?

A few years ago I would have never even thought about overriding methods of a language’s null type.