Re: some problems

Irmen de Jong <[email protected]> Thu, 02 Apr 2015 00:27:44 +0200
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 1-4-2015 23:26, Luca Delucchi wrote:

> 
> the answer was quiet simple, pyro4 during serialization transform
> string in unicode and the  GetDriverByName method don't like unicode

Ah, I see.

>From the readme of Serpent (Pyro's default serializer):

"All str will be promoted to unicode. This is done because it is the
default anyway for Python 3.x, and it solves the problem of the str/unicode
difference between different Python versions. Also it means the serialized
output doesn't have those problematic 'u' prefixes on strings."


Maybe it is a good idea to point this out in the Pyro docs as well.


>>
>>> I have a similar problem with another server, I pass to the object a
>>> list of strings but only the first is read by the class.
>>
>> I don't know what you mean by "only the first is read". It does sounds like a problem in
>> "the class", not with Pyro (Pyro just passes on the parameters it receives)
>>
> 
> There was a problem, instead receiving a list it got string, I don't
> know how, but now it works

Glad it works, but it is quite confusing if you report this as a problem at first
without proper description of what's going on ;-)

Irmen


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/