<div dir="ltr"><div class="gmail_quote"><div dir="ltr">[Eric V. Smith]<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> there is at least one place </blockquote></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> where the grammar does forbid you from doing something that would <br>
> otherwise make be allowable: decorators.<br></blockquote><div><br><div class="gmail_quote"><div dir="ltr" style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">[Greg Ewing]</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> And that was a controversial issue at the time. I don't remember</blockquote></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
there being much of an objective argument for the restriction --<br>
it was more or less a matter of "Guido wanted it that way".<br></blockquote><div><br>Start here:<br><br>    <a href="https://mail.python.org/pipermail/python-dev/2004-August/046711.html">https://mail.python.org/pipermail/python-dev/2004-August/046711.html</a> </div><br>My favorite in that thread was Michael Hudson vigorously arguing what a sad loss it would be if Python hadn't allowed<br><pre style="color:rgb(0,0,0);text-decoration-style:initial;text-decoration-color:initial">class C(random.choice([dict, list])):
    pass</pre>

;-)<br><br></div></div>