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@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python