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

אלעזר elazarg at gmail.com
Mon May 15 12:03:13 EDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170515/d45e4da7/attachment.html>


More information about the Python-ideas mailing list