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

Jørn Lomax northlomax at gmail.com
Wed Jul 1 10:46:01 MDT 2015


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 05:33, Jørn Lomax wrote:
>
>> I'm a gsoc student working on the buildbot project, porting it to 
>> py3. Part of this is looking at porting the dependencies buildbot has 
>> in twisted and try to port them.
>>
>> twisted.spread is the most used twisted dependency, so I have started 
>> working on this. I started working on banana.py 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.
> Banana calls bytes "string". So if you're using banana there is only 
> bytes support. Python 3 vs 2 doesn't matter, it's always going to be 
> bytes.
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20150701/8d7a3157/attachment-0002.html>


More information about the Twisted-Python mailing list