
Oct. 19, 2011
3:40 p.m.
On Wed, 19 Oct 2011 11:36:59 -0400 "Itamar Turner-Trauring" <itamar@itamarst.org> wrote:
More generally, any place Twisted currently uses strings (i.e. byte strings, as they all are in Python 2), the default should be bytes in Python 3.x.
As I already answered, it is not as simple. Idiomatic use of bytes/unicode is not the same in 2.x as it is in 3.x.
For example: Protocol.dataReceived, transport.write, protocol constants...
Agreed. But we are talking about data decoded by a protocol here. Regards Antoine.