3 ms·
From the zen of python: ‘Explicit is better than implicit.’
by joshdavham 2y ago
From the zen of python: ‘Explicit is better than implicit.’
- ranger_danger 2y agoduck typing has entered the room
- bigstrat2003 2y agoAlso treating non-boolean objects with a boolean meaning. Python is fine and all, but the Zen of Python has always been a joke that the language doesn't bother to follow.
- zahlman 2y agoIt's called "the Zen of Python", and not e.g. "the laws of Python", for a reason. Not everyone is, as Tim Peters put it, Dutch. (Although I should also say: PEP 20 reflects a 20-year-old understanding of Python's design paradigm and of the lessons learned from developing it, and Tim Peters was highly deferential to Guido van Rossum when publishing it. In fact, GvR was invited to add the supposedly missing 20th principle, but never did - IMHO, this refusal is very much in the Zen spirit. Anyway, the language - and standard library - have changed a lot since then.)
- joshdavham 2y ago> It's called "the Zen of Python", and not e.g. "the laws of Python" Agreed. The pythonic zen is an ideal not always attained.