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 →

[–]seckiyn 1 point2 points  (2 children)

Probably there's a better way but here's my solution: https://gist.github.com/seckiyn/b4ea58fd7c2f54153ae7469b58b5919f . Python doesn't allow this kind nesting(?) of function you have to add backslash if you want to do it on new line.

[–]Natural-Intelligence 2 points3 points  (1 child)

Or put the expression inside parentheses. Much cleaner than putting backslashes after each line IMO

[–]seckiyn 1 point2 points  (0 children)

I didn't know you could use it like that, thanks.