4 ms·
Some of the examples in the book violate the Zen of Python. So I wouldn't even call them pythonic or idiomatic in the first place. E.g.: `contains_zero` viola
by k_sze 9y ago
Some of the examples in the book violate the Zen of Python. So I wouldn't even call them pythonic or idiomatic in the first place.
E.g.:
`contains_zero` violates "There should be one-- and preferably only one --obvious way to do it."
`should_raise_shields` violate "Explicit is better than implicit."
`linsolve` and `contains_duplicate` violate "Readability counts."
- shangxiao 9y agoI was thinking exactly this as I was going through those examples.