Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog is over 9000

Name: Anonymous 2006-12-05 5:08

>>> class intex(int):
...     __str__ = lambda self: self > 9000 and 'ITS OVER NINE THOUSAAAAAAAAAAAND!!!' or str(int(self))
...
>>> i = intex(5)
>>> print i
5
>>> i = intex(50000)
>>> print i
ITS OVER NINE THOUSAAAAAAAAAAAND!!!

Name: Anonymous 2006-12-05 5:46 (sage)

ITS OVER __NINE__(self) str(THOUSAAAAAAAAAAAND)!!!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List