[Python-ideas] Simpler Customization of Class Creation - PEP 487

Sven R. Kunze srkunze at mail.de
Mon Feb 15 07:53:08 EST 2016


Nice. I am glad to see movement and practical usage in that area.

Metaclasses have been a headache for a long time. We introduced them 
into our production for a short period of time just to remove them later.
As the PEP expected, ABCMeta was the issue. We will see if the proposal 
will solve that.


On 15.02.2016 09:31, Martin Teichmann wrote:
> Hi List,
>
> I thought it was a good idea to show that projects can benefit from PEP 487 out
> there in the real world. As a showcase example I chose IPython traitlets, and it
> was a nice success. With only little modifications to the traitlets code it uses
> a PEP 487 style metaclass, and all tests pass unmodified with both Python 2
> and 3. You can find the PEP 487 style IPython traitlets here:
> https://github.com/tecki/traitlets/tree/pep487
>
> Greetings
>
> Martin
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/



More information about the Python-ideas mailing list