Skip to content

BUG: Casting np.ma.masked to long is legal #9751

Closed

Description

@eric-wieser

This is wrong:

>>> int(np.ma.masked)
MaskError: Cannot convert masked element to a Python int.
>>> long(np.ma.masked)
0L
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