'isa' keyword

Terry 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