<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Oh one last thing (I hope), the argument for having the current
slice notation by Dijkstra, that it looks messy to have a loop
where the contents are never executed or can no longer be executed
is ridiculous! That *should* look messy. for range(1,1): means
executing once to me. If you had 1 based, two of four of the other
idioms would work the same:</p>
<div><font face="monospace, monospace">s[:n] + s[n:] == s //
doesn't work. I don't think it should work though<br>
</font></div>
<div><font face="monospace, monospace">len(s[:n]) == n //
works<br>
</font></div>
<div><font face="monospace, monospace">len(s[:-n]) == n //
rather independent but would still work if language is otherwise
unchanged.<br>
</font></div>
<div><font face="monospace, monospace">len(s[n:i]) == i - n //
doesn't work. Does it need to?<br>
<br>
Rgds<br>
</font></div>
</body>
</html>