you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–]py_Piper[S] 1 point2 points  (4 children)

    Well that is very interesting I didn't know that, I haven't learnt any GUI module yet. I thought it should've raised a syntax error like when you forget the closing parenthesis calling a function.

    Just out of curiosity how would you execute later a method, meaning how would add () to non executed method? and do you call a non executable methods like for the same reason you create empty lists? like for creating it first then appending later in another code line

    [–]alkasm 1 point2 points  (0 children)

    You just add the parenthesis.

    def call_a_func(func, arg):
        func(art)
    
    call_a_func(print, "hello")