Pleasing to see and somehow elegant. I believe .= is a good idea.
On Jan 23, 2017 14:18, <python-ideas-request@python.org> wrote:
Send Python-ideas mailing list submissions to
python-ideas@python.org
To subscribe or unsubscribe via the World Wide Web, visit
https://mail.python.org/mailman/listinfo/python-ideas
or, via email, send a message with subject or body 'help' to
python-ideas-request@python.org
You can reach the person managing the list at
python-ideas-owner@python.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-ideas digest..."
Today's Topics:
1. Re: "Immutable Builder" Pattern and Operator (Cory Benfield)
2. Re: "Immutable Builder" Pattern and Operator (Paul Moore)
3. Re: "Immutable Builder" Pattern and Operator (Serhiy Storchaka)
4. Re: "Immutable Builder" Pattern and Operator (Soni L.)
5. Re: "Immutable Builder" Pattern and Operator (M.-A. Lemburg)
----------------------------------------------------------------------
Message: 1
Date: Mon, 23 Jan 2017 09:32:02 +0000
From: Cory Benfield <cory@lukasa.co.uk>
To: "Soni L." <fakedme+py@gmail.com>
Cc: python-ideas@python.org
Subject: Re: [Python-ideas] "Immutable Builder" Pattern and Operator
Message-ID: <8671EBCA-148F-41C8-A592-46EF653B9CAE@lukasa.co.uk>
Content-Type: text/plain; charset="utf-8"
On 22 Jan 2017, at 22:45, Soni L. <fakedme+py@gmail.com> wrote:
This pattern is present in the cryptography module already with things
like their x509.CertificateBuilder: https://cryptography.io/en/
latest/x509/reference/#cryptography.x509.CertificateBuilder <
https://cryptography.io/en/latest/x509/reference/#cryptography.x509.
CertificateBuilder>.
My 2c, but I find that code perfectly readable and legible. I don?t think
a dot-equals operator would be needed.
Cory