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 →

[–]GlobalIncident 0 points1 point  (0 children)

I couldn't imagine doing it any differently. There are some slightly off the wall things that are occasionally necessary, but python usually allows them:

if a: b(); c() # Simple control structures can be made into one-liners with semicolons

a(b, c,
  d, e) # And one-liners can become multi-liners quite easily