My mind is gone.
Today I decided to finally start teaching myself Python. Out of curiosity, I tried the following:
Code (python)
-
-
>>> class NoneType:
-
… def __str__(self):
-
… return ""
-
…
-
>>> None
-
>>> str(None)
-
‘None’
-
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.
on September 25th, 2007 at 8:29 pm
just came across this website while searching under my name and found this site which you and I share the same number. so what’s this all about? wot kinda research/experiments are you doin’ here?