<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Oct 5, 2014, at 11:40 AM, Ram Rachum <<a href="mailto:ram@rachum.com">ram@rachum.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: ArialMT; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">Why isn't an OrderedDict a Sequence?</span></blockquote></div><br><div>Because wasn't designed that way (it doesn't have or need count(), index(), slicing, etc.  Nor is it designed in a way that makes any of those operations efficient).  </div><div><br></div><div>If you want a list, it is simple to make one:  s = list(od).</div><div><br></div><div><br></div><div>Raymond</div></body></html>