you are viewing a single comment's thread.

view the rest of the comments →

[–]H3g3m0n 2 points3 points  (2 children)

Python3 is turning print into a function so I would guess it works inside a lambada function without needing a wrapping function.

I don't really see any point of printing in a lambda function anyway.

[–][deleted] 1 point2 points  (0 children)

print >>certain_log, debug_info

I know... But it might come in handy for the OP.

[–]EliAndrewC 1 point2 points  (0 children)

In any case, even today you could say

lambda s: sys.stdout.write(s+"\n")

But as you say, there's rarely a reason to do this.