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/2003-December/040698.html below:

[Python-Dev] Re: Int FutureWarnings and other 2.4 TODOs

[Python-Dev] Re: Int FutureWarnings and other 2.4 TODOs [Python-Dev] Re: Int FutureWarnings and other 2.4 TODOsAndrew Koenig ark-mlist at att.net
Thu Dec 4 09:12:17 EST 2003
> (It has been pointed out that subclassing int isn't very useful, so
> maybe this is a moot point.  Does anybody have a real use case?)

isinstance(x, int)

That doesn't require an inheritance relationship between the integral types,
but it does require that long inherit from int.   So int could be a base
class with long and short inheriting from it, or long could inherit from
int.


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