Re: [Python-Dev] What is the design purpose of metaclasses vs code generating decorators? (was Re: PEP 557: Data Classes)

2017年10月14日 09:01:15 -0700

On 14 October 2017 at 17:49, Ethan Furman <[email protected]> wrote:
> The problem with PEP 560 is that it doesn't allow the class definition
> protections that a metaclass does.
>
Since the discussion turned to PEP 560, I can say that I don't want this to
be a general mechanism, the PEP rationale section gives
several specific examples why we don't want metaclasses to implement
generic class machinery/internals.
Could you please elaborate more what is wrong with PEP 560 and what do you
mean by "class definition protections"
--
Ivan
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to