[Python-bugs-list] [ python-Bugs-510394 ] Add base classes for numeric types

noreply@sourceforge.net noreply@sourceforge.net
Tue, 29 Jan 2002 14:31:32 -0800


Bugs item #510394, was opened at 2002-01-29 14:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=510394&group_id=5470

Category: Python Interpreter Core
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add base classes for numeric types

Initial Comment:
Create a class hierarchy for numeric types (similar to 
the structure for exceptions) so that the following 
work:

issubclass(int,numeric)==1
issubclass(int,real)==1
issubclass(complex,real)==0
isinstance( 3.14, real ) == 1


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=510394&group_id=5470