Re: [Twisted-Python] Porting twisted.spread.banana to py3

2015-07-03 Thread Jørn Lomax
sys.maxint * long(2), sys.maxint * long(-2)] regards, Jørn lomax On 02.07.2015 21:21, Glyph Lefkowitz wrote: On Jul 2, 2015, at 11:12 AM, Glyph <mailto:gl...@twistedmatrix.com>> wrote: On Jul 2, 2015, at 6:13 AM, Itamar Turner-Trauring mailto:ita...@itamarst.org>> wrote:

Re: [Twisted-Python] Porting twisted.spread.banana to py3

2015-07-01 Thread Jørn Lomax
Thank you very much. That is the exact answer I wanted :) I'm guessing maybe the tests need updating, because they seem to send use unicode data, which of course didn't make any difference in py2, but now it does. On 01.07.2015 18:40, Itamar Turner-Trauring wrote: On 2015-07-01 0

[Twisted-Python] Porting twisted.spread.banana to py3

2015-07-01 Thread Jørn Lomax
and I have encountered a question. In dataRecieved (banana.py:174). A chunk is added to the buffer. On python3, how should the distinction be made between string and bytes. Buffer seems to be a string, the chunk seems to be bytes, and sometimes opposite. Any help would be appreciated regards,