Skip to content

ENH: Implement np.iinfo(np.bool_) #8849

Open

Description

@eric-wieser

Does this make sense, and/or is it desirable?

b = np.iinfo(np.bool_)
assert(b.min == 0)
assert(b.max == 1)
assert(b.bits == ???)

Activity

  1. charris commented on May 8, 2017

    @charris
    Member

    Seems reasonable as booleans are promoted to integers during arithmetic with integers and also work with the standard comparison operators.

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