Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterables in not parsed correct for some values of PYTHONHASHSEED #70

Open
brunsgaard opened this issue May 29, 2015 · 0 comments
Open

Comments

@brunsgaard
Copy link

Consider the following client code

from pysimplesoap.client import SoapClient
client = SoapClient(wsdl="http://127.0.0.1:8000?WSDL", trace=False)
print(client.sayHello())

And a server that uses the following handle function

def sayHello():
    return 2* ['Hello World', 'Hello World']

When running python3 you will get mixed results. Sometime the client will print {'sayHelloResult': {'string': 'Hello World'}} and some times it will print {'sayHelloResult': [{'string': 'Hello World'}, {'string': 'Hello World'}]}.

I figured out that this depend on the value of the environment variable PYTHONHASHSEED.

@brunsgaard brunsgaard changed the title iterables in not parsed correct for some values of PYTHONHASHSEED. Iterables in not parsed correct for some values of PYTHONHASHSEED. May 29, 2015
@brunsgaard brunsgaard changed the title Iterables in not parsed correct for some values of PYTHONHASHSEED. Iterables in not parsed correct for some values of PYTHONHASHSEED May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant