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

to_bytes_packed() non-deterministic behavior in python3.6 #191

Open
philipkim-bc opened this issue Sep 24, 2019 · 5 comments
Open

to_bytes_packed() non-deterministic behavior in python3.6 #191

philipkim-bc opened this issue Sep 24, 2019 · 5 comments

Comments

@philipkim-bc
Copy link

In python3.6, when serializing to a bytestream using to_bytes_packed(), the resulting bytestream differs from the previous bytestream when using the exact same input.

In python2, the bytestream does not differ from the previous bytestream while using the exact same input.

This was observed by comparing the lengths of the resulting bytestreams.

Is this an intended functionality for the to_bytes_packed() method in python3.6?

@philipkim-bc philipkim-bc changed the title to_bytes_packed() non-deterministic behavior in python 3 to_bytes_packed() non-deterministic behavior in python3.6 Sep 24, 2019
@haata
Copy link
Collaborator

haata commented Jan 10, 2020

Do you have an example of what's different?

@jayvdb
Copy link
Contributor

jayvdb commented May 3, 2021

Note https://github.com/capnproto/pycapnp/blob/2e6d7be/setup.py#L232 says Python 3.6 isnt supported, and CI only builds py3.7-3.9. https://github.com/capnproto/pycapnp/blob/master/tox.ini completely disagrees.

@haata
Copy link
Collaborator

haata commented May 3, 2021

As a note, I myself haven't used tox at all with pycapnp (i.e. needs to be cleaned up).

@jayvdb
Copy link
Contributor

jayvdb commented Jun 1, 2021

I tried using py36, and the asyncio bits fail badly.
@philipkim-bc , are you able to use a later Python?

@jayvdb
Copy link
Contributor

jayvdb commented Jun 1, 2021

This looks to be the same underlying problem as #189

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

3 participants