3 ms·
requests is “clean enough” if you only use the highest level functionalities like making stateless requests and read out the response. I wouldn’t say it fits th
by uranusjr 6y ago
requests is “clean enough” if you only use the highest level functionalities like making stateless requests and read out the response. I wouldn’t say it fits the description once you go past that.
Zen of Python is an illusion. Complex things are complex, there’s simply no way to have an interface that’s always clean, useful, and maintainable.
- j88439h84 6y agoThese are about priorities, not about achieving perfection. It is easy to distinguish different pieces of software on these dimensions. For example: "Beautiful is better than ugly." Requests is more beautiful than urllib2. "Simple is better than complex." Trio is simpler than asyncio. "Readability counts." Python is more readable than C++. "There should be one-- and preferably only one --obvious way to do it." ''.join(strings), not sum(strings, ''). Note what isn't in the Zen of Python: performance, close-to-the-metal-ness, correctness, portability. Python often fails to live up to its values, but that doesn't make them meaningless.