Roundup Tracker - Issues

Message6415

Author When in trouble, go to the library
Recipients When in trouble, go to the library
Date 2019-03-22.11:33:39
Message-id <1553254419.6.0.540554526428.issue2551031@roundup.psfhosted.org>
In-reply-to
TRY ADDING BRACES TO f IN ORDER TO SHOW THAT f IS THE NAME OF A
FUNCTION; EVEN THOUGH THE BRACES ARE NOT PART OF THE FUNCTION'S NAME

def print_doof():
    print('doof')

f() = print_doof


def mach_n(f,n):
    if n <= 0:
        return
    f()
    mach_n(f,n-1)
    

mach_n(f,6)

RUN MODULE

MESSAGE: SYNTAX ERROR. CAN'T ASSIGN f() = print_doof
TO FUNCTION CALL
History
Date User Action Args
2019-03-22 11:33:39When in trouble, go to the librarysetmessageid: <1553254419.6.0.540554526428.issue2551031@roundup.psfhosted.org>
2019-03-22 11:33:39When in trouble, go to the librarysetrecipients: + When in trouble, go to the library
2019-03-22 11:33:39When in trouble, go to the librarylinkissue2551031 messages
2019-03-22 11:33:39When in trouble, go to the librarycreate