Static typing in py [was Re: Some notes]

Alex Martelli aleaxit at yahoo.com
Thu Oct 14 03:42:26 EDT 2004


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).


Alex



More information about the Python-list mailing list