[Python-Dev] Mini-Pep: Simplifying the Integral ABC

Raymond Hettinger python at rcn.com
Fri Jun 6 23:13:49 CEST 2008


From: "Guido van Rossum" <guido at python.org>
> Make that int() instead of long() and I'm okay with it.

Does anyone know why Integral says that __long__ is a required abstract method, but not __int__?

Likewise, why is index() defined as long(self) instead of int(self)?

There may be some design nuance that I'm not seeing.


Raymond


More information about the Python-Dev mailing list