[Python-bugs-list] [ python-Bugs-483236 ] subclass of int
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 18 Nov 2001 18:50:19 -0800
Bugs item #483236, was opened at 2001-11-18 18:50
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=483236&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: subclass of int
Initial Comment:
a in the following example should be 220
>>> class ticks(int):
... __slots__ = ['clk']
... def __init__(self,dd):
... dd*=self.clk
... int.__init__(self,dd)
...
>>> ticks.clk=11
>>> a=ticks(20)
>>> a
20
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=483236&group_id=5470