News for hackers. Stuff that matters.
Re:Waiting in Asyncio by hedora on Friday May 22, 2020 @09:58PM (#23279142)
Can you give a practical example of a library or python subsystem that lives up to the “Zen of python” you are referring to?
Re:Waiting in Asyncio by j88439h84 on Saturday May 23, 2020 @12:09AM (#23279832)
There are lots. `requests` is the most famous.
Re:Waiting in Asyncio by uranusjr on Saturday May 23, 2020 @08:37PM (#23288020)
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.

Re:Waiting in Asyncio by j88439h84 on Saturday May 23, 2020 @10:10PM (#23288496)
These 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.