osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Call for prudence about PEP-572


[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.
>

[Greg Ewing]

>  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".
>

Start here:

    https://mail.python.org/pipermail/python-dev/2004-August/046711.html

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])):
    pass

;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180709/3f2fd452/attachment.html>