[Python-bugs-list] [ python-Feature Requests-510394 ] Add base classes for numeric types
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 30 Jan 2002 14:45:41 -0800
Feature Requests item #510394, was opened at 2002-01-29 14:31
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=510394&group_id=5470
>Category: None
>Group: None
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=355470&aid=510394&group_id=5470