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/2018-April/152721.html below:

[Python-Dev] PEP 572: Assignment Expressions

[Python-Dev] PEP 572: Assignment Expressions [Python-Dev] PEP 572: Assignment ExpressionsPaul Moore p.f.moore at gmail.com
Tue Apr 17 09:07:28 EDT 2018
On 17 April 2018 at 14:01, David Mertz <mertz at gnosis.cx> wrote:
> Strongly agree with Nick that only simple name targets should be permitted
> (at least initially). NONE of the motivating cases use more complex targets,
> and allowing them encourages obscurity and code golf.

I also agree. Originally I would have said why not allow them, it's a
potentially useful generalisation. But Nick's examples pretty clearly
demonstrate that there are a lot of unclear edge cases involved, and
even though "prevent people writing ugly code" is explicitly stated as
a non-goal in the PEP, that doesn't mean it's OK to allow an obvious
bug magnet with no clear use cases.

Paul
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