[Twisted-Python] Twisted for Python 3

Antoine Pitrou solipsis at pitrou.net
Wed Oct 19 11:40:44 EDT 2011

On Wed, 19 Oct 2011 11:36:59 -0400
"Itamar Turner-Trauring" <itamar at 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.



More information about the Twisted-Python mailing list