Skip to content

Pynac hashes are restricted to 32 bits #19310

@jdemeyer

Description

@jdemeyer

src/sage/symbolic/expression.pyx claims

        The hash of an object in Python or its coerced version into
        the symbolic ring is the same::

This is unfortunately not true since Pynac uses the 32-bit unsigned data type for hashes:

sage: hash(ZZ(2^32))
4294967296
sage: hash(SR(2^32))
0

See also pynac/pynac#95

Upstream: Fixed upstream, in a later stable release.

CC: @rwst

Component: packages: standard

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/19310

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions