[Python-Dev] Please reconsider PEP 479.

Chris Angelico rosuav at gmail.com
Thu Nov 27 02:12:41 CET 2014


On Thu, Nov 27, 2014 at 12:11 PM, Guido van Rossum <guido at python.org> wrote:
> A decorator with a side effect *elsewhere* (like the route registrations) is
> acceptable; one with a side effect *on the decorated function* is
> questionable, and instead the decorator should behave "functionally", i.e.
> return a new object instead.

Okay! I learn something new every day. :) Did not know that... so it's
a good thing I don't write decorators. I withdraw the suggestion.

ChrisA


More information about the Python-Dev mailing list