Type/Class Distinction

Martijn Faassen m.faassen at vet.uu.nl
Mon Jun 18 14:02:40 EDT 2001


Michael Hudson <mwh at python.net> wrote:
> m.faassen at vet.uu.nl (Martijn Faassen) writes:

[snip]
>> > You're behind the times, I think (if I understand you correctly):
>> 
>> So I am! I wasn't aware this was the case. Does not seem to be mentioned in
>> Andrew Kuchling's 'What's new in Python 2.1'. 

> Well, that would be because it wasn't "new in Python 2.1"; 

>    >>> import types
>    >>> isinstance(1, types.IntType)
>    1

> works in 1.5.2 (the oldest version I have lying around).

Duh. (hits himself in the head) :)

Shows you how often I use 'isinstance()'!

I'll-go-back-to-*deliberately*-silly-posts-now-ly yours,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?



More information about the Python-list mailing list