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

Very large numbers become None on spacetime #71

Open
arthur00 opened this issue Aug 25, 2016 · 1 comment
Open

Very large numbers become None on spacetime #71

arthur00 opened this issue Aug 25, 2016 · 1 comment
Labels
Milestone

Comments

@arthur00
Copy link
Member

When passing a large number to an int dimension it becomes None when stored on the server. The example PCC object was:

@pcc_set
class BaseSet(object):
    @primarykey(str)
    def ID(self):
        return self._ID

    @ID.setter
    def ID(self, value):
        self._ID = value

    @dimension(int)
    def Number(self):
        return self._Number

    @Number.setter
    def Number(self, value):
        self._Number = value

    def __init__(self):
        self.ID = None
        self.Number = random.randint(1,10000000000)

This is valid on creation, when sending, and on the receiving end of Flask. But another simulation that tracks BaseSet objects will see Number == None.

I tested JSONifying it back and forth, and it doesn't seem to be the issue.

@arthur00 arthur00 added the bug label Aug 25, 2016
@arthur00
Copy link
Member Author

I confirmed that numbers above 32 bits become None without any warning. Python can handle numbers larger than that, but some library or call on the server side is destroying this data.

@arthur00 arthur00 added this to the __future__ milestone Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant