Httplib2 on twisted way?

Use twisted.web.client.Agent().request() It will return a Deferred See the Agent howto for more details and examples.

Use twisted.web.client.Agent().request(). It will return a Deferred. See the Agent howto for more details and examples.

Those are obviously easier to code on than Twisted due to their blocking nature, but I think this is a drawback when integrating them with other code, especially GUI one. If you want scalability, concurrency or GUI integration while avoiding multithreading, Twisted is then a natural choice. Should new networking code (with the exception of small command line tools) be written with Twisted?

Would you mix Twisted, http2lib or socket code in the same project? Is Twisted pythonic for most libraries (it is more complex than alternatives, introduce a dependency to a non-standard package...)? Edit: please let me phrase this in another way.

Do you feel writing new library code with Twisted may add a barrier to its adoption? Twisted has obvious benefits (especially portability and scalability as stated by gimel), but the fact that it is not a core python library may be considered by some as a drawback.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions