<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 18, 2017 at 3:18 PM, Greg Ewing <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">Ethan Furman wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I certainly don't expect the signature to change, but why is using a metaclass out?  The use (or not) of a metaclass /is/ an implementation detail.<br>
</blockquote>
<br></span>
For me, the main benefit of using a metaclass would be that<br>
it enables using normal class declaration syntax to define a<br>
namedtuple. That's not just an implementation detail!<span class="gmail-HOEnZb"><font color="#888888"></font></span></blockquote><div><br></div><div>Newer versions of the typing module do this: <a href="https://docs.python.org/3/library/typing.html#typing.NamedTuple">https://docs.python.org/3/library/typing.html#typing.NamedTuple</a> (and indeed it's done with a metaclass).<br></div></div><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/%7Eguido" target="_blank">python.org/~guido</a>)</div>
</div></div>