Skip to content

(설*우, 강의노트 14장) #150

@skw2592

Description

@skw2592

__eq__()를 정의하면 ==로 두 객체를 비교할 수 있다고 하셨는데, __ne__()는 따로 정의하지 않았음에도 dir(Vector)에 포함되어 있었습니다. != 연산자도 따로 정의해줘야 하나요? 아니면 정의하지 않아도 되나요?

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