Skip to content

PEP 8: Remove diamond operator #4342

@Simon-Brandt

Description

@Simon-Brandt

Even after #2059, the diamond operator (<>) from Python 2 is still shown in PEP 8:

peps/peps/pep-0008.rst

Lines 618 to 622 in b394f88

- Always surround these binary operators with a single space on either
side: assignment (``=``), augmented assignment (``+=``, ``-=``
etc.), comparisons (``==``, ``<``, ``>``, ``!=``, ``<>``, ``<=``,
``>=``, ``in``, ``not in``, ``is``, ``is not``), Booleans (``and``,
``or``, ``not``).

Considering it's not supported, anymore (unless PEP 401 comes into effect...), shouldn't it be removed from the style guide? Or are there still use cases I'm not aware of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions