[Python-ideas] Inline assignments using "given" clauses
marcidy at gmail.com
Sat May 12 04:10:31 EDT 2018
On Fri, May 11, 2018, 17:04 Tim Peters <tim.peters at gmail.com> wrote:
> [Matt Arcidy]
> >> Note Tim came up with a real metric:
> >> 2 * count(":=")/len(statement).
> >> It's objective. it's just unclear if a higher score is better or worse.
> >> However, one could say "a Tim of .3 is considered too high" as a
> [Steven D'Aprano]
> > I think Tim was making a joke about demanding objective measurements of
> > subjective things.
> > Certainly he hasn't done any research or study to justify that metric.
> > He just plucked the formula out of thin air.
> It was the outcome of an intense 17-year research project.
> > Or at least no peer reviewed research.
> Au contraire! My peers are here, and that message was reviewed by at
> least 3 people on this list.
> That said, I am a fan of objectively measuring subjective things, just
> not of taking the measurements seriously ;-)
apparently my joke was objectively not funny :-) I thought calling it a
"Tim" was sufficient.
Im not serious about actually ranking for the purposes of a PEP. I brought
it up when I felt the subjectivity was making the debate worse.
Reiterating my point, n long sub-threads about fonts, screens, etc are
ridiculous when those exist outside the pyfile. I don't know why personal
preference for a font would stop a useful tool. Hopefully those arguments
are ignored. Likewise for googlability, teachability, cross-language
similarity and familiarity. If the tool is useful, that's all that will
matter with respect to these points, they solve themselves.
I happen to be working on a ranking tool for code (not quality, just an
ordering to find entry points for new devs), so i tossed the idea in. it
seemed appropriate to remind people that the fact that not everyone uses
green to highlight "+" doesn't make "+" somehow more or less _useful_
(people -1'd just for legibility alone because of their personal feelings)
I'm not sure where people stand on usefulness, but it's clear this tool is
a pattern. No counter example of "but I can already do this" is related to
other counter examples in the way that named expressions solves all of
them, and does it succinctly regardless of chosen syntax. Some required
Obviously making these decisions with the future unknown is nearly
impossible and requires careful consideration of all points, but I don't
think Hypothetical Bill's perscription glasses should determine syntax
Best of luck with the hard parts, clearly I hope the PEP makes it.
> If people do want to take it seriously, check out prior Python art first:
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas