240
Using comments as arguments in python.
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
The
add
function in the example above probably traverses the call stack to see what line of the script is currently being executed by the interpreter, then reads in that line in the original script, parses the comment, and subs in the values in the function call.This functionality exists so when you get a traceback you can see what line of code triggered it in the error message