2 ms·
> why defining a function and calling it right after? Documentation.
by StavrosK 10y ago
> why defining a function and calling it right after?
Documentation.
- coldtea 10y agoYou could have named closures, so that's hardly a valid reason.
- xapata 10y agoWe prefer to have only one obvious way to do it. The more good techniques in existence, the less there's a clear sense of "Pythonic". It's just a preference. Many tasks have more than one obvious way. But if you're asking to add a new feature, you should explain why it's worth the downside of adding yet another way to do it.