<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Stop - please for all of mankind - stop this thread…<div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>---<br><br>Steven Klass<br><br>(480) 225-1112<br><a href="mailto:sklass@pointcircle.com">sklass@pointcircle.com</a></div></span>
</div>
<br><div><div>On Sep 12, 2011, at 2:26 PM, Terry Reedy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 9/12/2011 2:05 AM,<br><a href="mailto:mike.w.meyer@gmail.com">mike.w.meyer@gmail.com</a> wrote:<br><blockquote type="cite">Ok, how about enhancing the list type to allow specifying an offset,<br></blockquote><br>Because then every list index/slice access would require more time to subtract the offset.<br><br><blockquote type="cite">defaulting to 0? The offset should be positive, and that many<br></blockquote><blockquote type="cite">elements simple aren't there. Asking for an element that isn't there,<br></blockquote><blockquote type="cite">or a slice including such an element, raises value error exception.<br></blockquote><br>Slicing never raises a ValueError. In particular, seq[0:1] always returns a sequence with 1 or 0 items. This is an important feature.<br><br><blockquote type="cite">The iterators&  etc for this list would all start at offset instead<br></blockquote><blockquote type="cite">of zero.<br></blockquote><br>Write a list subclass. Decide how you would handle indexing from the right (currently all negative indexes) and implement that.<br><br>-- <br>Terry Jan Reedy<br><br>_______________________________________________<br>Python-ideas mailing list<br><a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>http://mail.python.org/mailman/listinfo/python-ideas<br></div></blockquote></div><br></div></body></html>