A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/335087.html below:

'isa' keyword

'isa' keyword 'isa' keywordTerry Hancock hancock at anansispaceworks.com
Thu Sep 1 23:50:35 EDT 2005
On Thursday 01 September 2005 07:28 am, Fuzzyman wrote:
> On 1 Sep 2005 00:52:54 -0700, "talin at acm dot org"
> <viridia at gmail.com> wrote:

> What's the difference between this and ``isinstance`` ?

Other than proposing a keyword operator instead of a function,
apparently nothing.

isinstance() even checks for subclasses, if I'm not mistaken,
so the semantics should be identical.

I must confess that an "isa" operator sounds like it would
have been slightly nicer syntax than the isinstance() built-in
function. But not enough nicer to change, IMHO.

Terry

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com


More information about the Python-list 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