Skip to content

using "is not" with a literal #2

@AdamVerner

Description

@AdamVerner

if binarydata[0] is not 2:

is not should not be used with literal. Use ==

see https://bugs.python.org/issue34850 for more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions