A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047766.html below:

[Python-Dev] Unifying Long Integers and Integers: baseint

[Python-Dev] Unifying Long Integers and Integers: baseint [Python-Dev] Unifying Long Integers and Integers: baseintGuido van Rossum guido at python.org
Fri Aug 13 04:35:24 CEST 2004
> Guido:
> 
> > > if the only reason for it is to use isinstance?
> > 
> > So that an extension author *could* write an int-like type deriving
> > from it?
> 
> But didn't you just say that people shouldn't be
> deriving their own int-like types from baseinteger?

Indeed, in general they shouldn't.  But for specialized purposes it
might be needed (that's why I emphasized *could*).

Unfortunately, for the purpose of having one's ersatz integers
accepted as the real thing by the Python core, you pretty much have to
inherit from int.

So my only reason to make baseinteger a class rather than a tuple is
consistency with basestring.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list

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