Re: [Twisted-Python] twistedchecker now uses pylint >= 2.4.4, can we use type annotations in Twisted now?

2020-04-22 Thread Glyph
> On Apr 21, 2020, at 8:57 PM, Craig Rodrigues wrote: > > Hi, > > Last week I did some work and updated twistedchecker > so that it uses pylint >= 2.4.4. Before that, it was using a really old > version > of pylint. > > twistedchecker is run over the Twisted code as part of CI, and reports

[Twisted-Python] Returning a response for an HTTP query that requires upstream IO.

2020-04-22 Thread Go Luhng
I'd like to develop a server that maintains a TCP connection to an upstream server, and listens for HTTP requests. Upon receiving an HTTP request, the server will send a message upstream, wait for a response, and return an HTTP response to the client which made the request. My background is in wri

Re: [Twisted-Python] Returning a response for an HTTP query that requires upstream IO.

2020-04-22 Thread Donal McMullan
This section of the documentation might be what you're looking for: https://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous.html If the tcp request to your upstream server is using some blocking (non-twisted) API, you could look into deferToThread. On Wed, 22 Apr 2020 at 17:1