A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-February/123923.html below:

[Python-Dev] Submitting PEP 422 (Simple class initialization hook) for pronouncement

[Python-Dev] Submitting PEP 422 (Simple class initialization hook) for pronouncement [Python-Dev] Submitting PEP 422 (Simple class initialization hook) for pronouncementSimon Cross hodgestar+pythondev at gmail.com
Sun Feb 10 14:33:10 CET 2013
On Sun, Feb 10, 2013 at 2:32 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> For those that don't recall the original discussion, the proposal is
> to add a new __init_class__ hook, invoked after the class object is
> created, but before the class decorators are applied. This provides a
> simple approach to inherited post-creation modification of classes,
> without the need for a custom metaclass.

Couldn't one just write a metaclass that calls __init_class__ for you?

Schiavo
Simon
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4