[Python-Dev] Informal educator feedback on PEP 572 (was Re: 2018 Python Language Summit coverage, last part)
greg.ewing at canterbury.ac.nz
Sun Jul 1 02:03:31 EDT 2018
Nick Coghlan wrote:
> That's a performance argument, not a readability one (as if you don't
> care about performance, you can just repeat the subexpression).
Repeated subexpressions can be a readability issue too, since you
have to examine them to notice they are actually the same. They
also provide an opportunity to make the error of not making them
the same when they should be, and add the maintenance burden
of ensuring they stay the same when changes are made.
More information about the Python-Dev