Static typing in py [was Re: Some notes]

gabriele renzi rff_rff at remove-yahoo.it
Thu Oct 14 10:37:18 CEST 2004


Alex Martelli ha scritto:

> gabriele renzi <rff_rff at remove-yahoo.it> wrote:
>    ...
> 
>>On a related note: What is supposed to be a type in python?
> 
> 
> Since 'type' is a Python built-in, just like, say, 'int', I think the
> answer is pretty clear: "X is a type" means isinstance(X, type), just
> like "X is an int" means isinstance(X, int).
> 

doh! dumb me , thank you for pointing out :)



More information about the Python-list mailing list