Hi, all.
Please tell me what the following sentence means in 'The Zen of Python'.
"Although that way may not be obvious at first unless you’re Dutch."
Thanks in advance.
Hi, all.
Please tell me what the following sentence means in 'The Zen of Python'.
"Although that way may not be obvious at first unless you’re Dutch."
Thanks in advance.
It is a reference to the fact that Python's creator, Guido van Rossum, is Dutch.
When Python was not so popular, and mostly used by scripters and IT people to avoid bash monsters, features and modules and stuff went into the language without pondering over them as much as today.
A simple example: the backtick operator was syntactic sugar for repr().
The "one obvious way to do it" was opposed to the "many ways to do it" of Perl, and the backtick is a perlism that Python has since lost.
Apart from a few small things like that, Guido has always strived to keep the language consistent, balancing between pragmatism and minimalism. It took several years of discussions in comp.lang.python before adding a ternary operator.
The sentence you quote is Tim Peter's way to suggest that people should not lobby for their favourite features, borrowing them from other languages, when Python already has its way to accomplish the same results.