[Python-Dev] Prototypes [was: Proper tail recursion]

A.M. Kuchling amk at amk.ca
Fri Jul 16 16:35:02 CEST 2004


On Fri, Jul 16, 2004 at 10:14:42AM -0400, Barry Warsaw wrote:
> Couldn't you play sys._getframe() tricks inside the decorator to do
> this?

When the decorator code is running, I'll bet the function hasn't
been bound to its name yet, so the binding can't be deleted.  

--amk


More information about the Python-Dev mailing list