[Python-ideas] JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects)

Guido van Rossum guido at python.org
Mon May 15 12:22:17 EDT 2017


I expect that we will need someone with a really good sensibility for
Pythonic language/API design to lead the PEP writing.

On Mon, May 15, 2017 at 9:03 AM, אלעזר <elazarg at gmail.com> wrote:

> On Mon, May 15, 2017 at 6:30 PM Guido van Rossum <guido at python.org> wrote:
> > This should be worked into a PEP, instead of living on as a bunch of
> python-ideas posts and blogs.
>  ...
> > Will someone please write a PEP?
>
> If by "this" you mean adding to stdlib something like
>
> @record
> class Point:
>     x: int
>     y: int
>
> or something along the lines of my "modifiers" proposal (
> https://mail.python.org/pipermail//python-ideas/2016-September/042360.html),
> then I think I would like to help writing such a PEP. But I thought these
> proposals were rejected.
>
> Elazar
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170515/3de10e38/attachment.html>


More information about the Python-ideas mailing list