[Python-Dev] Call for prudence about PEP-572
tim.peters at gmail.com
Mon Jul 9 01:54:48 EDT 2018
[Eric V. Smith]
> > there is at least one place
> where the grammar does forbid you from doing something that would
> > otherwise make be allowable: decorators.
> And that was a controversial issue at the time. I don't remember
there being much of an objective argument for the restriction --
> it was more or less a matter of "Guido wanted it that way".
My favorite in that thread was Michael Hudson vigorously arguing what a sad
loss it would be if Python hadn't allowed
class C(random.choice([dict, list])):
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev