GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing mail.python.org — [Python-Dev] Issues with PEP 526 Variable Notation at the class level [Python-Dev] Issues with PEP 526 Variable Notation at the class levelGuido van Rossum gvanrossum at gmail.comSun Dec 10 16:24:26 EST 2017
OTOH daytaclass is a decorator for *better* metaclass compatibility. On Dec 10, 2017 13:17, "Antoine Pitrou" <solipsis at pitrou.net> wrote: > On Sun, 10 Dec 2017 20:47:45 +0100 > Antoine Pitrou <solipsis at pitrou.net> wrote: > > > Hi, > > > > On Sun, 10 Dec 2017 19:17:25 +0000 > > Tin Tvrtković <tinchester at gmail.com> wrote: > > > Hello, > > > > > > I'm one of the attrs contributors, and the person who initially wrote > the > > > slots functionality there. > > > > > > We've given up on returning a new class always since this can conflict > with > > > certain metaclasses (have you noticed you can't make a slots attrs > class > > > inheriting from Generic[T]?) and with PEP 487. I think with PEP 487 > it's > > > becoming especially evident class creation is not necessarily an > idempotent > > > operation. > > > > Hmm... I understand you may be restricted by backwards compatibility > > here. But dataclasses don't have that issue, so we could decide we're > > incompatible with certain dataclasses from day 1. > > Sorry... make that "incompatible with certain metaclasses" ;-) > > Regards > > Antoine. > > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: https://mail.python.org/mailman/options/python-dev/ > guido%40python.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171210/873cb5c8/attachment.html>
More information about the Python-Dev mailing list |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |