On Wed, Jun 1, 2016 at 12:33 PM Paul Moore <p.f.moore@gmail.com> wrote:
On 1 June 2016 at 17:14, Steven D'Aprano <steve@pearwood.info> wrote:
> We've got two dead-simple use-cases to consider.

There's almost no room for improvement in those two use cases, and yet
people still like the idea of "not repeating the name".

And some people don't!

> T = Typevar('T')
> x = sympy.Symbol('x')

In fact, I often use namedtuple with a dynamic __name__ and fields, without changing the identifier.

    Record = namedtuple(name, fields)

If I use that in half my code, but then in the other half, something like

    Record => namedtuple(fields)

That's TIMTOWTDI. I'd rather standardize.

Besides, the easy stuff is already easy. Let's focus on what's *hard* in Python. I haven't seen an explanation of how this proposal would simplify Django.