[Python-Dev] [Python-checkins] peps: PEP 422 rewrite to present an idea that a) isn't crazy and b) it turns out

Eric Snow ericsnowcurrently at gmail.com
Thu Jun 7 00:07:08 CEST 2012


On Wed, Jun 6, 2012 at 5:40 AM, nick.coghlan <python-checkins at python.org> wrote:
> +
> +Alternatives
> +============
> +

Would it be worth also (briefly) rehashing why the class instance
couldn't be created before the class body is executed*?  It might seem
like a viable alternative if you haven't looked at how classes get
created.

-eric


* i.e. meta.__new__() would have to be called before the class body is
executed for the class to exist during that execution.  Perhaps in an
alternate universe classes get created like modules do...


More information about the Python-Dev mailing list