Message976

Author johahn
Recipients
Date 2005-06-10.10:17:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
class myint(int):
   def __str__(self): return 42

Python 2.2:
>>> str(myint())
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: __str__ returned non-string (type int)

Jython 2.2a2:
>>> str(myint())
'0'

int.derived is missing and PyIntegerDerived must be 
generated. Same for other types.
History
Date User Action Args
2008-02-20 17:17:22adminlinkissue1218089 messages
2008-02-20 17:17:22admincreate