[Twisted-Python] understanding twisted, better error handling

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Jan 11 17:49:15 MST 2017


> On Jan 10, 2017, at 3:19 PM, steven meiers <commercials24 at yahoo.de> wrote:
> 
> Am Montag, den 09.01.2017, 23:12 -0800 schrieb Glyph Lefkowitz:
>> 
>> 
>>> On Jan 9, 2017, at 5:20 PM, steven meiers <commercials24 at yahoo.de>
>>> wrote:
>>> 
>>> the error does come up when you give agent.request a "GET" instead
>>> of a
>>> b"GET".
>> 
>> That's expected; you do have to pass the method as `bytes`, as
>> documented here: https://twistedmatrix.com/documents/16.6.0/api/twist
>> ed.web.iweb.IAgent.html#request
>> 
>> 
> True, but since python 2.x is still shipped with debian testing for
> example there will be some people running into this issue.
> Just to make twisted more approachable this could he handled.

I think that Tristan's suggestion is the best way to address this.

-glyph





More information about the Twisted-Python mailing list