Skip to content

uint64 hash function bug (Trac #1449) #2046

Closed

Description

@thouis

Original ticket http://projects.scipy.org/numpy/ticket/1449 on 2010-04-09 by trac user erian, assigned to unknown.

>>> nbr = 1<< 50L
>>> numpy.uint64(nbr) == nbr
True
>>> hash(numpy.uint64(nbr)) == hash(nbr)
False

Affects 2.0.0.dev8324 as well

Activity

  1. thouis commented on Oct 19, 2012

    @thouis
    ContributorAuthor

    Milestone changed to Unscheduled by @rgommers on 2011-03-30

  2. added a commit that references this issue on Nov 14, 2012
  3. juliantaylor commented on Feb 14, 2014

    @juliantaylor
    Contributor

    this has been fixed in numpy 1.8.0 and 1.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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