Add methods to int?
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Wed Jun 16 13:02:45 EDT 2004
Hello,
I found this recipe at the Python cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81732
Saucily I tried to apply this to int or str, with this result:
TypeError: object does not support item assignment
Any way to go round that?
Reinhold
--
Wenn eine Linuxdistribution so wenig brauchbare Software wie Windows
mitbrächte, wäre das bedauerlich. Was bei Windows der Umfang eines
"kompletten Betriebssystems" ist, nennt man bei Linux eine Rescuedisk.
-- David Kastrup in de.comp.os.unix.linux.misc
More information about the Python-list
mailing list