[Twisted-Python] Re: twisted.internet.abstract.FileDescription.write vs unicode

Michael Hudson mwh at python.net
Tue Jul 13 09:30:01 EDT 2004

Bob Ippolito <bob at redivi.com> writes:

> On Jul 12, 2004, at 6:30 PM, Jeff Bowden wrote:
>> Is there a good reason for
>> twisted.internet.abstract.FileDescription.write to require
>> isinstance(data, str) rather than also allowing isinstance(type,
>> unicode)??
> Yeah, unicode doesn't have a designated wire format and Python's
> default encoding choice is generally VERY stupid (usually ascii or
> latin-1) which leads to hard to detect bugs.

Pff, Python's choice is very wimpy which means that bugs bite you
earlier.  The real problem is the double-duty thing others alluded to;
there's no way changing the default encoding can make this go away.


  same software, different verbosity settings (this one goes to
  eleven)                             -- the effbot on the martellibot

More information about the Twisted-Python mailing list