Message17

Author bckfnn
Recipients
Date 2000-11-18.18:51:49
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
A ClassCastException is thrown by the script below.

-------------- FILE: test118.py --------------
IntegerType = type(1)
class SpecialInt (IntegerType):
    def __init__(self, n):  IntegerType.__init__(self, n)
    def double(self):  return self*2

si = SpecialInt(12)
print si
print si + 1
print si + si
print 3 + si
-------------- END --------------
History
Date User Action Args
2008-02-20 17:16:37adminlinkissue222790 messages
2008-02-20 17:16:37admincreate