[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
;-)
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com