[Twisted-Python] twisted.internet.abstract.FileDescription.write vs unicode
bob at redivi.com
Mon Jul 12 18:55:12 EDT 2004
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,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2357 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040712/0c20c9f9/attachment.bin
More information about the Twisted-Python