Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
rplnt
14y ago
0 comments
Save
Share
I'm not sure you can write function definitions, (nested) loops and other things that rely on indentation in single line using semicolons. At least I never managed to do that.
0 comments
1 comments · 1 top-level
top
newest
oldest
worldimperator
14y ago
You can do it with lambdas, but it's going to be absurdly ugly:
http://blog.sigfpe.com/2008/09/on-writing-python-one-liners....
j
/
k
navigate · click thread line to collapse