macropy icon indicating copy to clipboard operation
macropy copied to clipboard

'function' object has no attribute 'decorator_list'

Open bionade24 opened this issue 4 years ago • 0 comments

When using @tco on a simple recursive function with python 3.8

import macropy.activate
from macropy.experimental.tco import macros, tco

@tco
def fact(n):
    if n == 0:
        return 1
    else:
        return n * fact(n-1)

bionade24 avatar Nov 16 '20 21:11 bionade24