[Python-ideas] __decorate__ method

Jim Jewett jimjjewett at gmail.com
Tue Apr 20 16:13:17 CEST 2010


On 20 April 2010 03:37, Zac Burns <zac256 at gmail.com> wrote:

> Guido does say that __decorate__ should not replace __call__

> (Sidenote: Can someone explain what the backward incompatibility is?)

Note that this only means it shouldn't *replace* __call__.  Using
__decorate__ if it exists and falling  back to __call__ would be
acceptable from a backwards compatibility standpoint.  (It may be
ruled out for ugliness or complication, but not for backwards
compatibility.)

-jJ



More information about the Python-ideas mailing list