Re: and one tiny question about array() ...

Guido.van.Rossum@cwi.nl
Thu, 04 Nov 1993 11:17:35 +0100

> >>> array( 'f', ( 1.0, 2.0 ))
> Stack backtrace (innermost last):
> File "<stdin>", line 1
> TypeError: array initializer must be list or string
>
> Is there a reason for this restriction, or is this another
> example of "overly pedantic typechecking run amock" ?

It was just easier to code it with a particular concrete type in mind.
I guess someday many of these restrictions will be lifted...

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>