> 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/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4