[Python-ideas] Inline assignments using "given" clauses

Steven D'Aprano steve at pearwood.info
Fri May 11 19:51:19 EDT 2018


On Fri, May 11, 2018 at 01:42:55PM -0400, Alexander Belopolsky wrote:
> On Fri, May 11, 2018 at 11:43 AM Steven D'Aprano <steve at pearwood.info>
> wrote:
> > ...
> > I agree with Jacco here. We have to name the variable twice, even if it
> > is only used once, and we have a relatively long keyword, five
> > characters, longer than average for all keywords, and only one char
> > short of the maximum.
> 
> To be fair when counting the keystrokes, you should take into account that
> the colon and the parentheses that appear in the := syntax are the upper
> register keys that counting the shift require two keystrokes each.

That's a good point, but also to be fair, I didn't mention keystrokes, 
only characters :-)


-- 
Steve


More information about the Python-ideas mailing list