3 ms·
This is only because good precedents were set by the built-in functions. Mutating functions return None, and only non-mutating functions return something non-tr
by nerdponx 8y ago
This is only because good precedents were set by the built-in functions. Mutating functions return None, and only non-mutating functions return something non-trivial. It's purely convention, but therein lies the power of the core language setting a good example.