Is it possible to have a Listener server process and a Client process where one of them uses a python interpreter and the other a pypy interpreter?
Would conn.send() and conn.recv() interoperate well?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I tried it out to see:
Here are the results I got:
When using PyPy 1.7 (doesn’t matter which is the server and which is the client), an error is reported with
IOError: bad message length. This also mirrors the report on the pypy-dev mailing list. However, this was recently fixed (it works in nightly build), so the next version (presumably 1.8) should have it fixed as well.In general, this works because the multiprocessing module uses Python’s pickle module, which is stable and supported across multiple Python implementations, even PyPy.