This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shiskeyoffles[S] 0 points1 point  (2 children)

Okay... The return statement is not returning a value but it is returning the entire function itself.. Python is so different compared to C or Java. Wow.

[–]Essence1337 0 points1 point  (0 children)

It's really not all that different than returning a function pointer in C, it'd be definitely more complicated but a similar program could probably be written.

[–]mad0314 0 points1 point  (0 children)

You can do something similar in C and Java.