[Python-Dev] Unifying Long Integers and Integers: baseint (original) (raw)
Guido van Rossum guido at python.org
Mon Aug 9 17:47:10 CEST 2004
- Previous message: [Python-Dev] Unifying Long Integers and Integers: baseint
- Next message: [Python-Dev] decimal.Context.copy() shallow or deep?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there a plan for implementing a base class for int and long (like basestring for str and unicode):
>>> issubclass(int, baseint) and issubclass(long, baseint) True ?
I think this would be a good idea; maybe the name should be baseinteger?
I think it's been suggested before, and can't remember why it wasn't implemented -- perhaps the use cases aren't as compelling as for basestring?
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Unifying Long Integers and Integers: baseint
- Next message: [Python-Dev] decimal.Context.copy() shallow or deep?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]