macropy
macropy copied to clipboard
'function' object has no attribute 'decorator_list'
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)