<div dir="ltr"><div class="gmail_quote">On Mon, Apr 26, 2010 at 11:13 PM, Xavier Ho <span dir="ltr"><<a href="mailto:contact@xavierho.com">contact@xavierho.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Apr 27, 2010 at 7:10 AM, cool-RR <span dir="ltr"><<a href="mailto:cool-rr@cool-rr.com" target="_blank">cool-rr@cool-rr.com</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div dir="ltr">Just something small that I thought of, and I haven't thought about this deeply at all, so maybe this is way wrong. But: What about adding a `Reversable` next to all the `Iterable` and `Container` and stuff?<br>


</div></blockquote></div><div><br>You mean there is something Iterable we can't reverse by doing [::-1] or calling reversed() ? This idea feels a bit too general to be useful. Any rationales?<br><br>Cheers,<br>Xav<br>
</div>

</div>
</blockquote></div><br>As far as I know, iterables are generally not reversable. Try defining a simple iterator, like a class with just an `__iter__` function, and run `reversed` on it. You get `TypeError: argument to reversed() must be a sequence`. (Which by the way is a bad error message.)<div>
<br></div><div>Am I missing something?</div><div><br></div><div>Ram.</div></div>