Python exists to improve your productivity. The language aims to aid you as much as possible. It tries to hinder you as little as possible. It does not impose arbitrary rules or force a particular set of features.
Except that everything needs to be reified into a top-level class with a unique name, even if it's just a piece data that you pass into/return from a single function. Also whitespace matters.
I'm not sure I follow your meaning here. You can return unnamed lists, dictionaries, numbers, among others, or combinations of any of these. With some very light syntax sugar magic you can even make returning tuples look like your returning multiple values.
I'm not sure if I would call whitespace-as-syntax arbitrary, though it is opinionated. I admit though that for me it started feeling like a time saver once I got over my anti whitespace as syntax zealotry.
Comments
Except that everything needs to be reified into a top-level class with a unique name, even if it's just a piece data that you pass into/return from a single function. Also whitespace matters.
I'm not sure I follow your meaning here. You can return unnamed lists, dictionaries, numbers, among others, or combinations of any of these. With some very light syntax sugar magic you can even make returning tuples look like your returning multiple values.
I'm not sure if I would call whitespace-as-syntax arbitrary, though it is opinionated. I admit though that for me it started feeling like a time saver once I got over my anti whitespace as syntax zealotry.