Iteration of strings

Terry Reedy tjreedy at udel.edu
Sat Nov 23 19:36:41 EST 2002


"Bjarke Dahl Ebert" <bebert at tiscali.dk> wrote in message
news:x0MD9.31653$HU.2395886 at news010.worldonline.dk...
> "Terry Reedy" <tjreedy at udel.edu> wrote in message
> news:faWdnQY6h6rRT0OgXTWcqw at comcast.com...
>
> > > Some function expects a list of strings,
> > Here is the root of your problem.  In a real sense, Python
functions
> > have no expectation as to type.
>
> Yes they do - the expectation is just not explicitly stated, and it
is often
> more "vague" than any simple formal type system could express.

I was trying to suggest the expection is in the mind of the writer
rather than the function itself, and that this is differenct, for
instance, from C where all inputs are more or less typed.

Terry J. Reedy





More information about the Python-list mailing list