<div dir="auto">OTOH daytaclass is a decorator for *better* metaclass compatibility.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 10, 2017 13:17, "Antoine Pitrou" <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 10 Dec 2017 20:47:45 +0100<br>
Antoine Pitrou <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> On Sun, 10 Dec 2017 19:17:25 +0000<br>
> Tin Tvrtković <<a href="mailto:tinchester@gmail.com">tinchester@gmail.com</a>> wrote:<br>
> > Hello,<br>
> ><br>
> > I'm one of the attrs contributors, and the person who initially wrote the<br>
> > slots functionality there.<br>
> ><br>
> > We've given up on returning a new class always since this can conflict with<br>
> > certain metaclasses (have you noticed you can't make a slots attrs class<br>
> > inheriting from Generic[T]?) and with PEP 487. I think with PEP 487 it's<br>
> > becoming especially evident class creation is not necessarily an idempotent<br>
> > operation.<br>
><br>
> Hmm... I understand you may be restricted by backwards compatibility<br>
> here. But dataclasses don't have that issue, so we could decide we're<br>
> incompatible with certain dataclasses from day 1.<br>
<br>
Sorry... make that "incompatible with certain metaclasses" ;-)<br>
<br>
Regards<br>
<br>
Antoine.<br>
<br>
<br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/options/python-dev/<wbr>guido%40python.org</a><br>
</blockquote></div></div>