Skip to content

numpy.bool_(True) is True evaluates to False #5942

@shackenberg

Description

@shackenberg

Even though numpy.bool_(True) == True evaluates to True. Doesn't this violate the PEP8 recommendation that ``Comparisons to singletons like None should always be done with is or is not, never the equality operators.`?

Sorry, if this is a dupe. I searched for bool comarison and pep8 and could not find an relevant issue.
numpy.__version__: 1.9.0.dev-297f54b

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