[Python-3000] Making strings non-iterable

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 18 03:29:32 CEST 2006


Ian Bicking wrote:

> So I don't think
> there's any parallel to ML or other languages with character types.

If you're after parallels, there's BASIC, which also
didn't have a character type, and didn't try to pretend
that strings were arrays of anything. The equivalent
of s[i] would be mid$(s, i, 1), which is more akin to
a slice than an indexing operation.

--
Greg


More information about the Python-3000 mailing list