Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
omaranto
on Aug 7, 2011
|
parent
|
context
|
favorite
| on:
Understanding Python Decorators
It only feels wrong because you think of them as decorators without arguments and decorators with arguments: they really are decorators stored in variables and decorators computed by function calls. :)
rbonvall
on Aug 8, 2011
[–]
That's exactly how I see it. One could have also, for example, lists of decorators,
@a[1] def f(x): ...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: