Skip to content

BUG: cython warning in mtrand.pyx #27954

Closed

Description

@ngoldbaum

It looks like nightly cython warns:

warning: numpy/random/mtrand.pyx:4966:29: the result of using negative indices inside of code sections marked as 'wraparound=False' is undefined

And indeed, there's a negative index:

for method_name in __all__[:-1]:

But the file is globally set to have wraparound=False.

Activity

  1. added this to the 2.2.1 release milestone on Dec 9, 2024
  2. rkern commented on Dec 10, 2024

    @rkern
    Member

    And to confirm, yes, this is fixable per NEP 19.

  3. added a commit that references this issue on Dec 15, 2024
    0ed97da
  4. added a commit that references this issue on Dec 15, 2024
    0d8444d
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions