[Python-Dev] Why aren't decorators just expressions?
Éric Araujo
merwok at netwok.org
Mon Sep 18 11:33:48 EDT 2017
Hello,
Le 2017-09-16 à 07:22, Serhiy Storchaka a écrit :
> 16.09.17 12:39, Larry Hastings пише:
>> So why don't decorators allow arbitrary expressions? [...]
>
> Actually I remember somebody raised this question a year or two ago,> but don't remember details.
The discussion I remember was https://bugs.python.org/issue19660
Guido said: «Nobody has posted a real use case. All the examples are
toys. What are the real use cases that are blocked by this? Readability
counts!»
Cheers
More information about the Python-Dev
mailing list