[Twisted-web] Athena callRemote with str()

Jean-Paul Calderone exarkun at divmod.com
Sat Jul 1 16:20:16 CDT 2006


On Sat, 01 Jul 2006 22:12:19 +0100, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
>Is the behaviour that Athena won't permit a server-side callRemote to return 
>a str() and mandates a unicode() intentional? If so, what is the rationale?

Yep.  JavaScript doesn't have a byte string type, only a character string
type.  Athena won't guess what kind of characters you want to result from
a Python str.

Jean-Paul



More information about the Twisted-web mailing list