<div dir="auto"><div class="gmail_extra" dir="auto"><div class="gmail_quote">> But you'd need to decide whether you<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
want attributes (spam.x, spam.y) or items (spam["x"], spam["y"]). Both<br>
would be useful at different times.<br>
<br>
ChrisA</blockquote></div></div><div dir="auto"><br></div><div dir="auto">If something like this was ever added, it'd probably be items, then you could implement a custom __unpack__ (or whatever name it'd be) method that would return a dict.</div><div class="gmail_extra" dir="auto"></div></div>